Nimble is a shadcn/ui theme built around a vivid deep teal primary color (#062d1a) with vivid deep orange accents (#2d1a06). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid deep teal primary (#062d1a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #000000black |
| Foreground | #020e08black | #f9fbfamintcream |
| Card | #f8fcfamintcream | #000000black |
| Card foreground | #020e08black | #f9fbfamintcream |
| Popover | #f8fcfamintcream | #000000black |
| Popover foreground | #020e08black | #f9fbfamintcream |
| Primary | #062d1ablack | #062d1ablack |
| Primary foreground | #1de283springgreen | #1de283springgreen |
| Secondary | #1a062dblack | #1a062dblack |
| Secondary foreground | #b478edmediumpurple | #b478edmediumpurple |
| Muted | #d9d2e0gainsboro | #261f2ddarkslategray |
| Muted foreground | #57505edimgray | #a9a1afdarkgray |
| Accent | #2d1a06black | #2d1a06black |
| Accent foreground | #edb478burlywood | #edb478burlywood |
| Destructive | #a42c04firebrick | #fa6938tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #062d1ablack | #062d1ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.94:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 5.24:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 9.02:1 | AAA |
| Destructive | 7.12:1 | AAA |
Paste this into your globals.css to use Nimble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 165.905);
--foreground: oklch(0.146 0.025 165.398);
--muted: oklch(0.873 0.02 308.883);
--muted-foreground: oklch(0.442 0.024 308.555);
--popover: oklch(0.987 0.004 165.905);
--popover-foreground: oklch(0.146 0.025 165.398);
--card: oklch(0.987 0.004 165.905);
--card-foreground: oklch(0.146 0.025 165.398);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.265 0.056 157.621);
--primary-foreground: oklch(0.803 0.195 154.447);
--secondary: oklch(0.185 0.076 303.641);
--secondary-foreground: oklch(0.683 0.176 306.145);
--accent: oklch(0.239 0.044 65.184);
--accent-foreground: oklch(0.81 0.102 67.415);
--destructive: oklch(0.478 0.162 35.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.265 0.056 157.621);
--chart-1: oklch(0.265 0.056 157.621);
--chart-2: oklch(0.185 0.076 303.641);
--chart-3: oklch(0.239 0.044 65.184);
--chart-4: oklch(0.213 0.092 302.67);
--chart-5: oklch(0.267 0.058 157.376);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 165.949);
--muted: oklch(0.255 0.027 307.996);
--muted-foreground: oklch(0.721 0.021 308.815);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 165.949);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.003 165.949);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.265 0.056 157.621);
--primary-foreground: oklch(0.803 0.195 154.447);
--secondary: oklch(0.185 0.076 303.641);
--secondary-foreground: oklch(0.683 0.176 306.145);
--accent: oklch(0.239 0.044 65.184);
--accent-foreground: oklch(0.81 0.102 67.415);
--destructive: oklch(0.694 0.189 38.225);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.265 0.056 157.621);
--chart-1: oklch(0.265 0.056 157.621);
--chart-2: oklch(0.185 0.076 303.641);
--chart-3: oklch(0.239 0.044 65.184);
--chart-4: oklch(0.213 0.092 302.67);
--chart-5: oklch(0.267 0.058 157.376);
}