Spec is a shadcn/ui theme built around a yellow primary color (#dada2b) with green accents (#82da2b). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#dada2b) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0b04black |
| Foreground | #121203black | #fdfdfcwhite |
| Card | #ffffffwhite | #0b0b04black |
| Card foreground | #121203black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0b0b04black |
| Popover foreground | #121203black | #fdfdfcwhite |
| Primary | #dada2bgoldenrod | #dada2bgoldenrod |
| Primary foreground | #303008black | #303008black |
| Secondary | #da822bperu | #da822bperu |
| Secondary foreground | #000000black | #000000black |
| Muted | #edebe8linen | #171412black |
| Muted foreground | #5b544ddimgray | #b2aba4darkgray |
| Accent | #82da2byellowgreen | #82da2byellowgreen |
| Accent foreground | #1c3008black | #1c3008black |
| Destructive | #691407maroon | #eb2c0forangered |
| Destructive foreground | #f9b3a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dada2bgoldenrod | #dada2bgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.05:1 | AAA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 8.05:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Spec in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.03 109.141);
--muted: oklch(0.94 0.005 67.764);
--muted-foreground: oklch(0.451 0.014 67.463);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.03 109.141);
--card: oklch(1 0 180);
--card-foreground: oklch(0.175 0.03 109.141);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.859 0.178 109.619);
--primary-foreground: oklch(0.299 0.057 109.39);
--secondary: oklch(0.687 0.144 60.359);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.801 0.214 133.494);
--accent-foreground: oklch(0.281 0.067 132.258);
--destructive: oklch(0.343 0.121 31.733);
--destructive-foreground: oklch(0.831 0.084 28.781);
--ring: oklch(0.859 0.178 109.619);
--chart-1: oklch(0.859 0.178 109.619);
--chart-2: oklch(0.687 0.144 60.359);
--chart-3: oklch(0.801 0.214 133.494);
--chart-4: oklch(0.704 0.138 61.785);
--chart-5: oklch(0.87 0.182 109.646);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.016 108.25);
--foreground: oklch(0.994 0.002 106.428);
--muted: oklch(0.195 0.007 67.38);
--muted-foreground: oklch(0.744 0.012 67.637);
--popover: oklch(0.147 0.016 108.25);
--popover-foreground: oklch(0.994 0.002 106.428);
--card: oklch(0.147 0.016 108.25);
--card-foreground: oklch(0.994 0.002 106.428);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.859 0.178 109.619);
--primary-foreground: oklch(0.299 0.057 109.39);
--secondary: oklch(0.687 0.144 60.359);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.801 0.214 133.494);
--accent-foreground: oklch(0.281 0.067 132.258);
--destructive: oklch(0.607 0.227 31.339);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.859 0.178 109.619);
--chart-1: oklch(0.859 0.178 109.619);
--chart-2: oklch(0.687 0.144 60.359);
--chart-3: oklch(0.801 0.214 133.494);
--chart-4: oklch(0.704 0.138 61.785);
--chart-5: oklch(0.87 0.182 109.646);
}