Nimble is a shadcn/ui theme built around a deep purple primary color (#4c2045) with deep pink accents (#4c202f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#4c2045) on a neutral background (#080207).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080207black |
| Foreground | #090108black | #ffffffwhite |
| Card | #ffffffwhite | #080207black |
| Card foreground | #090108black | #ffffffwhite |
| Popover | #ffffffwhite | #080207black |
| Popover foreground | #090108black | #ffffffwhite |
| Primary | #4c2045darkslategray | #4c2045darkslategray |
| Primary foreground | #e2bbdcthistle | #e2bbdcthistle |
| Secondary | #3c204cdarkslategray | #3c204cdarkslategray |
| Secondary foreground | #d5bbe2thistle | #d5bbe2thistle |
| Muted | #f1ecf4whitesmoke | #100b13black |
| Muted foreground | #665a6ddimgray | #9f92a5darkgray |
| Accent | #4c202fdarkslategray | #4c202fdarkslategray |
| Accent foreground | #e2bbc9thistle | #e2bbc9thistle |
| Destructive | #990300darkred | #ff312ecrimson |
| Destructive foreground | #ffcdccpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4c2045darkslategray | #4c2045darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Nimble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.035 331.827);
--muted: oklch(0.949 0.011 314.153);
--muted-foreground: oklch(0.485 0.035 313.823);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.035 331.827);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.035 331.827);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.32 0.085 333.393);
--primary-foreground: oklch(0.836 0.064 331.192);
--secondary: oklch(0.302 0.083 312.455);
--secondary-foreground: oklch(0.826 0.061 313.811);
--accent: oklch(0.31 0.069 359.831);
--accent-foreground: oklch(0.83 0.049 355.21);
--destructive: oklch(0.43 0.175 29.478);
--destructive-foreground: oklch(0.891 0.057 19.414);
--ring: oklch(0.32 0.085 333.393);
--chart-1: oklch(0.32 0.085 333.393);
--chart-2: oklch(0.302 0.083 312.455);
--chart-3: oklch(0.31 0.069 359.831);
--chart-4: oklch(0.328 0.092 312.392);
--chart-5: oklch(0.321 0.091 333.59);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.026 331.419);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.018 313.616);
--muted-foreground: oklch(0.676 0.032 313.957);
--popover: oklch(0.107 0.026 331.419);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.026 331.419);
--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.32 0.085 333.393);
--primary-foreground: oklch(0.836 0.064 331.192);
--secondary: oklch(0.302 0.083 312.455);
--secondary-foreground: oklch(0.826 0.061 313.811);
--accent: oklch(0.31 0.069 359.831);
--accent-foreground: oklch(0.83 0.049 355.21);
--destructive: oklch(0.647 0.238 27.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.32 0.085 333.393);
--chart-1: oklch(0.32 0.085 333.393);
--chart-2: oklch(0.302 0.083 312.455);
--chart-3: oklch(0.31 0.069 359.831);
--chart-4: oklch(0.328 0.092 312.392);
--chart-5: oklch(0.321 0.091 333.59);
}