Nimble is a shadcn/ui theme built around a deep blue primary color (#050810) with deep indigo accents (#070510). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#050810) on a blue-tinted background (#06090e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #06090eblack |
| Foreground | #000000black | #f9fafbghostwhite |
| Card | #f6f9fdghostwhite | #080b11black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfcfewhite | #06090eblack |
| Popover foreground | #000000black | #f9fafbghostwhite |
| Primary | #050810black | #050810black |
| Primary foreground | #7393d4cornflowerblue | #7393d4cornflowerblue |
| Secondary | #050e10black | #050e10black |
| Secondary foreground | #73c4d4skyblue | #73c4d4skyblue |
| Muted | #cbe2e6gainsboro | #192f34darkslategray |
| Muted foreground | #475052darkslategray | #adb6b8darkgray |
| Accent | #070510black | #070510black |
| Accent foreground | #c8c1ecthistle | #c8c1ecthistle |
| Destructive | #840e06maroon | #f52314orangered |
| Destructive foreground | #fcc3bfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050810black | #050810black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 9.83:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 11.86:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.52:1 | AA |
| Secondary button | 9.83:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 11.86:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Nimble in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 264.541);
--foreground: oklch(0 0 0);
--muted: oklch(0.897 0.025 211.055);
--muted-foreground: oklch(0.424 0.012 211.056);
--popover: oklch(0.99 0.003 264.541);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.007 264.529);
--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.136 0.018 259.168);
--primary-foreground: oklch(0.665 0.104 263.494);
--secondary: oklch(0.154 0.016 210.061);
--secondary-foreground: oklch(0.773 0.083 211.903);
--accent: oklch(0.124 0.026 291.77);
--accent-foreground: oklch(0.83 0.06 292.674);
--destructive: oklch(0.392 0.152 29.854);
--destructive-foreground: oklch(0.868 0.066 23.215);
--ring: oklch(0.136 0.018 259.168);
--chart-1: oklch(0.136 0.018 259.168);
--chart-2: oklch(0.154 0.016 210.061);
--chart-3: oklch(0.124 0.026 291.77);
--chart-4: oklch(0.197 0.022 211.991);
--chart-5: oklch(0.135 0.019 258.759);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 261.159);
--foreground: oklch(0.984 0.001 264.547);
--muted: oklch(0.289 0.029 211.783);
--muted-foreground: oklch(0.77 0.01 211.038);
--popover: oklch(0.139 0.012 261.159);
--popover-foreground: oklch(0.984 0.001 264.547);
--card: oklch(0.15 0.015 263.267);
--card-foreground: oklch(0.992 0.001 264.549);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.136 0.018 259.168);
--primary-foreground: oklch(0.665 0.104 263.494);
--secondary: oklch(0.154 0.016 210.061);
--secondary-foreground: oklch(0.773 0.083 211.903);
--accent: oklch(0.124 0.026 291.77);
--accent-foreground: oklch(0.83 0.06 292.674);
--destructive: oklch(0.62 0.24 29.727);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.136 0.018 259.168);
--chart-1: oklch(0.136 0.018 259.168);
--chart-2: oklch(0.154 0.016 210.061);
--chart-3: oklch(0.124 0.026 291.77);
--chart-4: oklch(0.197 0.022 211.991);
--chart-5: oklch(0.135 0.019 258.759);
}