Nimble for shadcn/ui

Nimble is a shadcn/ui theme built around a muted red primary color (#946051) with muted red accents (#bdb0ad). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the muted red primary (#946051) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#000000black
Foreground
#080302black
#fdfcfcsnow
Card
#fcf9f8snow
#030303black
Card foreground
#040201black
#ffffffwhite
Popover
#fcf9f8snow
#030303black
Popover foreground
#040201black
#ffffffwhite
Primary
#946051sienna
#946051sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdcccblightgrey
#1e1715black
Secondary foreground
#343332darkslategray
#bfaca6darkgray
Muted
#e7d1cblightgrey
#341e18black
Muted foreground
#675a56dimgray
#a99c98darkgray
Accent
#bdb0addarkgray
#382824darkslategray
Accent foreground
#1f1a19black
#d3c0bbsilver
Destructive
#641b02maroon
#fa4e14orangered
Destructive foreground
#fdb49bburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#946051sienna
#946051sienna

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.73:1AAA
Primary button5.18:1AA
Secondary button7.84:1AAA
Muted text4.52:1AA
Accent8.20:1AAA
Destructive7.18:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button5.18:1AA
Secondary button8.12:1AAA
Muted text5.84:1AA
Accent8.02:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 36.006);
  --foreground: oklch(0.111 0.014 42.978);
  --muted: oklch(0.877 0.026 35.948);
  --muted-foreground: oklch(0.478 0.018 35.943);
  --popover: oklch(0.984 0.003 36);
  --popover-foreground: oklch(0.088 0.011 42.978);
  --card: oklch(0.984 0.003 36);
  --card-foreground: oklch(0.088 0.011 42.978);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.542 0.072 36.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.845 0.001 36.008);
  --secondary-foreground: oklch(0.321 0.001 35.999);
  --accent: oklch(0.768 0.016 35.959);
  --accent-foreground: oklch(0.224 0.008 35.944);
  --destructive: oklch(0.338 0.11 37.161);
  --destructive-foreground: oklch(0.832 0.093 39.209);
  --ring: oklch(0.542 0.072 36.169);
  --chart-1: oklch(0.542 0.072 36.169);
  --chart-2: oklch(0.845 0.001 36.008);
  --chart-3: oklch(0.768 0.016 35.959);
  --chart-4: oklch(0.869 0.001 36.009);
  --chart-5: oklch(0.542 0.08 36.222);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 36.007);
  --muted: oklch(0.263 0.036 36.179);
  --muted-foreground: oklch(0.703 0.017 35.954);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.542 0.072 36.169);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.213 0.011 35.949);
  --secondary-foreground: oklch(0.758 0.024 35.946);
  --accent: oklch(0.295 0.025 36.011);
  --accent-foreground: oklch(0.822 0.023 35.948);
  --destructive: oklch(0.661 0.217 36.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.072 36.169);
  --chart-1: oklch(0.542 0.072 36.169);
  --chart-2: oklch(0.213 0.011 35.949);
  --chart-3: oklch(0.295 0.025 36.011);
  --chart-4: oklch(0.245 0.014 35.953);
  --chart-5: oklch(0.542 0.08 36.222);
}