Nimble is a shadcn/ui theme built around a vivid indigo primary color (#2418af) with neutral gray accents (#d5d4d8). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#2418af) on an indigo-tinted background (#06060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #06060fblack |
| Foreground | #010104black | #f9f9fbghostwhite |
| Card | #f7f6fdghostwhite | #080712black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #06060fblack |
| Popover foreground | #010104black | #f9f9fbghostwhite |
| Primary | #2418afmediumblue | #2418afmediumblue |
| Primary foreground | #fbfbfeghostwhite | #fbfbfeghostwhite |
| Secondary | #d5d4d8lightgrey | #252528darkslategray |
| Secondary foreground | #3b3a40darkslategray | #bdbdc2silver |
| Muted | #e3e3e8gainsboro | #17171cblack |
| Muted foreground | #41404adarkslategray | #b6b5bfsilver |
| Accent | #d5d4d8lightgrey | #252528darkslategray |
| Accent foreground | #3b3a40darkslategray | #bdbdc2silver |
| Destructive | #660b0bmaroon | #e82121crimson |
| Destructive foreground | #f6acaclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2418afmediumblue | #2418afmediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 11.13:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 7.63:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.20:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 11.13:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 8.81:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Nimble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 290.159);
--foreground: oklch(0.076 0.016 287.308);
--muted: oklch(0.917 0.008 290.091);
--muted-foreground: oklch(0.376 0.016 289.415);
--popover: oklch(0.988 0.005 290.159);
--popover-foreground: oklch(0.076 0.016 287.308);
--card: oklch(0.977 0.009 290.069);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.369 0.218 271.687);
--primary-foreground: oklch(0.988 0.005 290.149);
--secondary: oklch(0.872 0.006 290.126);
--secondary-foreground: oklch(0.352 0.011 289.677);
--accent: oklch(0.872 0.006 290.126);
--accent-foreground: oklch(0.352 0.011 289.677);
--destructive: oklch(0.327 0.123 27.477);
--destructive-foreground: oklch(0.815 0.088 19.138);
--ring: oklch(0.369 0.218 271.687);
--chart-1: oklch(0.369 0.218 271.687);
--chart-2: oklch(0.872 0.006 290.126);
--chart-3: oklch(0.872 0.006 290.126);
--chart-4: oklch(0.896 0.004 290.152);
--chart-5: oklch(0.369 0.223 270.792);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.021 287.679);
--foreground: oklch(0.982 0.003 290.185);
--muted: oklch(0.206 0.011 289.214);
--muted-foreground: oklch(0.778 0.014 289.917);
--popover: oklch(0.127 0.021 287.679);
--popover-foreground: oklch(0.982 0.003 290.185);
--card: oklch(0.138 0.025 287.018);
--card-foreground: oklch(0.991 0.002 290.216);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.369 0.218 271.687);
--primary-foreground: oklch(0.988 0.005 290.149);
--secondary: oklch(0.265 0.006 289.843);
--secondary-foreground: oklch(0.799 0.007 290.079);
--accent: oklch(0.265 0.006 289.843);
--accent-foreground: oklch(0.799 0.007 290.079);
--destructive: oklch(0.596 0.228 27.812);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.369 0.218 271.687);
--chart-1: oklch(0.369 0.218 271.687);
--chart-2: oklch(0.265 0.006 289.843);
--chart-3: oklch(0.265 0.006 289.843);
--chart-4: oklch(0.295 0.007 289.823);
--chart-5: oklch(0.369 0.223 270.792);
}