Body is a shadcn/ui theme built around a light green primary color (#bae3c3) with light red accents (#e3c3ba). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the light green primary (#bae3c3) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #000000black |
| Foreground | #021206black | #ffffffwhite |
| Card | #f8fcf9mintcream | #000000black |
| Card foreground | #021206black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #000000black |
| Popover foreground | #021206black | #ffffffwhite |
| Primary | #bae3c3lightgrey | #bae3c3lightgrey |
| Primary foreground | #1f4d29darkslategray | #1f4d29darkslategray |
| Secondary | #c3bae3lightsteelblue | #c3bae3lightsteelblue |
| Secondary foreground | #291f4dmidnightblue | #291f4dmidnightblue |
| Muted | #f0eef7whitesmoke | #0a0811black |
| Muted foreground | #626165dimgray | #9a9a9edarkgray |
| Accent | #e3c3balightpink | #e3c3balightpink |
| Accent foreground | #4d291fdarkslategray | #4d291fdarkslategray |
| Destructive | #812a0esaddlebrown | #eb6c42tomato |
| Destructive foreground | #f9d4c8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bae3c3lightgrey | #bae3c3lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.53:1 | AAA |
| Text on card | 18.53:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 5.33:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Body in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 153.162);
--foreground: oklch(0.163 0.037 151.063);
--muted: oklch(0.952 0.012 296.844);
--muted-foreground: oklch(0.496 0.006 296.849);
--popover: oklch(0.987 0.005 153.162);
--popover-foreground: oklch(0.163 0.037 151.063);
--card: oklch(0.987 0.005 153.162);
--card-foreground: oklch(0.163 0.037 151.063);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.879 0.062 152.033);
--primary-foreground: oklch(0.376 0.078 148.983);
--secondary: oklch(0.81 0.059 295.75);
--secondary-foreground: oklch(0.277 0.082 290.848);
--accent: oklch(0.843 0.039 37.602);
--accent-foreground: oklch(0.325 0.056 37.713);
--destructive: oklch(0.414 0.126 37.334);
--destructive-foreground: oklch(0.898 0.045 39.284);
--ring: oklch(0.879 0.062 152.033);
--chart-1: oklch(0.879 0.062 152.033);
--chart-2: oklch(0.81 0.059 295.75);
--chart-3: oklch(0.843 0.039 37.602);
--chart-4: oklch(0.84 0.049 296.015);
--chart-5: oklch(0.881 0.066 151.948);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.143 0.02 294.857);
--muted-foreground: oklch(0.687 0.006 296.926);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.879 0.062 152.033);
--primary-foreground: oklch(0.376 0.078 148.983);
--secondary: oklch(0.81 0.059 295.75);
--secondary-foreground: oklch(0.277 0.082 290.848);
--accent: oklch(0.843 0.039 37.602);
--accent-foreground: oklch(0.325 0.056 37.713);
--destructive: oklch(0.678 0.168 38.644);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.879 0.062 152.033);
--chart-1: oklch(0.879 0.062 152.033);
--chart-2: oklch(0.81 0.059 295.75);
--chart-3: oklch(0.843 0.039 37.602);
--chart-4: oklch(0.84 0.049 296.015);
--chart-5: oklch(0.881 0.066 151.948);
}