Nutty is a shadcn/ui theme built around a deep green primary color (#161d07) with deep purple accents (#1d0716). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#161d07) on a neutral background (#030402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030402black |
| Foreground | #101504black | #ffffffwhite |
| Card | #ffffffwhite | #030402black |
| Card foreground | #101504black | #ffffffwhite |
| Popover | #ffffffwhite | #030402black |
| Popover foreground | #101504black | #ffffffwhite |
| Primary | #161d07black | #161d07black |
| Primary foreground | #96c32cyellowgreen | #96c32cyellowgreen |
| Secondary | #07161dblack | #07161dblack |
| Secondary foreground | #76c0e0skyblue | #76c0e0skyblue |
| Muted | #d6dadcgainsboro | #232729darkslategray |
| Muted foreground | #43494cdarkslategray | #b3b9bcsilver |
| Accent | #1d0716black | #1d0716black |
| Accent foreground | #e076c0orchid | #e076c0orchid |
| Destructive | #660e0bmaroon | #eb433dtomato |
| Destructive foreground | #f6aeaclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161d07black | #161d07black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.56:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 9.08:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Nutty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.186 0.034 122.642);
--muted: oklch(0.886 0.005 225.049);
--muted-foreground: oklch(0.401 0.009 225.252);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.186 0.034 122.642);
--card: oklch(1 0 180);
--card-foreground: oklch(0.186 0.034 122.642);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.218 0.041 123.492);
--primary-foreground: oklch(0.759 0.177 125.525);
--secondary: oklch(0.191 0.026 227.639);
--secondary-foreground: oklch(0.771 0.087 227.322);
--accent: oklch(0.173 0.048 340.435);
--accent-foreground: oklch(0.708 0.158 339.755);
--destructive: oklch(0.33 0.121 28.293);
--destructive-foreground: oklch(0.819 0.085 21.288);
--ring: oklch(0.218 0.041 123.492);
--chart-1: oklch(0.218 0.041 123.492);
--chart-2: oklch(0.191 0.026 227.639);
--chart-3: oklch(0.173 0.048 340.435);
--chart-4: oklch(0.23 0.034 228.916);
--chart-5: oklch(0.22 0.042 123.601);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 119.943);
--foreground: oklch(1 0 180);
--muted: oklch(0.271 0.007 225.302);
--muted-foreground: oklch(0.783 0.008 225.093);
--popover: oklch(0.099 0.01 119.943);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.01 119.943);
--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.218 0.041 123.492);
--primary-foreground: oklch(0.759 0.177 125.525);
--secondary: oklch(0.191 0.026 227.639);
--secondary-foreground: oklch(0.771 0.087 227.322);
--accent: oklch(0.173 0.048 340.435);
--accent-foreground: oklch(0.708 0.158 339.755);
--destructive: oklch(0.628 0.205 26.95);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.218 0.041 123.492);
--chart-1: oklch(0.218 0.041 123.492);
--chart-2: oklch(0.191 0.026 227.639);
--chart-3: oklch(0.173 0.048 340.435);
--chart-4: oklch(0.23 0.034 228.916);
--chart-5: oklch(0.22 0.042 123.601);
}