Throne is a shadcn/ui theme built around a green primary color (#93e6a5) with neutral gray accents (#d9d3d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#93e6a5) on a neutral background (#020804).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020804black |
| Foreground | #020903black | #fcfdfcwhite |
| Card | #ffffffwhite | #020804black |
| Card foreground | #020903black | #fcfdfcwhite |
| Popover | #ffffffwhite | #020804black |
| Popover foreground | #020903black | #fcfdfcwhite |
| Primary | #93e6a5lightgreen | #93e6a5lightgreen |
| Primary foreground | #0d3a17darkgreen | #0d3a17darkgreen |
| Secondary | #e6e6e6gainsboro | #242d26darkslategray |
| Secondary foreground | #4d4d4ddarkslategray | #bbc9besilver |
| Muted | #ebd1d1gainsboro | #142e1ablack |
| Muted foreground | #535050darkslategray | #acafacdarkgray |
| Accent | #d9d3d3lightgrey | #2c4431darkslategray |
| Accent foreground | #413939darkslategray | #c7dbcclightgrey |
| Destructive | #b44404saddlebrown | #f05b05orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93e6a5lightgreen | #93e6a5lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 6.74:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 5.56:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.65:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 7.29:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Throne in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.024 151.67);
--muted: oklch(0.881 0.03 17.729);
--muted-foreground: oklch(0.434 0.004 17.322);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.024 151.67);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.024 151.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.856 0.122 150.074);
--primary-foreground: oklch(0.309 0.078 147.318);
--secondary: oklch(0.923 0 153.435);
--secondary-foreground: oklch(0.418 0 173.29);
--accent: oklch(0.872 0.006 17.277);
--accent-foreground: oklch(0.353 0.012 17.737);
--destructive: oklch(0.534 0.158 42.509);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.122 150.074);
--chart-1: oklch(0.856 0.122 150.074);
--chart-2: oklch(0.923 0 153.435);
--chart-3: oklch(0.872 0.006 17.277);
--chart-4: oklch(0.947 0 180);
--chart-5: oklch(0.859 0.128 149.956);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.019 151.877);
--foreground: oklch(0.993 0.002 152.592);
--muted: oklch(0.275 0.05 149.183);
--muted-foreground: oklch(0.751 0.005 152.509);
--popover: oklch(0.122 0.019 151.877);
--popover-foreground: oklch(0.993 0.002 152.592);
--card: oklch(0.122 0.019 151.877);
--card-foreground: oklch(0.993 0.002 152.592);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.856 0.122 150.074);
--primary-foreground: oklch(0.309 0.078 147.318);
--secondary: oklch(0.287 0.018 151.603);
--secondary-foreground: oklch(0.821 0.021 152.217);
--accent: oklch(0.361 0.043 150.538);
--accent-foreground: oklch(0.872 0.029 152.083);
--destructive: oklch(0.659 0.198 41.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.856 0.122 150.074);
--chart-1: oklch(0.856 0.122 150.074);
--chart-2: oklch(0.287 0.018 151.603);
--chart-3: oklch(0.361 0.043 150.538);
--chart-4: oklch(0.319 0.021 151.56);
--chart-5: oklch(0.859 0.128 149.956);
}