Thorny is a shadcn/ui theme built around a light green primary color (#d1ebdb) with light teal accents (#d1ebe8). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the light green primary (#d1ebdb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #000000black |
| Foreground | #041109black | #ffffffwhite |
| Card | #fbfdfcwhite | #000000black |
| Card foreground | #041109black | #ffffffwhite |
| Popover | #fbfdfcwhite | #000000black |
| Popover foreground | #041109black | #ffffffwhite |
| Primary | #d1ebdbgainsboro | #d1ebdbgainsboro |
| Primary foreground | #0b1910black | #0b1910black |
| Secondary | #d4ebd1gainsboro | #d4ebd1gainsboro |
| Secondary foreground | #0c190bblack | #0c190bblack |
| Muted | #deefdcgainsboro | #122310black |
| Muted foreground | #636a62dimgray | #969d95darkgray |
| Accent | #d1ebe8gainsboro | #d1ebe8gainsboro |
| Accent foreground | #0b1917black | #0b1917black |
| Destructive | #873103saddlebrown | #fa5b05orangered |
| Destructive foreground | #fed4bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1ebdbgainsboro | #d1ebdbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 14.31:1 | AAA |
| Secondary button | 14.31:1 | AAA |
| Muted text | 4.64:1 | AA |
| Accent | 14.37:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 14.31:1 | AAA |
| Secondary button | 14.31:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 14.37:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Thorny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 159.41);
--foreground: oklch(0.16 0.026 157.58);
--muted: oklch(0.935 0.032 141.996);
--muted-foreground: oklch(0.516 0.015 142.01);
--popover: oklch(0.994 0.003 159.41);
--popover-foreground: oklch(0.16 0.026 157.58);
--card: oklch(0.994 0.003 159.41);
--card-foreground: oklch(0.16 0.026 157.58);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.916 0.036 158.575);
--primary-foreground: oklch(0.197 0.027 155.901);
--secondary: oklch(0.916 0.043 141.949);
--secondary-foreground: oklch(0.197 0.033 141.552);
--accent: oklch(0.92 0.028 188.172);
--accent-foreground: oklch(0.2 0.02 186.241);
--destructive: oklch(0.432 0.128 42.235);
--destructive-foreground: oklch(0.9 0.055 49.93);
--ring: oklch(0.916 0.036 158.575);
--chart-1: oklch(0.916 0.036 158.575);
--chart-2: oklch(0.916 0.043 141.949);
--chart-3: oklch(0.92 0.028 188.172);
--chart-4: oklch(0.935 0.033 141.99);
--chart-5: oklch(0.918 0.038 158.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.043 141.518);
--muted-foreground: oklch(0.688 0.014 142.041);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.916 0.036 158.575);
--primary-foreground: oklch(0.197 0.027 155.901);
--secondary: oklch(0.916 0.043 141.949);
--secondary-foreground: oklch(0.197 0.033 141.552);
--accent: oklch(0.92 0.028 188.172);
--accent-foreground: oklch(0.2 0.02 186.241);
--destructive: oklch(0.674 0.208 40.529);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.916 0.036 158.575);
--chart-1: oklch(0.916 0.036 158.575);
--chart-2: oklch(0.916 0.043 141.949);
--chart-3: oklch(0.92 0.028 188.172);
--chart-4: oklch(0.935 0.033 141.99);
--chart-5: oklch(0.918 0.038 158.508);
}