Stale is a shadcn/ui theme built around a purple primary color (#8e257c) with cyan accents (#257c8e). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the purple primary (#8e257c) on a purple-tinted background (#10040e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fcsnow | #10040eblack |
| Foreground | #12030fblack | #ffffffwhite |
| Card | #fbf4faghostwhite | #140612black |
| Card foreground | #0d020bblack | #ffffffwhite |
| Popover | #fcf7fcsnow | #10040eblack |
| Popover foreground | #12030fblack | #ffffffwhite |
| Primary | #8e257cpurple | #8e257cpurple |
| Primary foreground | #faebf7lavenderblush | #faebf7lavenderblush |
| Secondary | #7c8e25olivedrab | #7c8e25olivedrab |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e8e3gainsboro | #1b1c17black |
| Muted foreground | #484941darkslategray | #bdbeb6silver |
| Accent | #257c8eteal | #257c8eteal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #690c07maroon | #f13b32crimson |
| Destructive foreground | #f9ada9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8e257cpurple | #8e257cpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 3.65:1 | AA Large |
| Muted text | 7.38:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.77:1 | AA |
| Secondary button | 3.65:1 | AA Large |
| Muted text | 9.15:1 | AAA |
| Accent | 4.80:1 | AA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Stale in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 330.923);
--foreground: oklch(0.135 0.042 333.478);
--muted: oklch(0.929 0.006 114.19);
--muted-foreground: oklch(0.401 0.014 114.696);
--popover: oklch(0.982 0.007 330.923);
--popover-foreground: oklch(0.135 0.042 333.478);
--card: oklch(0.974 0.011 330.976);
--card-foreground: oklch(0.121 0.036 332.729);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.17 335.611);
--primary-foreground: oklch(0.955 0.023 331.145);
--secondary: oklch(0.612 0.128 118.702);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.084 214.078);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.335 0.126 29.167);
--destructive-foreground: oklch(0.819 0.09 22.565);
--ring: oklch(0.462 0.17 335.611);
--chart-1: oklch(0.462 0.17 335.611);
--chart-2: oklch(0.612 0.128 118.702);
--chart-3: oklch(0.545 0.084 214.078);
--chart-4: oklch(0.65 0.137 118.739);
--chart-5: oklch(0.465 0.176 335.803);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.031 332.904);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.009 114.794);
--muted-foreground: oklch(0.799 0.012 114.334);
--popover: oklch(0.138 0.031 332.904);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.151 0.036 333.397);
--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.462 0.17 335.611);
--primary-foreground: oklch(0.955 0.023 331.145);
--secondary: oklch(0.612 0.128 118.702);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.545 0.084 214.078);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.219 28.304);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.17 335.611);
--chart-1: oklch(0.462 0.17 335.611);
--chart-2: oklch(0.612 0.128 118.702);
--chart-3: oklch(0.545 0.084 214.078);
--chart-4: oklch(0.65 0.137 118.739);
--chart-5: oklch(0.465 0.176 335.803);
}