Decade is a shadcn/ui theme built around a muted yellow primary color (#867656) with muted blue accents (#566686). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the muted yellow primary (#867656) on a yellow-tinted background (#100c05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #100c05black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #fcfbf8snow | #100c05black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfbf8snow | #100c05black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #867656dimgray | #867656dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #566686dimgray | #566686dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6d8dbgainsboro | #242529darkslategray |
| Muted foreground | #575e6bdimgray | #949ba8darkgray |
| Accent | #566686dimgray | #566686dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #931c01darkred | #fe380borangered |
| Destructive foreground | #ffd1c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #867656dimgray | #867656dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 5.80:1 | AA |
| Muted text | 4.56:1 | AA |
| Accent | 5.80:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 4.44:1 | AA Large |
| Secondary button | 5.80:1 | AA |
| Muted text | 5.46:1 | AA |
| Accent | 5.80:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Decade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 84.563);
--foreground: oklch(0 0 0);
--muted: oklch(0.881 0.005 264.532);
--muted-foreground: oklch(0.48 0.022 264.339);
--popover: oklch(0.987 0.004 84.563);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.004 84.563);
--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.571 0.05 84.311);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.509 0.055 263.896);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.055 263.896);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.431 0.158 33.068);
--destructive-foreground: oklch(0.898 0.053 32.799);
--ring: oklch(0.571 0.05 84.311);
--chart-1: oklch(0.571 0.05 84.311);
--chart-2: oklch(0.509 0.055 263.896);
--chart-3: oklch(0.509 0.055 263.896);
--chart-4: oklch(0.533 0.058 263.889);
--chart-5: oklch(0.576 0.057 84.186);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.018 87.091);
--foreground: oklch(0.993 0.002 84.555);
--muted: oklch(0.266 0.007 264.446);
--muted-foreground: oklch(0.688 0.02 264.433);
--popover: oklch(0.156 0.018 87.091);
--popover-foreground: oklch(0.993 0.002 84.555);
--card: oklch(0.156 0.018 87.091);
--card-foreground: oklch(0.993 0.002 84.555);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.571 0.05 84.311);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.509 0.055 263.896);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.055 263.896);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.236 32.68);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.05 84.311);
--chart-1: oklch(0.571 0.05 84.311);
--chart-2: oklch(0.509 0.055 263.896);
--chart-3: oklch(0.509 0.055 263.896);
--chart-4: oklch(0.533 0.058 263.889);
--chart-5: oklch(0.576 0.057 84.186);
}