Radiant is a shadcn/ui theme built around a deep orange primary color (#533a13) with muted orange accents (#cdc1ac). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep orange primary (#533a13) on a neutral background (#070504).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #070504black |
| Foreground | #100c04black | #faf8f5whitesmoke |
| Card | #fdfdfcwhite | #070504black |
| Card foreground | #100c04black | #faf8f5whitesmoke |
| Popover | #fdfdfcwhite | #070504black |
| Popover foreground | #100c04black | #faf8f5whitesmoke |
| Primary | #533a13darkolivegreen | #533a13darkolivegreen |
| Primary foreground | #ecd3acwheat | #ecd3acwheat |
| Secondary | #d9d3c9lightgrey | #262422black |
| Secondary foreground | #423a2edarkslategray | #c1beb9silver |
| Muted | #e4dfd8gainsboro | #27231bblack |
| Muted foreground | #5f5c59dimgray | #a6a4a0darkgray |
| Accent | #cdc1acsilver | #423c33darkslategray |
| Accent foreground | #2d261bblack | #d9d5celightgrey |
| Destructive | #732907saddlebrown | #f3783fcoral |
| Destructive foreground | #fac9b2peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #533a13darkolivegreen | #533a13darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 8.33:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 7.56:1 | AAA |
Paste this into your globals.css to use Radiant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 79.931);
--foreground: oklch(0.156 0.019 83.069);
--muted: oklch(0.906 0.011 79.909);
--muted-foreground: oklch(0.477 0.006 79.908);
--popover: oklch(0.993 0.002 79.931);
--popover-foreground: oklch(0.156 0.019 83.069);
--card: oklch(0.993 0.002 79.931);
--card-foreground: oklch(0.156 0.019 83.069);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.369 0.064 76.069);
--primary-foreground: oklch(0.878 0.058 79.587);
--secondary: oklch(0.869 0.016 79.894);
--secondary-foreground: oklch(0.354 0.023 79.591);
--accent: oklch(0.815 0.031 79.804);
--accent-foreground: oklch(0.272 0.022 79.419);
--destructive: oklch(0.387 0.112 41.167);
--destructive-foreground: oklch(0.873 0.064 46.163);
--ring: oklch(0.369 0.064 76.069);
--chart-1: oklch(0.369 0.064 76.069);
--chart-2: oklch(0.869 0.016 79.894);
--chart-3: oklch(0.815 0.031 79.804);
--chart-4: oklch(0.891 0.013 79.904);
--chart-5: oklch(0.372 0.066 75.666);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.007 83.75);
--foreground: oklch(0.979 0.004 79.926);
--muted: oklch(0.257 0.015 79.662);
--muted-foreground: oklch(0.719 0.005 79.92);
--popover: oklch(0.119 0.007 83.75);
--popover-foreground: oklch(0.979 0.004 79.926);
--card: oklch(0.119 0.007 83.75);
--card-foreground: oklch(0.979 0.004 79.926);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.369 0.064 76.069);
--primary-foreground: oklch(0.878 0.058 79.587);
--secondary: oklch(0.262 0.005 79.884);
--secondary-foreground: oklch(0.801 0.008 79.916);
--accent: oklch(0.361 0.018 79.737);
--accent-foreground: oklch(0.874 0.011 79.91);
--destructive: oklch(0.706 0.166 43.688);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.369 0.064 76.069);
--chart-1: oklch(0.369 0.064 76.069);
--chart-2: oklch(0.262 0.005 79.884);
--chart-3: oklch(0.361 0.018 79.737);
--chart-4: oklch(0.294 0.006 79.881);
--chart-5: oklch(0.372 0.066 75.666);
}