Thorny is a shadcn/ui theme built around a deep pink primary color (#4c1527) with deep blue accents (#15274c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep pink primary (#4c1527) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #0d0206black | #fdfcfcsnow |
| Card | #ffffffwhite | #030202black |
| Card foreground | #0d0206black | #fdfcfcsnow |
| Popover | #ffffffwhite | #030202black |
| Popover foreground | #0d0206black | #fdfcfcsnow |
| Primary | #4c1527maroon | #4c1527maroon |
| Primary foreground | #e7abbelightpink | #e7abbelightpink |
| Secondary | #274c15darkgreen | #274c15darkgreen |
| Secondary foreground | #bee7absilver | #bee7absilver |
| Muted | #dae0d7gainsboro | #22281fblack |
| Muted foreground | #5f7057dimgray | #97a88fdarkseagreen |
| Accent | #15274cmidnightblue | #15274cmidnightblue |
| Accent foreground | #abbee7lightsteelblue | #abbee7lightsteelblue |
| Destructive | #da0c01red | #fe1c10red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c1527maroon | #4c1527maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 3.95:1 | AA Large |
| Accent | 7.92:1 | AAA |
| Destructive | 5.19:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.90: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.117 0.031 355.709);
--muted: oklch(0.899 0.013 135.491);
--muted-foreground: oklch(0.524 0.045 135.826);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.031 355.709);
--card: oklch(1 0 180);
--card-foreground: oklch(0.117 0.031 355.709);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.291 0.083 4.408);
--primary-foreground: oklch(0.804 0.074 358.154);
--secondary: oklch(0.374 0.093 137.276);
--secondary-foreground: oklch(0.885 0.091 135.919);
--accent: oklch(0.278 0.072 263.667);
--accent-foreground: oklch(0.802 0.062 265.488);
--destructive: oklch(0.561 0.227 29.671);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.291 0.083 4.408);
--chart-1: oklch(0.291 0.083 4.408);
--chart-2: oklch(0.374 0.093 137.276);
--chart-3: oklch(0.278 0.072 263.667);
--chart-4: oklch(0.413 0.104 137.352);
--chart-5: oklch(0.292 0.087 4.969);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.008 355.45);
--foreground: oklch(0.992 0.001 355.653);
--muted: oklch(0.268 0.018 135.726);
--muted-foreground: oklch(0.712 0.042 135.691);
--popover: oklch(0.087 0.008 355.45);
--popover-foreground: oklch(0.992 0.001 355.653);
--card: oklch(0.087 0.008 355.45);
--card-foreground: oklch(0.992 0.001 355.653);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.291 0.083 4.408);
--primary-foreground: oklch(0.804 0.074 358.154);
--secondary: oklch(0.374 0.093 137.276);
--secondary-foreground: oklch(0.885 0.091 135.919);
--accent: oklch(0.278 0.072 263.667);
--accent-foreground: oklch(0.802 0.062 265.488);
--destructive: oklch(0.633 0.25 29.462);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.291 0.083 4.408);
--chart-1: oklch(0.291 0.083 4.408);
--chart-2: oklch(0.374 0.093 137.276);
--chart-3: oklch(0.278 0.072 263.667);
--chart-4: oklch(0.413 0.104 137.352);
--chart-5: oklch(0.292 0.087 4.969);
}