Basics is a shadcn/ui theme built around a deep orange primary color (#48300f) with deep blue accents (#0f2748). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the deep orange primary (#48300f) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #070503black |
| Foreground | #080602black | #fdfdfcwhite |
| Card | #fcf8f3floralwhite | #0b0804black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fdfaf7snow | #070503black |
| Popover foreground | #080602black | #fdfdfcwhite |
| Primary | #48300fdarkolivegreen | #48300fdarkolivegreen |
| Primary foreground | #eacb9ewheat | #eacb9ewheat |
| Secondary | #0f2748midnightblue | #0f2748midnightblue |
| Secondary foreground | #9ebeealightsteelblue | #9ebeealightsteelblue |
| Muted | #e2e5e9gainsboro | #16191dblack |
| Muted foreground | #485261darkslategray | #9ea9b7darkgray |
| Accent | #0f2748midnightblue | #0f2748midnightblue |
| Accent foreground | #9ebeealightsteelblue | #9ebeealightsteelblue |
| Destructive | #c73f00firebrick | #f04c00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #48300fdarkolivegreen | #48300fdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 19.94:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.95:1 | AAA |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Basics in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 76.626);
--foreground: oklch(0.121 0.014 84.086);
--muted: oklch(0.921 0.006 256.68);
--muted-foreground: oklch(0.435 0.028 256.808);
--popover: oklch(0.987 0.006 76.626);
--popover-foreground: oklch(0.121 0.014 84.086);
--card: oklch(0.981 0.008 76.612);
--card-foreground: oklch(0.096 0.011 84.086);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.33 0.058 72.218);
--primary-foreground: oklch(0.857 0.068 75.922);
--secondary: oklch(0.272 0.068 257.307);
--secondary-foreground: oklch(0.794 0.072 256.835);
--accent: oklch(0.272 0.068 257.307);
--accent-foreground: oklch(0.794 0.072 256.835);
--destructive: oklch(0.559 0.181 38.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.058 72.218);
--chart-1: oklch(0.33 0.058 72.218);
--chart-2: oklch(0.272 0.068 257.307);
--chart-3: oklch(0.272 0.068 257.307);
--chart-4: oklch(0.301 0.078 257.379);
--chart-5: oklch(0.332 0.06 71.802);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.011 82.517);
--foreground: oklch(0.993 0.002 76.644);
--muted: oklch(0.212 0.009 256.78);
--muted-foreground: oklch(0.73 0.024 256.758);
--popover: oklch(0.12 0.011 82.517);
--popover-foreground: oklch(0.993 0.002 76.644);
--card: oklch(0.138 0.013 82.26);
--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.33 0.058 72.218);
--primary-foreground: oklch(0.857 0.068 75.922);
--secondary: oklch(0.272 0.068 257.307);
--secondary-foreground: oklch(0.794 0.072 256.835);
--accent: oklch(0.272 0.068 257.307);
--accent-foreground: oklch(0.794 0.072 256.835);
--destructive: oklch(0.641 0.21 37.939);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.058 72.218);
--chart-1: oklch(0.33 0.058 72.218);
--chart-2: oklch(0.272 0.068 257.307);
--chart-3: oklch(0.272 0.068 257.307);
--chart-4: oklch(0.301 0.078 257.379);
--chart-5: oklch(0.332 0.06 71.802);
}