test is a shadcn/ui theme built around a light violet primary color (#d5bae9) with light green accents (#cde9ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#d5bae9) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #09020dblack | #faf9fbghostwhite |
| Card | #fcfcfcsnow | #08040bblack |
| Card foreground | #060109black | #fdfcfdwhite |
| Popover | #ffffffwhite | #050307black |
| Popover foreground | #09020dblack | #faf9fbghostwhite |
| Primary | #d5bae9thistle | #d5bae9thistle |
| Primary foreground | #3d1b55midnightblue | #3d1b55midnightblue |
| Secondary | #cde9balightgrey | #cde9balightgrey |
| Secondary foreground | #33551bdarkolivegreen | #33551bdarkolivegreen |
| Muted | #f2f6eewhitesmoke | #0c1109black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #cde9balightgrey | #cde9balightgrey |
| Accent foreground | #33551bdarkolivegreen | #33551bdarkolivegreen |
| Destructive | #932801saddlebrown | #fe4c0borangered |
| Destructive foreground | #ffd6c7bisque | #ffffffwhite |
| Border | #e8e6ealavender | #1c1a1eblack |
| Input | #e8e6ealavender | #1c1a1eblack |
| Ring | #d5bae9thistle | #d5bae9thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 6.40:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 6.16:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 6.47:1 | AA |
| Destructive | 3.36:1 | AA Large |
Paste this into your globals.css to use test in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.114 0.035 313.609);
--muted: oklch(0.968 0.012 131.822);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.114 0.035 313.609);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.03 314.195);
--border: oklch(0.928 0.005 311.677);
--input: oklch(0.928 0.005 311.677);
--primary: oklch(0.826 0.071 311.035);
--primary-foreground: oklch(0.302 0.102 308.342);
--secondary: oklch(0.9 0.069 132.378);
--secondary-foreground: oklch(0.409 0.093 134.4);
--accent: oklch(0.9 0.069 132.378);
--accent-foreground: oklch(0.409 0.093 134.4);
--destructive: oklch(0.442 0.149 36.595);
--destructive-foreground: oklch(0.907 0.05 40.986);
--ring: oklch(0.826 0.071 311.035);
--chart-1: oklch(0.826 0.071 311.035);
--chart-2: oklch(0.9 0.069 132.378);
--chart-3: oklch(0.9 0.069 132.378);
--chart-4: oklch(0.917 0.057 132.252);
--chart-5: oklch(0.824 0.075 310.993);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.017 313.03);
--foreground: oklch(0.983 0.004 311.692);
--muted: oklch(0.168 0.018 132.539);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.107 0.017 313.03);
--popover-foreground: oklch(0.983 0.004 311.692);
--card: oklch(0.122 0.019 312.966);
--card-foreground: oklch(0.991 0.002 311.708);
--border: oklch(0.222 0.009 311.382);
--input: oklch(0.222 0.009 311.382);
--primary: oklch(0.826 0.071 311.035);
--primary-foreground: oklch(0.302 0.102 308.342);
--secondary: oklch(0.9 0.069 132.378);
--secondary-foreground: oklch(0.409 0.093 134.4);
--accent: oklch(0.9 0.069 132.378);
--accent-foreground: oklch(0.409 0.093 134.4);
--destructive: oklch(0.665 0.222 36.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.071 311.035);
--chart-1: oklch(0.826 0.071 311.035);
--chart-2: oklch(0.9 0.069 132.378);
--chart-3: oklch(0.9 0.069 132.378);
--chart-4: oklch(0.917 0.057 132.252);
--chart-5: oklch(0.824 0.075 310.993);
}