Thorny is a shadcn/ui theme built around a violet primary color (#b479e6) with teal accents (#79e6b4). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#b479e6) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #050307black |
| Foreground | #0b0311black | #f7f7f8whitesmoke |
| Card | #faf8fcghostwhite | #08050ablack |
| Card foreground | #08020dblack | #faf9fasnow |
| Popover | #fdfbfewhite | #050307black |
| Popover foreground | #0b0311black | #f7f7f8whitesmoke |
| Primary | #b479e6mediumpurple | #b479e6mediumpurple |
| Primary foreground | #180727black | #180727black |
| Secondary | #e6b479burlywood | #e6b479burlywood |
| Secondary foreground | #271807black | #271807black |
| Muted | #f3eee8linen | #17120cblack |
| Muted foreground | #4c4339darkslategray | #c6bdb3silver |
| Accent | #79e6b4mediumaquamarine | #79e6b4mediumaquamarine |
| Accent foreground | #072718black | #072718black |
| Destructive | #672204maroon | #f5510aorangered |
| Destructive foreground | #fbbda2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b479e6mediumpurple | #b479e6mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 9.14:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 10.55:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 6.22:1 | AA |
| Secondary button | 9.14:1 | AAA |
| Muted text | 10.02:1 | AAA |
| Accent | 10.55:1 | AAA |
| Destructive | 3.47: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.003 309.753);
--foreground: oklch(0.126 0.037 309.72);
--muted: oklch(0.95 0.01 71.361);
--muted-foreground: oklch(0.388 0.02 70.901);
--popover: oklch(0.991 0.003 309.753);
--popover-foreground: oklch(0.126 0.037 309.72);
--card: oklch(0.981 0.006 309.72);
--card-foreground: oklch(0.113 0.033 311.475);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.681 0.164 307.185);
--primary-foreground: oklch(0.178 0.064 305.545);
--secondary: oklch(0.802 0.095 69.508);
--secondary-foreground: oklch(0.224 0.037 68.004);
--accent: oklch(0.848 0.125 161.82);
--accent-foreground: oklch(0.244 0.047 159.518);
--destructive: oklch(0.354 0.106 40.106);
--destructive-foreground: oklch(0.848 0.081 44.24);
--ring: oklch(0.681 0.164 307.185);
--chart-1: oklch(0.681 0.164 307.185);
--chart-2: oklch(0.802 0.095 69.508);
--chart-3: oklch(0.848 0.125 161.82);
--chart-4: oklch(0.821 0.086 69.891);
--chart-5: oklch(0.679 0.171 307.043);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.014 310.767);
--foreground: oklch(0.976 0.002 309.763);
--muted: oklch(0.188 0.014 70.523);
--muted-foreground: oklch(0.804 0.017 71.259);
--popover: oklch(0.108 0.014 310.767);
--popover-foreground: oklch(0.976 0.002 309.763);
--card: oklch(0.123 0.015 310.766);
--card-foreground: oklch(0.984 0.001 309.77);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.681 0.164 307.185);
--primary-foreground: oklch(0.178 0.064 305.545);
--secondary: oklch(0.802 0.095 69.508);
--secondary-foreground: oklch(0.224 0.037 68.004);
--accent: oklch(0.848 0.125 161.82);
--accent-foreground: oklch(0.244 0.047 159.518);
--destructive: oklch(0.655 0.211 38.038);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.681 0.164 307.185);
--chart-1: oklch(0.681 0.164 307.185);
--chart-2: oklch(0.802 0.095 69.508);
--chart-3: oklch(0.848 0.125 161.82);
--chart-4: oklch(0.821 0.086 69.891);
--chart-5: oklch(0.679 0.171 307.043);
}