Naive is a shadcn/ui theme built around a muted light green primary color (#f1f5ef) with muted light green accents (#c5d9bf). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the muted light green primary (#f1f5ef) on a green-tinted background (#060c04).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #060c04black |
| Foreground | #081604black | #fcfdfcwhite |
| Card | #f5fcf3honeydew | #071005black |
| Card foreground | #061103black | #ffffffwhite |
| Popover | #f8fdf7mintcream | #060c04black |
| Popover foreground | #081604black | #fcfdfcwhite |
| Primary | #f1f5efwhitesmoke | #f1f5efwhitesmoke |
| Primary foreground | #222f1edarkslategray | #222f1edarkslategray |
| Secondary | #d7e2d4gainsboro | #131712black |
| Secondary foreground | #3b5035darkslategray | #a8b8a3darkgray |
| Muted | #e1e7dfgainsboro | #1a2018black |
| Muted foreground | #616f5ddimgray | #94a290darkseagreen |
| Accent | #c5d9bflightgrey | #243120darkslategray |
| Accent foreground | #2c4026darkslategray | #bbcfb5silver |
| Destructive | #bc4501firebrick | #f45a01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1f5efwhitesmoke | #f1f5efwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.09:1 | AAA |
| Text on card | 18.44:1 | AAA |
| Primary button | 12.75:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 4.22:1 | AA Large |
| Accent | 7.51:1 | AAA |
| Destructive | 5.25:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 12.75:1 | AAA |
| Secondary button | 8.66:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 3.33:1 | AA Large |
Paste this into your globals.css to use Naive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.009 138.34);
--foreground: oklch(0.18 0.042 137.508);
--muted: oklch(0.92 0.011 138.343);
--muted-foreground: oklch(0.525 0.033 138.402);
--popover: oklch(0.989 0.009 138.34);
--popover-foreground: oklch(0.18 0.042 137.508);
--card: oklch(0.983 0.014 138.345);
--card-foreground: oklch(0.163 0.037 136.904);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.009 138.339);
--primary-foreground: oklch(0.286 0.035 138.503);
--secondary: oklch(0.902 0.022 138.356);
--secondary-foreground: oklch(0.405 0.05 138.509);
--accent: oklch(0.863 0.041 138.382);
--accent-foreground: oklch(0.346 0.05 138.558);
--destructive: oklch(0.548 0.165 41.966);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.009 138.339);
--chart-1: oklch(0.966 0.009 138.339);
--chart-2: oklch(0.902 0.022 138.356);
--chart-3: oklch(0.863 0.041 138.382);
--chart-4: oklch(0.923 0.018 138.35);
--chart-5: oklch(0.966 0.01 138.341);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.023 136.808);
--foreground: oklch(0.993 0.002 138.332);
--muted: oklch(0.234 0.016 138.41);
--muted-foreground: oklch(0.696 0.031 138.379);
--popover: oklch(0.142 0.023 136.808);
--popover-foreground: oklch(0.993 0.002 138.332);
--card: oklch(0.158 0.027 137.285);
--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.966 0.009 138.339);
--primary-foreground: oklch(0.286 0.035 138.503);
--secondary: oklch(0.198 0.012 138.4);
--secondary-foreground: oklch(0.764 0.035 138.38);
--accent: oklch(0.297 0.035 138.496);
--accent-foreground: oklch(0.831 0.041 138.385);
--destructive: oklch(0.663 0.203 41.264);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.009 138.339);
--chart-1: oklch(0.966 0.009 138.339);
--chart-2: oklch(0.198 0.012 138.4);
--chart-3: oklch(0.297 0.035 138.496);
--chart-4: oklch(0.234 0.016 138.41);
--chart-5: oklch(0.966 0.01 138.341);
}