All is a shadcn/ui theme built around a teal primary color (#23a97c) with muted light teal accents (#c1dcd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#23a97c) on a teal-tinted background (#04100c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04100cblack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #05140fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #05140fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #23a97cmediumseagreen | #23a97cmediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d7e4e0gainsboro | #191a1ablack |
| Secondary foreground | #375349darkslategray | #b2b3b3darkgray |
| Muted | #d1e6dfgainsboro | #192e27darkslategray |
| Muted foreground | #5e6462dimgray | #9ba19fdarkgray |
| Accent | #c1dcd3lightgrey | #303634darkslategray |
| Accent foreground | #27453bdarkslategray | #c9cfcdlightgrey |
| Destructive | #700c05maroon | #f53224orangered |
| Destructive foreground | #fbb1aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #23a97cmediumseagreen | #23a97cmediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 2.97:1 | Fail |
| Secondary button | 6.45:1 | AA |
| Muted text | 4.61:1 | AA |
| Accent | 7.22:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 2.97:1 | Fail |
| Secondary button | 8.31:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use All in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.024 173.8);
--muted-foreground: oklch(0.497 0.008 174.121);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.656 0.13 164.736);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.909 0.015 174.087);
--secondary-foreground: oklch(0.416 0.037 171.67);
--accent: oklch(0.872 0.031 173.498);
--accent-foreground: oklch(0.362 0.04 170.707);
--destructive: oklch(0.35 0.133 29.862);
--destructive-foreground: oklch(0.83 0.087 23.679);
--ring: oklch(0.656 0.13 164.736);
--chart-1: oklch(0.656 0.13 164.736);
--chart-2: oklch(0.909 0.015 174.087);
--chart-3: oklch(0.872 0.031 173.498);
--chart-4: oklch(0.93 0.012 174.215);
--chart-5: oklch(0.664 0.134 164.323);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.021 171.969);
--foreground: oklch(0.994 0.002 174.529);
--muted: oklch(0.281 0.03 170.943);
--muted-foreground: oklch(0.704 0.007 174.287);
--popover: oklch(0.177 0.025 170.517);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.177 0.025 170.517);
--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.656 0.13 164.736);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.216 0.001 174.472);
--secondary-foreground: oklch(0.766 0.002 174.516);
--accent: oklch(0.327 0.009 173.752);
--accent-foreground: oklch(0.849 0.007 174.337);
--destructive: oklch(0.629 0.23 29.425);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.656 0.13 164.736);
--chart-1: oklch(0.656 0.13 164.736);
--chart-2: oklch(0.216 0.001 174.472);
--chart-3: oklch(0.327 0.009 173.752);
--chart-4: oklch(0.249 0.001 174.462);
--chart-5: oklch(0.664 0.134 164.323);
}