Naive is a shadcn/ui theme built around a muted orange primary color (#6d645a) with muted yellow accents (#6d6d5a). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the muted orange primary (#6d645a) on an orange-tinted background (#0a0805).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf7snow | #0a0805black |
| Foreground | #090501black | #fdfcfcsnow |
| Card | #fcf8f2floralwhite | #0e0a07black |
| Card foreground | #040301black | #ffffffwhite |
| Popover | #fdfaf7snow | #0a0805black |
| Popover foreground | #090501black | #fdfcfcsnow |
| Primary | #6d645adimgray | #6d645adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6d5a5adimgray | #6d5a5adimgray |
| Secondary foreground | #fdfcfcsnow | #fdfcfcsnow |
| Muted | #e9d8d8gainsboro | #271616black |
| Muted foreground | #6c6060dimgray | #9f9393rosybrown |
| Accent | #6d6d5adimgray | #6d6d5adimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cc3405firebrick | #fa5e2etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d645adimgray | #6d645adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.55:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 4.39:1 | AA Large |
| Accent | 5.25:1 | AA |
| Destructive | 5.18:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 5.80:1 | AA |
| Accent | 5.25:1 | AA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Naive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 71.401);
--foreground: oklch(0.121 0.017 81.247);
--muted: oklch(0.896 0.019 19.909);
--muted-foreground: oklch(0.501 0.015 20.048);
--popover: oklch(0.987 0.006 71.401);
--popover-foreground: oklch(0.121 0.017 81.247);
--card: oklch(0.98 0.008 71.375);
--card-foreground: oklch(0.096 0.014 81.247);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.509 0.02 71.055);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.025 20.386);
--secondary-foreground: oklch(0.992 0.001 19.613);
--accent: oklch(0.53 0.03 108.951);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.556 0.195 34.566);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.509 0.02 71.055);
--chart-1: oklch(0.509 0.02 71.055);
--chart-2: oklch(0.487 0.025 20.386);
--chart-3: oklch(0.53 0.03 108.951);
--chart-4: oklch(0.513 0.027 20.394);
--chart-5: oklch(0.512 0.026 70.91);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.009 76.249);
--foreground: oklch(0.993 0.001 71.442);
--muted: oklch(0.225 0.028 21.709);
--muted-foreground: oklch(0.674 0.014 19.904);
--popover: oklch(0.135 0.009 76.249);
--popover-foreground: oklch(0.993 0.001 71.442);
--card: oklch(0.15 0.01 73.416);
--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.509 0.02 71.055);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.025 20.386);
--secondary-foreground: oklch(0.992 0.001 19.613);
--accent: oklch(0.53 0.03 108.951);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.679 0.2 36.788);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.509 0.02 71.055);
--chart-1: oklch(0.509 0.02 71.055);
--chart-2: oklch(0.487 0.025 20.386);
--chart-3: oklch(0.53 0.03 108.951);
--chart-4: oklch(0.513 0.027 20.394);
--chart-5: oklch(0.512 0.026 70.91);
}