Nimble is a shadcn/ui theme built around a muted orange primary color (#a97c66) with muted violet accents (#7c66a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#a97c66) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #120802black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #120802black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #120802black | #ffffffwhite |
| Primary | #a97c66gray | #a97c66gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #66a97ccadetblue | #66a97ccadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #eff6f1whitesmoke | #09100cblack |
| Muted foreground | #57705fdimgray | #8fa897darkseagreen |
| Accent | #7c66a9lightslategray | #7c66a9lightslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9b0303darkred | #fa0505red |
| Destructive foreground | #fed2d2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a97c66gray | #a97c66gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 4.90:1 | AA |
| Accent | 4.87:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.75:1 | AA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 4.87:1 | AA |
| Destructive | 4.12: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.146 0.025 56.988);
--muted: oklch(0.966 0.009 157.072);
--muted-foreground: oklch(0.521 0.041 155.557);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.025 56.988);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.025 56.988);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.625 0.065 47.656);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.677 0.096 153.897);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.559 0.104 298.324);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.434 0.176 28.997);
--destructive-foreground: oklch(0.901 0.05 18.113);
--ring: oklch(0.625 0.065 47.656);
--chart-1: oklch(0.625 0.065 47.656);
--chart-2: oklch(0.677 0.096 153.897);
--chart-3: oklch(0.559 0.104 298.324);
--chart-4: oklch(0.697 0.09 154.262);
--chart-5: oklch(0.626 0.072 47.534);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.014 155.437);
--muted-foreground: oklch(0.708 0.038 156.124);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.625 0.065 47.656);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.677 0.096 153.897);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.559 0.104 298.324);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.619 0.253 29.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.625 0.065 47.656);
--chart-1: oklch(0.625 0.065 47.656);
--chart-2: oklch(0.677 0.096 153.897);
--chart-3: oklch(0.559 0.104 298.324);
--chart-4: oklch(0.697 0.09 154.262);
--chart-5: oklch(0.626 0.072 47.534);
}