Thorny is a shadcn/ui theme built around a purple primary color (#dc76ea) with green accents (#84ea76). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#dc76ea) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #070307black |
| Foreground | #100212black | #fbf8fcghostwhite |
| Card | #fdfbfewhite | #070307black |
| Card foreground | #100212black | #fbf8fcghostwhite |
| Popover | #fdfbfewhite | #070307black |
| Popover foreground | #100212black | #fbf8fcghostwhite |
| Primary | #dc76eaorchid | #dc76eaorchid |
| Primary foreground | #240628black | #240628black |
| Secondary | #84ea76lightgreen | #84ea76lightgreen |
| Secondary foreground | #0a2806black | #0a2806black |
| Muted | #e5f1e4beige | #0f1b0eblack |
| Muted foreground | #5c7359dimgray | #8fa68cdarkseagreen |
| Accent | #84ea76lightgreen | #84ea76lightgreen |
| Accent foreground | #0a2806black | #0a2806black |
| Destructive | #721808maroon | #ef3615orangered |
| Destructive foreground | #fabdb3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dc76eaorchid | #dc76eaorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 10.59:1 | AAA |
| Muted text | 4.46:1 | AA Large |
| Accent | 10.59:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 6.92:1 | AA |
| Secondary button | 10.59:1 | AAA |
| Muted text | 6.75:1 | AA |
| Accent | 10.59:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Thorny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.126);
--foreground: oklch(0.133 0.048 323.793);
--muted: oklch(0.947 0.022 142.033);
--muted-foreground: oklch(0.53 0.049 141.792);
--popover: oklch(0.991 0.004 322.126);
--popover-foreground: oklch(0.133 0.048 323.793);
--card: oklch(0.991 0.004 322.126);
--card-foreground: oklch(0.133 0.048 323.793);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.723 0.191 322.811);
--primary-foreground: oklch(0.197 0.073 322.908);
--secondary: oklch(0.848 0.18 141.445);
--secondary-foreground: oklch(0.244 0.067 141.189);
--accent: oklch(0.848 0.18 141.445);
--accent-foreground: oklch(0.244 0.067 141.189);
--destructive: oklch(0.364 0.127 32.272);
--destructive-foreground: oklch(0.851 0.072 30.006);
--ring: oklch(0.723 0.191 322.811);
--chart-1: oklch(0.723 0.191 322.811);
--chart-2: oklch(0.848 0.18 141.445);
--chart-3: oklch(0.848 0.18 141.445);
--chart-4: oklch(0.86 0.165 141.491);
--chart-5: oklch(0.723 0.198 322.823);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.015 323.242);
--foreground: oklch(0.983 0.005 322.131);
--muted: oklch(0.207 0.031 141.605);
--muted-foreground: oklch(0.7 0.046 141.885);
--popover: oklch(0.11 0.015 323.242);
--popover-foreground: oklch(0.983 0.005 322.131);
--card: oklch(0.11 0.015 323.242);
--card-foreground: oklch(0.983 0.005 322.131);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.723 0.191 322.811);
--primary-foreground: oklch(0.197 0.073 322.908);
--secondary: oklch(0.848 0.18 141.445);
--secondary-foreground: oklch(0.244 0.067 141.189);
--accent: oklch(0.848 0.18 141.445);
--accent-foreground: oklch(0.244 0.067 141.189);
--destructive: oklch(0.62 0.224 32.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.723 0.191 322.811);
--chart-1: oklch(0.723 0.191 322.811);
--chart-2: oklch(0.848 0.18 141.445);
--chart-3: oklch(0.848 0.18 141.445);
--chart-4: oklch(0.86 0.165 141.491);
--chart-5: oklch(0.723 0.198 322.823);
}