Thorny is a shadcn/ui theme built around a light green primary color (#d3f3b0) with neutral gray accents (#d4d6d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d3f3b0) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #080b05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d3f3b0palegoldenrod | #d3f3b0palegoldenrod |
| Primary foreground | #050901black | #050901black |
| Secondary | #d4d6d1lightgrey | #343b2bdarkslategray |
| Secondary foreground | #3b3e37darkslategray | #cdd4c4lightgrey |
| Muted | #dee1dbgainsboro | #21241eblack |
| Muted foreground | #4f544adarkslategray | #b0b5abdarkgray |
| Accent | #d4d6d1lightgrey | #343b2bdarkslategray |
| Accent foreground | #3b3e37darkslategray | #cdd4c4lightgrey |
| Destructive | #d52607firebrick | #e92907orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3f3b0palegoldenrod | #d3f3b0palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 16.42:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 5.87:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 16.42:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Thorny in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.008 127.215);
--muted-foreground: oklch(0.438 0.016 127.573);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.094 128.435);
--primary-foreground: oklch(0.13 0.025 125.852);
--secondary: oklch(0.873 0.008 127.218);
--secondary-foreground: oklch(0.359 0.013 127.551);
--accent: oklch(0.873 0.008 127.218);
--accent-foreground: oklch(0.359 0.013 127.551);
--destructive: oklch(0.562 0.212 31.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.094 128.435);
--chart-1: oklch(0.924 0.094 128.435);
--chart-2: oklch(0.873 0.008 127.218);
--chart-3: oklch(0.873 0.008 127.218);
--chart-4: oklch(0.896 0.006 127.196);
--chart-5: oklch(0.927 0.097 128.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 126.352);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.01 127.62);
--muted-foreground: oklch(0.766 0.014 127.34);
--popover: oklch(0.124 0.014 126.352);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.016 126.398);
--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.924 0.094 128.435);
--primary-foreground: oklch(0.13 0.025 125.852);
--secondary: oklch(0.341 0.029 128.224);
--secondary-foreground: oklch(0.86 0.024 127.452);
--accent: oklch(0.341 0.029 128.224);
--accent-foreground: oklch(0.86 0.024 127.452);
--destructive: oklch(0.6 0.227 31.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.094 128.435);
--chart-1: oklch(0.924 0.094 128.435);
--chart-2: oklch(0.341 0.029 128.224);
--chart-3: oklch(0.341 0.029 128.224);
--chart-4: oklch(0.373 0.033 128.255);
--chart-5: oklch(0.927 0.097 128.488);
}