Nimble for shadcn/ui

Nimble is a shadcn/ui theme built around a vivid deep teal primary color (#062d1a) with vivid deep orange accents (#2d1a06). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid deep teal primary (#062d1a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#000000black
Foreground
#020e08black
#f9fbfamintcream
Card
#f8fcfamintcream
#000000black
Card foreground
#020e08black
#f9fbfamintcream
Popover
#f8fcfamintcream
#000000black
Popover foreground
#020e08black
#f9fbfamintcream
Primary
#062d1ablack
#062d1ablack
Primary foreground
#1de283springgreen
#1de283springgreen
Secondary
#1a062dblack
#1a062dblack
Secondary foreground
#b478edmediumpurple
#b478edmediumpurple
Muted
#d9d2e0gainsboro
#261f2ddarkslategray
Muted foreground
#57505edimgray
#a9a1afdarkgray
Accent
#2d1a06black
#2d1a06black
Accent foreground
#edb478burlywood
#edb478burlywood
Destructive
#a42c04firebrick
#fa6938tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#062d1ablack
#062d1ablack

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.94:1AAA
Text on card18.94:1AAA
Primary button8.75:1AAA
Secondary button6.18:1AA
Muted text5.24:1AA
Accent9.02:1AAA
Destructive7.13:1AAA
Dark mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.75:1AAA
Secondary button6.18:1AA
Muted text6.35:1AA
Accent9.02:1AAA
Destructive7.12:1AAA

CSS variables

Paste this into your globals.css to use Nimble in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 165.905);
  --foreground: oklch(0.146 0.025 165.398);
  --muted: oklch(0.873 0.02 308.883);
  --muted-foreground: oklch(0.442 0.024 308.555);
  --popover: oklch(0.987 0.004 165.905);
  --popover-foreground: oklch(0.146 0.025 165.398);
  --card: oklch(0.987 0.004 165.905);
  --card-foreground: oklch(0.146 0.025 165.398);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.265 0.056 157.621);
  --primary-foreground: oklch(0.803 0.195 154.447);
  --secondary: oklch(0.185 0.076 303.641);
  --secondary-foreground: oklch(0.683 0.176 306.145);
  --accent: oklch(0.239 0.044 65.184);
  --accent-foreground: oklch(0.81 0.102 67.415);
  --destructive: oklch(0.478 0.162 35.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.265 0.056 157.621);
  --chart-1: oklch(0.265 0.056 157.621);
  --chart-2: oklch(0.185 0.076 303.641);
  --chart-3: oklch(0.239 0.044 65.184);
  --chart-4: oklch(0.213 0.092 302.67);
  --chart-5: oklch(0.267 0.058 157.376);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 165.949);
  --muted: oklch(0.255 0.027 307.996);
  --muted-foreground: oklch(0.721 0.021 308.815);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 165.949);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.003 165.949);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.265 0.056 157.621);
  --primary-foreground: oklch(0.803 0.195 154.447);
  --secondary: oklch(0.185 0.076 303.641);
  --secondary-foreground: oklch(0.683 0.176 306.145);
  --accent: oklch(0.239 0.044 65.184);
  --accent-foreground: oklch(0.81 0.102 67.415);
  --destructive: oklch(0.694 0.189 38.225);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.265 0.056 157.621);
  --chart-1: oklch(0.265 0.056 157.621);
  --chart-2: oklch(0.185 0.076 303.641);
  --chart-3: oklch(0.239 0.044 65.184);
  --chart-4: oklch(0.213 0.092 302.67);
  --chart-5: oklch(0.267 0.058 157.376);
}