Nimble for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button5.75:1AA
Secondary button7.50:1AAA
Muted text4.90:1AA
Accent4.87:1AA
Destructive6.38:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.75:1AA
Secondary button7.50:1AAA
Muted text7.52:1AAA
Accent4.87:1AA
Destructive4.12:1AA Large

CSS variables

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);
}