test-2 is a shadcn/ui theme built around a teal primary color (#51b387) with neutral gray accents (#cecfcf). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#51b387) on a neutral background (#020403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020403black |
| Foreground | #04160eblack | #f9fbfamintcream |
| Card | #fcfcfcsnow | #030705black |
| Card foreground | #03120bblack | #fcfdfdwhite |
| Popover | #fcfcfcsnow | #030705black |
| Popover foreground | #03120bblack | #fcfdfdwhite |
| Primary | #51b387mediumseagreen | #51b387mediumseagreen |
| Primary foreground | #11271dblack | #11271dblack |
| Secondary | #cecfcflightgrey | #121c17black |
| Secondary foreground | #353636darkslategray | #a0c0b2darkgray |
| Muted | #e4e7e6gainsboro | #181b1ablack |
| Muted foreground | #3a4a43darkslategray | #b5c5bdsilver |
| Accent | #cecfcflightgrey | #121c17black |
| Accent foreground | #353636darkslategray | #a0c0b2darkgray |
| Destructive | #cb2c10firebrick | #ef583etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e7e9e8lavender | #242926darkslategray |
| Input | #e7e9e8lavender | #242926darkslategray |
| Ring | #51b387mediumseagreen | #51b387mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.64:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 5.37:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.89:1 | AAA |
| Muted text | 9.66:1 | AAA |
| Accent | 8.89:1 | AAA |
| Destructive | 6.15:1 | AA |
Paste this into your globals.css to use test-2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.18 0.031 163.251);
--muted: oklch(0.925 0.003 167.719);
--muted-foreground: oklch(0.394 0.024 166.043);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.163 0.027 165.001);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.163 0.027 165.001);
--border: oklch(0.933 0.003 167.712);
--input: oklch(0.933 0.003 167.712);
--primary: oklch(0.695 0.114 161.809);
--primary-foreground: oklch(0.251 0.034 163.18);
--secondary: oklch(0.854 0.001 167.773);
--secondary-foreground: oklch(0.332 0.002 167.671);
--accent: oklch(0.854 0.001 167.773);
--accent-foreground: oklch(0.332 0.002 167.671);
--destructive: oklch(0.549 0.198 32.047);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.695 0.114 161.809);
--chart-1: oklch(0.695 0.114 161.809);
--chart-2: oklch(0.854 0.001 167.773);
--chart-3: oklch(0.854 0.001 167.773);
--chart-4: oklch(0.877 0.001 167.78);
--chart-5: oklch(0.703 0.121 161.358);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.009 167.984);
--foreground: oklch(0.986 0.003 167.733);
--muted: oklch(0.218 0.004 167.236);
--muted-foreground: oklch(0.808 0.02 167.111);
--popover: oklch(0.122 0.012 167.984);
--popover-foreground: oklch(0.993 0.001 167.773);
--card: oklch(0.122 0.012 167.984);
--card-foreground: oklch(0.993 0.001 167.773);
--border: oklch(0.274 0.008 167.028);
--input: oklch(0.274 0.008 167.028);
--primary: oklch(0.695 0.114 161.809);
--primary-foreground: oklch(0.251 0.034 163.18);
--secondary: oklch(0.214 0.016 165.595);
--secondary-foreground: oklch(0.779 0.04 166.326);
--accent: oklch(0.214 0.016 165.595);
--accent-foreground: oklch(0.779 0.04 166.326);
--destructive: oklch(0.658 0.191 32.266);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.695 0.114 161.809);
--chart-1: oklch(0.695 0.114 161.809);
--chart-2: oklch(0.214 0.016 165.595);
--chart-3: oklch(0.214 0.016 165.595);
--chart-4: oklch(0.25 0.02 165.363);
--chart-5: oklch(0.703 0.121 161.358);
}