Nimble for shadcn/ui

Nimble is a shadcn/ui theme built around a vivid teal primary color (#19f0cc) with near-white accents (#e6eae9). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#19f0cc) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfefewhite
#020303black
Foreground
#040c0ablack
#f6f8f8whitesmoke
Card
#fbfefewhite
#020303black
Card foreground
#040c0ablack
#f6f8f8whitesmoke
Popover
#fbfefewhite
#020303black
Popover foreground
#040c0ablack
#f6f8f8whitesmoke
Primary
#19f0ccturquoise
#19f0ccturquoise
Primary foreground
#043a31darkslategray
#043a31darkslategray
Secondary
#e6eae9lavender
#151918black
Secondary foreground
#4a5553darkslategray
#a9b7b5darkgray
Muted
#dee8e6gainsboro
#17211fblack
Muted foreground
#4e5a58darkslategray
#a5b1afdarkgray
Accent
#e6eae9lavender
#151918black
Accent foreground
#4a5553darkslategray
#a9b7b5darkgray
Destructive
#6f2206maroon
#e4460corangered
Destructive foreground
#fbc1adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19f0ccturquoise
#19f0ccturquoise

Contrast

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

Light mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button8.71:1AAA
Secondary button6.36:1AA
Muted text5.72:1AA
Accent6.36:1AA
Destructive6.96:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button8.71:1AAA
Secondary button8.55:1AAA
Muted text7.47:1AAA
Accent8.55:1AAA
Destructive4.07: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.995 0.004 185.35);
  --foreground: oklch(0.142 0.015 184.703);
  --muted: oklch(0.922 0.01 185.153);
  --muted-foreground: oklch(0.457 0.015 184.569);
  --popover: oklch(0.995 0.004 185.35);
  --popover-foreground: oklch(0.142 0.015 184.703);
  --card: oklch(0.995 0.004 185.35);
  --card-foreground: oklch(0.142 0.015 184.703);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.856 0.157 176.377);
  --primary-foreground: oklch(0.311 0.055 177.972);
  --secondary: oklch(0.933 0.004 185.351);
  --secondary-foreground: oklch(0.438 0.014 184.577);
  --accent: oklch(0.933 0.004 185.351);
  --accent-foreground: oklch(0.438 0.014 184.577);
  --destructive: oklch(0.37 0.115 37.876);
  --destructive-foreground: oklch(0.858 0.072 40.892);
  --ring: oklch(0.856 0.157 176.377);
  --chart-1: oklch(0.856 0.157 176.377);
  --chart-2: oklch(0.933 0.004 185.351);
  --chart-3: oklch(0.933 0.004 185.351);
  --chart-4: oklch(0.956 0.002 185.385);
  --chart-5: oklch(0.865 0.16 176.109);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 185.244);
  --foreground: oklch(0.979 0.002 185.383);
  --muted: oklch(0.237 0.014 183.824);
  --muted-foreground: oklch(0.75 0.013 184.975);
  --popover: oklch(0.096 0.007 185.244);
  --popover-foreground: oklch(0.979 0.002 185.383);
  --card: oklch(0.096 0.007 185.244);
  --card-foreground: oklch(0.979 0.002 185.383);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.856 0.157 176.377);
  --primary-foreground: oklch(0.311 0.055 177.972);
  --secondary: oklch(0.209 0.006 184.628);
  --secondary-foreground: oklch(0.768 0.016 184.894);
  --accent: oklch(0.209 0.006 184.628);
  --accent-foreground: oklch(0.768 0.016 184.894);
  --destructive: oklch(0.615 0.203 36.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.157 176.377);
  --chart-1: oklch(0.856 0.157 176.377);
  --chart-2: oklch(0.209 0.006 184.628);
  --chart-3: oklch(0.209 0.006 184.628);
  --chart-4: oklch(0.243 0.008 184.544);
  --chart-5: oklch(0.865 0.16 176.109);
}