Understated for shadcn/ui

Understated is a shadcn/ui theme built around a vivid deep blue primary color (#010a14) with muted light blue accents (#b4c3d5). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the vivid deep blue primary (#010a14) on a blue-tinted background (#03070c).

Color palette

TokenLightDark
Background
#fbfcfdwhite
#03070cblack
Foreground
#02070dblack
#ffffffwhite
Card
#f8fafcghostwhite
#040a10black
Card foreground
#020509black
#ffffffwhite
Popover
#f8fafcghostwhite
#040a10black
Popover foreground
#020509black
#ffffffwhite
Primary
#010a14black
#010a14black
Primary foreground
#4d9df9cornflowerblue
#4d9df9cornflowerblue
Secondary
#d5dbe2gainsboro
#22262bdarkslategray
Secondary foreground
#36414fdarkslategray
#b8bfc7silver
Muted
#d8e2eelavender
#111b27black
Muted foreground
#373f49darkslategray
#b6bfc8silver
Accent
#b4c3d5lightsteelblue
#323f4edarkslategray
Accent foreground
#1f2b37darkslategray
#d0d8e1gainsboro
Destructive
#86220esaddlebrown
#d03516firebrick
Destructive foreground
#fad4ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010a14black
#010a14black

Contrast

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

Light mode
Text on background19.74:1AAA
Text on card19.48:1AAA
Primary button7.13:1AAA
Secondary button7.41:1AAA
Muted text8.15:1AAA
Accent8.03:1AAA
Destructive6.83:1AA
Dark mode
Text on background20.16:1AAA
Text on card19.89:1AAA
Primary button7.13:1AAA
Secondary button8.21:1AAA
Muted text9.29:1AAA
Accent7.48:1AAA
Destructive5.01:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 251.465);
  --foreground: oklch(0.126 0.018 242.375);
  --muted: oklch(0.909 0.019 251.612);
  --muted-foreground: oklch(0.364 0.02 251.845);
  --popover: oklch(0.984 0.004 251.481);
  --popover-foreground: oklch(0.11 0.016 241.384);
  --card: oklch(0.984 0.004 251.481);
  --card-foreground: oklch(0.11 0.016 241.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.137 0.03 242.806);
  --primary-foreground: oklch(0.69 0.157 253.603);
  --secondary: oklch(0.888 0.012 251.559);
  --secondary-foreground: oklch(0.372 0.028 251.98);
  --accent: oklch(0.812 0.03 251.727);
  --accent-foreground: oklch(0.283 0.029 252.163);
  --destructive: oklch(0.412 0.138 33.017);
  --destructive-foreground: oklch(0.899 0.044 31.217);
  --ring: oklch(0.137 0.03 242.806);
  --chart-1: oklch(0.137 0.03 242.806);
  --chart-2: oklch(0.888 0.012 251.559);
  --chart-3: oklch(0.812 0.03 251.727);
  --chart-4: oklch(0.912 0.009 251.534);
  --chart-5: oklch(0.137 0.031 242.44);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.015 243.551);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.22 0.027 252.316);
  --muted-foreground: oklch(0.8 0.016 251.61);
  --popover: oklch(0.14 0.018 246.711);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.018 246.711);
  --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.137 0.03 242.806);
  --primary-foreground: oklch(0.69 0.157 253.603);
  --secondary: oklch(0.266 0.011 251.758);
  --secondary-foreground: oklch(0.801 0.014 251.588);
  --accent: oklch(0.362 0.031 252.057);
  --accent-foreground: oklch(0.879 0.015 251.585);
  --destructive: oklch(0.565 0.196 32.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.137 0.03 242.806);
  --chart-1: oklch(0.137 0.03 242.806);
  --chart-2: oklch(0.266 0.011 251.758);
  --chart-3: oklch(0.362 0.031 252.057);
  --chart-4: oklch(0.297 0.013 251.772);
  --chart-5: oklch(0.137 0.031 242.44);
}