Nimble is a shadcn/ui theme built around a red primary color (#ec93a0) with orange accents (#ecb293). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#ec93a0) on a red-tinted background (#0e0708).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0708black |
| Foreground | #040101black | #f8f6f7whitesmoke |
| Card | #fcfcfcsnow | #11080ablack |
| Card foreground | #000000black | #fbf9f9snow |
| Popover | #ffffffwhite | #0e0708black |
| Popover foreground | #040101black | #f8f6f7whitesmoke |
| Primary | #ec93a0lightcoral | #ec93a0lightcoral |
| Primary foreground | #410b14maroon | #410b14maroon |
| Secondary | #ec93cdplum | #ec93cdplum |
| Secondary foreground | #410b2edarkslategray | #410b2edarkslategray |
| Muted | #f5ebf1whitesmoke | #140a11black |
| Muted foreground | #5e4555dimgray | #baa1b1darkgray |
| Accent | #ecb293burlywood | #ecb293burlywood |
| Accent foreground | #411e0bmaroon | #411e0bmaroon |
| Destructive | #84150bmaroon | #ef4839tomato |
| Destructive foreground | #facbc6pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ec93a0lightcoral | #ec93a0lightcoral |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 7.18:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 8.14:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.71: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.079 0.021 7.825);
--muted: oklch(0.949 0.014 338.287);
--muted-foreground: oklch(0.424 0.041 339.905);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.079 0.021 7.825);
--card: oklch(0.992 0 161.565);
--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.757 0.109 10.257);
--primary-foreground: oklch(0.253 0.081 17.02);
--secondary: oklch(0.771 0.129 341.207);
--secondary-foreground: oklch(0.263 0.091 345.369);
--accent: oklch(0.809 0.08 49.49);
--accent-foreground: oklch(0.281 0.061 46.922);
--destructive: oklch(0.397 0.147 30.023);
--destructive-foreground: oklch(0.882 0.055 24.294);
--ring: oklch(0.757 0.109 10.257);
--chart-1: oklch(0.757 0.109 10.257);
--chart-2: oklch(0.771 0.129 341.207);
--chart-3: oklch(0.809 0.08 49.49);
--chart-4: oklch(0.797 0.113 340.731);
--chart-5: oklch(0.756 0.113 10.439);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.014 7.653);
--foreground: oklch(0.976 0.002 6.655);
--muted: oklch(0.163 0.022 340.554);
--muted-foreground: oklch(0.736 0.036 338.972);
--popover: oklch(0.138 0.014 7.653);
--popover-foreground: oklch(0.976 0.002 6.655);
--card: oklch(0.15 0.016 8.781);
--card-foreground: oklch(0.984 0.002 6.635);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.757 0.109 10.257);
--primary-foreground: oklch(0.253 0.081 17.02);
--secondary: oklch(0.771 0.129 341.207);
--secondary-foreground: oklch(0.263 0.091 345.369);
--accent: oklch(0.809 0.08 49.49);
--accent-foreground: oklch(0.281 0.061 46.922);
--destructive: oklch(0.639 0.206 29.216);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.757 0.109 10.257);
--chart-1: oklch(0.757 0.109 10.257);
--chart-2: oklch(0.771 0.129 341.207);
--chart-3: oklch(0.809 0.08 49.49);
--chart-4: oklch(0.797 0.113 340.731);
--chart-5: oklch(0.756 0.113 10.439);
}