Spicy is a shadcn/ui theme built around a purple primary color (#c053c6) with teal accents (#53c6c0). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#c053c6) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #070208black |
| Foreground | #090109black | #fbf9fbsnow |
| Card | #fbf8fcghostwhite | #070208black |
| Card foreground | #090109black | #fbf9fbsnow |
| Popover | #fbf8fcghostwhite | #070208black |
| Popover foreground | #090109black | #fbf9fbsnow |
| Primary | #c053c6mediumorchid | #c053c6mediumorchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #c6c053darkkhaki | #c6c053darkkhaki |
| Secondary foreground | #393713darkolivegreen | #393713darkolivegreen |
| Muted | #e0dfdcgainsboro | #23231fblack |
| Muted foreground | #55544adarkolivegreen | #b5b5aadarkgray |
| Accent | #53c6c0mediumturquoise | #53c6c0mediumturquoise |
| Accent foreground | #133937darkslategray | #133937darkslategray |
| Destructive | #a10502darkred | #ec0704red |
| Destructive foreground | #fed7d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c053c6mediumorchid | #c053c6mediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.58:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 6.38:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 5.28:1 | AA |
| Secondary button | 6.38:1 | AA |
| Muted text | 7.65:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Spicy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 324.163);
--foreground: oklch(0.105 0.034 326.394);
--muted: oklch(0.904 0.004 104.052);
--muted-foreground: oklch(0.443 0.017 104.597);
--popover: oklch(0.983 0.006 324.163);
--popover-foreground: oklch(0.105 0.034 326.394);
--card: oklch(0.983 0.006 324.163);
--card-foreground: oklch(0.105 0.034 326.394);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.623 0.196 325.627);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.791 0.131 106.224);
--secondary-foreground: oklch(0.332 0.054 106.212);
--accent: oklch(0.759 0.104 190.657);
--accent-foreground: oklch(0.318 0.043 190.691);
--destructive: oklch(0.447 0.181 29.29);
--destructive-foreground: oklch(0.913 0.044 19.131);
--ring: oklch(0.623 0.196 325.627);
--chart-1: oklch(0.623 0.196 325.627);
--chart-2: oklch(0.791 0.131 106.224);
--chart-3: oklch(0.759 0.104 190.657);
--chart-4: oklch(0.804 0.124 106.134);
--chart-5: oklch(0.625 0.206 325.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.023 325.641);
--foreground: oklch(0.984 0.004 324.151);
--muted: oklch(0.254 0.006 104.356);
--muted-foreground: oklch(0.77 0.015 104.294);
--popover: oklch(0.109 0.023 325.641);
--popover-foreground: oklch(0.984 0.004 324.151);
--card: oklch(0.109 0.023 325.641);
--card-foreground: oklch(0.984 0.004 324.151);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.623 0.196 325.627);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.791 0.131 106.224);
--secondary-foreground: oklch(0.332 0.054 106.212);
--accent: oklch(0.759 0.104 190.657);
--accent-foreground: oklch(0.318 0.043 190.691);
--destructive: oklch(0.594 0.242 29.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.623 0.196 325.627);
--chart-1: oklch(0.623 0.196 325.627);
--chart-2: oklch(0.791 0.131 106.224);
--chart-3: oklch(0.759 0.104 190.657);
--chart-4: oklch(0.804 0.124 106.134);
--chart-5: oklch(0.625 0.206 325.673);
}