Thorny is a shadcn/ui theme built around a vivid purple primary color (#e524df) with vivid green accents (#24e52a). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid purple primary (#e524df) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #040104black |
| Foreground | #160315black | #faf5faghostwhite |
| Card | #fdf6fdsnow | #070307black |
| Card foreground | #120311black | #fbf8fbsnow |
| Popover | #fdf6fdsnow | #070307black |
| Popover foreground | #120311black | #fbf8fbsnow |
| Primary | #e524dfmagenta | #e524dfmagenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #24e52alimegreen | #24e52alimegreen |
| Secondary foreground | #063708darkgreen | #063708darkgreen |
| Muted | #d5e1d6gainsboro | #1e2a1eblack |
| Muted foreground | #3d4d3ddarkslategray | #b2c2b2silver |
| Accent | #24e52alimegreen | #24e52alimegreen |
| Accent foreground | #063708darkgreen | #063708darkgreen |
| Destructive | #d02e01firebrick | #fe5425tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e524dfmagenta | #e524dfmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.29:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.15:1 | AA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 3.71:1 | AA Large |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Thorny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 326.592);
--foreground: oklch(0.151 0.05 328.911);
--muted: oklch(0.898 0.02 146.341);
--muted-foreground: oklch(0.401 0.034 145.775);
--popover: oklch(0.982 0.012 326.643);
--popover-foreground: oklch(0.137 0.044 328.771);
--card: oklch(0.982 0.012 326.643);
--card-foreground: oklch(0.137 0.044 328.771);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.653 0.281 329.829);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.803 0.26 142.925);
--secondary-foreground: oklch(0.294 0.089 143.313);
--accent: oklch(0.803 0.26 142.925);
--accent-foreground: oklch(0.294 0.089 143.313);
--destructive: oklch(0.559 0.203 33.572);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.653 0.281 329.829);
--chart-1: oklch(0.653 0.281 329.829);
--chart-2: oklch(0.803 0.26 142.925);
--chart-3: oklch(0.803 0.26 142.925);
--chart-4: oklch(0.81 0.253 143.111);
--chart-5: oklch(0.659 0.287 329.879);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.015 327.669);
--foreground: oklch(0.975 0.008 326.611);
--muted: oklch(0.269 0.027 145.607);
--muted-foreground: oklch(0.798 0.029 146.223);
--popover: oklch(0.11 0.019 327.669);
--popover-foreground: oklch(0.983 0.005 326.587);
--card: oklch(0.11 0.019 327.669);
--card-foreground: oklch(0.983 0.005 326.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.653 0.281 329.829);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.803 0.26 142.925);
--secondary-foreground: oklch(0.294 0.089 143.313);
--accent: oklch(0.803 0.26 142.925);
--accent-foreground: oklch(0.294 0.089 143.313);
--destructive: oklch(0.674 0.214 35.425);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.653 0.281 329.829);
--chart-1: oklch(0.653 0.281 329.829);
--chart-2: oklch(0.803 0.26 142.925);
--chart-3: oklch(0.803 0.26 142.925);
--chart-4: oklch(0.81 0.253 143.111);
--chart-5: oklch(0.659 0.287 329.879);
}