Spicy is a shadcn/ui theme built around a near-black primary color (#010005) with neutral gray accents (#ccccd1). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the near-black primary (#010005) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #010104black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #010005black | #010005black |
| Primary foreground | #afa3falightsteelblue | #afa3falightsteelblue |
| Secondary | #ccccd1lightgrey | #292829darkslategray |
| Secondary foreground | #333239darkslategray | #c1c1c2silver |
| Muted | #e3e2e9gainsboro | #17161dblack |
| Muted foreground | #5d5b67dimgray | #9a98a4darkgray |
| Accent | #ccccd1lightgrey | #292829darkslategray |
| Accent foreground | #333239darkslategray | #c1c1c2silver |
| Destructive | #810e04maroon | #e41907red |
| Destructive foreground | #fdbfbalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #010005black | #010005black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.40:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Spicy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 292.47);
--foreground: oklch(0.07 0.024 288.996);
--muted: oklch(0.915 0.01 292.345);
--muted-foreground: oklch(0.477 0.019 291.801);
--popover: oklch(0.989 0.004 292.47);
--popover-foreground: oklch(0.07 0.024 288.996);
--card: oklch(0.989 0.004 292.47);
--card-foreground: oklch(0.07 0.024 288.996);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.064 0.029 287.48);
--primary-foreground: oklch(0.76 0.122 289.257);
--secondary: oklch(0.846 0.008 292.365);
--secondary-foreground: oklch(0.322 0.011 291.874);
--accent: oklch(0.846 0.008 292.365);
--accent-foreground: oklch(0.322 0.011 291.874);
--destructive: oklch(0.385 0.148 30.345);
--destructive-foreground: oklch(0.86 0.072 24.591);
--ring: oklch(0.064 0.029 287.48);
--chart-1: oklch(0.064 0.029 287.48);
--chart-2: oklch(0.846 0.008 292.365);
--chart-3: oklch(0.846 0.008 292.365);
--chart-4: oklch(0.871 0.007 292.399);
--chart-5: oklch(0.063 0.03 287.016);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.204 0.014 291.207);
--muted-foreground: oklch(0.686 0.017 292.075);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.064 0.029 287.48);
--primary-foreground: oklch(0.76 0.122 289.257);
--secondary: oklch(0.279 0.001 292.443);
--secondary-foreground: oklch(0.812 0.002 292.504);
--accent: oklch(0.279 0.001 292.443);
--accent-foreground: oklch(0.812 0.002 292.504);
--destructive: oklch(0.583 0.23 30.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.064 0.029 287.48);
--chart-1: oklch(0.064 0.029 287.48);
--chart-2: oklch(0.279 0.001 292.443);
--chart-3: oklch(0.279 0.001 292.443);
--chart-4: oklch(0.31 0.002 292.439);
--chart-5: oklch(0.063 0.03 287.016);
}