Nestling is a shadcn/ui theme built around a neutral gray primary color (#848a90) with neutral gray accents (#8a9084). The light mode uses a neutral background (#f7fafd). Dark mode keeps the neutral gray primary (#848a90) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #010304black |
| Foreground | #030b12black | #fcfdfdwhite |
| Card | #f3f8fcaliceblue | #030507black |
| Card foreground | #02080dblack | #ffffffwhite |
| Popover | #f3f8fcaliceblue | #030507black |
| Popover foreground | #02080dblack | #ffffffwhite |
| Primary | #848a90lightslategray | #848a90lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #90848agray | #90848agray |
| Secondary foreground | #000000black | #000000black |
| Muted | #f0eaeewhitesmoke | #150f12black |
| Muted foreground | #51434bdarkslategray | #bcaeb6silver |
| Accent | #8a9084gray | #8a9084gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #921501darkred | #fd3a1corangered |
| Destructive foreground | #fecfc7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #848a90lightslategray | #848a90lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.93:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 5.83:1 | AA |
| Muted text | 7.85:1 | AAA |
| Accent | 6.38:1 | AA |
| Destructive | 6.40:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 5.83:1 | AA |
| Muted text | 8.91:1 | AAA |
| Accent | 6.38:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Nestling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.005 240.358);
--foreground: oklch(0.144 0.022 236.24);
--muted: oklch(0.943 0.008 342.021);
--muted-foreground: oklch(0.4 0.022 343.061);
--popover: oklch(0.976 0.008 240.397);
--popover-foreground: oklch(0.13 0.018 232.226);
--card: oklch(0.976 0.008 240.397);
--card-foreground: oklch(0.13 0.018 232.226);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.631 0.011 240.523);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.625 0.017 342.45);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.644 0.018 126.118);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.425 0.162 31.554);
--destructive-foreground: oklch(0.893 0.055 28.375);
--ring: oklch(0.631 0.011 240.523);
--chart-1: oklch(0.631 0.011 240.523);
--chart-2: oklch(0.625 0.017 342.45);
--chart-3: oklch(0.644 0.018 126.118);
--chart-4: oklch(0.651 0.016 342.379);
--chart-5: oklch(0.631 0.017 240.67);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.007 234.553);
--foreground: oklch(0.992 0.002 240.305);
--muted: oklch(0.177 0.013 343.475);
--muted-foreground: oklch(0.766 0.018 342.375);
--popover: oklch(0.114 0.009 234.553);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.114 0.009 234.553);
--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.631 0.011 240.523);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.625 0.017 342.45);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.644 0.018 126.118);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.648 0.233 31.567);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.631 0.011 240.523);
--chart-1: oklch(0.631 0.011 240.523);
--chart-2: oklch(0.625 0.017 342.45);
--chart-3: oklch(0.644 0.018 126.118);
--chart-4: oklch(0.651 0.016 342.379);
--chart-5: oklch(0.631 0.017 240.67);
}