Spicy is a shadcn/ui theme built around a light purple primary color (#f9ecf7) with light cyan accents (#ecf7f9). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the light purple primary (#f9ecf7) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #040203black |
| Foreground | #040104black | #faf5f9whitesmoke |
| Card | #fdf7fcsnow | #040203black |
| Card foreground | #040104black | #faf5f9whitesmoke |
| Popover | #fdf7fcsnow | #040203black |
| Popover foreground | #040104black | #faf5f9whitesmoke |
| Primary | #f9ecf7lavenderblush | #f9ecf7lavenderblush |
| Primary foreground | #872c7erebeccapurple | #872c7erebeccapurple |
| Secondary | #f7f9ecfloralwhite | #f7f9ecfloralwhite |
| Secondary foreground | #363a13darkslategray | #363a13darkslategray |
| Muted | #ecede3beige | #1b1c12black |
| Muted foreground | #686864dimgray | #9b9b97darkgray |
| Accent | #ecf7f9aliceblue | #ecf7f9aliceblue |
| Accent foreground | #13363adarkslategray | #13363adarkslategray |
| Destructive | #ba2912firebrick | #e9371corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f9ecf7lavenderblush | #f9ecf7lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 11.92:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 11.12:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 11.92:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Spicy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 328.705);
--foreground: oklch(0.084 0.026 330.292);
--muted: oklch(0.943 0.013 111.281);
--muted-foreground: oklch(0.516 0.006 111.243);
--popover: oklch(0.982 0.01 328.705);
--popover-foreground: oklch(0.084 0.026 330.292);
--card: oklch(0.982 0.01 328.705);
--card-foreground: oklch(0.084 0.026 330.292);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.956 0.021 328.831);
--primary-foreground: oklch(0.459 0.158 332.053);
--secondary: oklch(0.977 0.017 111.342);
--secondary-foreground: oklch(0.334 0.059 114.396);
--accent: oklch(0.969 0.013 204.895);
--accent-foreground: oklch(0.309 0.041 205.225);
--destructive: oklch(0.515 0.184 31.587);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.956 0.021 328.831);
--chart-1: oklch(0.956 0.021 328.831);
--chart-2: oklch(0.977 0.017 111.342);
--chart-3: oklch(0.969 0.013 204.895);
--chart-4: oklch(0.991 0.007 111.144);
--chart-5: oklch(0.956 0.022 328.845);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.014 329.491);
--foreground: oklch(0.975 0.008 328.686);
--muted: oklch(0.222 0.019 112.57);
--muted-foreground: oklch(0.688 0.006 111.174);
--popover: oklch(0.088 0.014 329.491);
--popover-foreground: oklch(0.975 0.008 328.686);
--card: oklch(0.088 0.014 329.491);
--card-foreground: oklch(0.975 0.008 328.686);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.956 0.021 328.831);
--primary-foreground: oklch(0.459 0.158 332.053);
--secondary: oklch(0.977 0.017 111.342);
--secondary-foreground: oklch(0.334 0.059 114.396);
--accent: oklch(0.969 0.013 204.895);
--accent-foreground: oklch(0.309 0.041 205.225);
--destructive: oklch(0.611 0.217 31.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.956 0.021 328.831);
--chart-1: oklch(0.956 0.021 328.831);
--chart-2: oklch(0.977 0.017 111.342);
--chart-3: oklch(0.969 0.013 204.895);
--chart-4: oklch(0.991 0.007 111.144);
--chart-5: oklch(0.956 0.022 328.845);
}