Nibble is a shadcn/ui theme built around a muted deep teal primary color (#142424) with muted deep yellow accents (#242414). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted deep teal primary (#142424) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #010404black |
| Foreground | #041010black | #f6f9f9whitesmoke |
| Card | #fbfdfewhite | #010404black |
| Card foreground | #041010black | #f6f9f9whitesmoke |
| Popover | #fbfdfewhite | #010404black |
| Popover foreground | #041010black | #f6f9f9whitesmoke |
| Primary | #142424black | #142424black |
| Primary foreground | #a0c9calightsteelblue | #a0c9calightsteelblue |
| Secondary | #241424black | #241424black |
| Secondary foreground | #caa0c9plum | #caa0c9plum |
| Muted | #e7dfe7gainsboro | #201820black |
| Muted foreground | #453a45darkslategray | #c5bac5silver |
| Accent | #242414black | #242414black |
| Accent foreground | #a4a65edarkkhaki | #a4a65edarkkhaki |
| Destructive | #5d0c09maroon | #eb3d37crimson |
| Destructive foreground | #f6a5a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #142424black | #142424black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 8.97:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 6.12:1 | AA |
| Destructive | 7.11:1 | AAA |
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 8.97:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 6.12:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Nibble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 199.574);
--foreground: oklch(0.16 0.018 198.139);
--muted: oklch(0.912 0.014 326.675);
--muted-foreground: oklch(0.365 0.024 327.099);
--popover: oklch(0.994 0.002 199.574);
--popover-foreground: oklch(0.16 0.018 198.139);
--card: oklch(0.994 0.002 199.574);
--card-foreground: oklch(0.16 0.018 198.139);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.245 0.021 198.617);
--primary-foreground: oklch(0.807 0.044 198.932);
--secondary: oklch(0.22 0.038 327.933);
--secondary-foreground: oklch(0.757 0.075 327.363);
--accent: oklch(0.255 0.028 109.874);
--accent-foreground: oklch(0.708 0.095 110.272);
--destructive: oklch(0.31 0.113 28.254);
--destructive-foreground: oklch(0.8 0.096 21.614);
--ring: oklch(0.245 0.021 198.617);
--chart-1: oklch(0.245 0.021 198.617);
--chart-2: oklch(0.22 0.038 327.933);
--chart-3: oklch(0.255 0.028 109.874);
--chart-4: oklch(0.252 0.047 328.028);
--chart-5: oklch(0.247 0.023 198.563);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 198.064);
--foreground: oklch(0.979 0.003 199.557);
--muted: oklch(0.222 0.02 327.291);
--muted-foreground: oklch(0.8 0.02 326.755);
--popover: oklch(0.097 0.008 198.064);
--popover-foreground: oklch(0.979 0.003 199.557);
--card: oklch(0.097 0.008 198.064);
--card-foreground: oklch(0.979 0.003 199.557);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.245 0.021 198.617);
--primary-foreground: oklch(0.807 0.044 198.932);
--secondary: oklch(0.22 0.038 327.933);
--secondary-foreground: oklch(0.757 0.075 327.363);
--accent: oklch(0.255 0.028 109.874);
--accent-foreground: oklch(0.708 0.095 110.272);
--destructive: oklch(0.623 0.211 27.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.245 0.021 198.617);
--chart-1: oklch(0.245 0.021 198.617);
--chart-2: oklch(0.22 0.038 327.933);
--chart-3: oklch(0.255 0.028 109.874);
--chart-4: oklch(0.252 0.047 328.028);
--chart-5: oklch(0.247 0.023 198.563);
}