Test is a shadcn/ui theme built around a near-white primary color (#f9fcf8) with near-white accents (#fbf8fc). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the near-white primary (#f9fcf8) on a green-tinted background (#080e06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #080e06black |
| Foreground | #071004black | #ffffffwhite |
| Card | #f8fdf7mintcream | #080e06black |
| Card foreground | #071004black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #080e06black |
| Popover foreground | #071004black | #ffffffwhite |
| Primary | #f9fcf8mintcream | #f9fcf8mintcream |
| Primary foreground | #263d1fdarkslategray | #263d1fdarkslategray |
| Secondary | #fbf8fcghostwhite | #fbf8fcghostwhite |
| Secondary foreground | #714280rebeccapurple | #714280rebeccapurple |
| Muted | #e9dfeclavender | #1d1320black |
| Muted foreground | #615365dimgray | #a89aacdarkgray |
| Accent | #fbf8fcghostwhite | #fbf8fcghostwhite |
| Accent foreground | #714280rebeccapurple | #714280rebeccapurple |
| Destructive | #841906maroon | #f43f1forangered |
| Destructive foreground | #fcc9c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9fcf8mintcream | #f9fcf8mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 11.44:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 11.44:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Test in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.01 138.34);
--foreground: oklch(0.16 0.03 137.143);
--muted: oklch(0.916 0.019 318.309);
--muted-foreground: oklch(0.461 0.034 318.255);
--popover: oklch(0.989 0.01 138.34);
--popover-foreground: oklch(0.16 0.03 137.143);
--card: oklch(0.989 0.01 138.34);
--card-foreground: oklch(0.16 0.03 137.143);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.005 138.335);
--primary-foreground: oklch(0.331 0.057 138.651);
--secondary: oklch(0.983 0.005 318.325);
--secondary-foreground: oklch(0.461 0.111 317.954);
--accent: oklch(0.983 0.005 318.325);
--accent-foreground: oklch(0.461 0.111 317.954);
--destructive: oklch(0.399 0.144 32.132);
--destructive-foreground: oklch(0.878 0.06 29.869);
--ring: oklch(0.987 0.005 138.335);
--chart-1: oklch(0.987 0.005 138.335);
--chart-2: oklch(0.983 0.005 318.325);
--chart-3: oklch(0.983 0.005 318.325);
--chart-4: oklch(1.009 0.003 138.333);
--chart-5: oklch(0.987 0.006 138.336);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.022 137.492);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.028 318.18);
--muted-foreground: oklch(0.704 0.031 318.287);
--popover: oklch(0.156 0.022 137.492);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.022 137.492);
--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.987 0.005 138.335);
--primary-foreground: oklch(0.331 0.057 138.651);
--secondary: oklch(0.983 0.005 318.325);
--secondary-foreground: oklch(0.461 0.111 317.954);
--accent: oklch(0.983 0.005 318.325);
--accent-foreground: oklch(0.461 0.111 317.954);
--destructive: oklch(0.638 0.222 32.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.005 138.335);
--chart-1: oklch(0.987 0.005 138.335);
--chart-2: oklch(0.983 0.005 318.325);
--chart-3: oklch(0.983 0.005 318.325);
--chart-4: oklch(1.009 0.003 138.333);
--chart-5: oklch(0.987 0.006 138.336);
}