Nimble is a shadcn/ui theme built around a deep green primary color (#32451c) with muted light green accents (#c7cdc1). The light mode uses a neutral background (#fafdf6). Dark mode keeps the deep green primary (#32451c) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf6mintcream | #030302black |
| Foreground | #0d1505black | #ffffffwhite |
| Card | #f8fdf2ivory | #050703black |
| Card foreground | #0b1104black | #ffffffwhite |
| Popover | #fafdf6mintcream | #030302black |
| Popover foreground | #0d1505black | #ffffffwhite |
| Primary | #32451cdarkslategray | #32451cdarkslategray |
| Primary foreground | #cbe0b3lightgrey | #cbe0b3lightgrey |
| Secondary | #dee0dcgainsboro | #2c2f27darkslategray |
| Secondary foreground | #454841darkslategray | #c5cabfsilver |
| Muted | #e8efe1beige | #171e10black |
| Muted foreground | #43483ddarkslategray | #bdc2b7silver |
| Accent | #c7cdc1silver | #434f36darkslategray |
| Accent foreground | #2e3329darkslategray | #dce2d5gainsboro |
| Destructive | #ce410dchocolate | #f05219orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #32451cdarkslategray | #32451cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.19:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.99:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 4.79:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 9.42:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Nimble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 127.232);
--foreground: oklch(0.182 0.034 128.816);
--muted: oklch(0.943 0.019 127.359);
--muted-foreground: oklch(0.392 0.019 127.707);
--popover: oklch(0.991 0.01 127.232);
--popover-foreground: oklch(0.182 0.034 128.816);
--card: oklch(0.986 0.015 127.294);
--card-foreground: oklch(0.165 0.03 127.724);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.363 0.068 129.93);
--primary-foreground: oklch(0.879 0.064 128.042);
--secondary: oklch(0.903 0.005 127.176);
--secondary-foreground: oklch(0.397 0.012 127.489);
--accent: oklch(0.841 0.018 127.376);
--accent-foreground: oklch(0.313 0.019 127.867);
--destructive: oklch(0.574 0.186 36.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.068 129.93);
--chart-1: oklch(0.363 0.068 129.93);
--chart-2: oklch(0.903 0.005 127.176);
--chart-3: oklch(0.841 0.018 127.376);
--chart-4: oklch(0.926 0.004 127.16);
--chart-5: oklch(0.367 0.072 130.131);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 126.453);
--foreground: oklch(1 0 180);
--muted: oklch(0.223 0.026 128.689);
--muted-foreground: oklch(0.807 0.016 127.351);
--popover: oklch(0.098 0.01 126.453);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.012 126.453);
--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.363 0.068 129.93);
--primary-foreground: oklch(0.879 0.064 128.042);
--secondary: oklch(0.3 0.015 127.724);
--secondary-foreground: oklch(0.831 0.015 127.341);
--accent: oklch(0.409 0.043 128.492);
--accent-foreground: oklch(0.904 0.019 127.377);
--destructive: oklch(0.65 0.204 37.604);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.363 0.068 129.93);
--chart-1: oklch(0.363 0.068 129.93);
--chart-2: oklch(0.3 0.015 127.724);
--chart-3: oklch(0.409 0.043 128.492);
--chart-4: oklch(0.332 0.017 127.747);
--chart-5: oklch(0.367 0.072 130.131);
}