Dainty – One Dark Pro for shadcn/ui

Dainty – One Dark Pro is a shadcn/ui theme built around a blue primary color (#54a5e3) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode keeps the blue primary (#54a5e3) on a blue-tinted background (#282c34).

Color palette

TokenLightDark
Background
#282c34darkslategray
#282c34darkslategray
Foreground
#dededegainsboro
#dededegainsboro
Card
#23272edarkslategray
#23272edarkslategray
Card foreground
#ebebeblinen
#ebebeblinen
Popover
#21252bdarkslategray
#21252bdarkslategray
Popover foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Primary
#54a5e3cornflowerblue
#54a5e3cornflowerblue
Primary foreground
#010304black
#010304black
Secondary
#2d4253darkslategray
#2d4253darkslategray
Secondary foreground
#cddae4gainsboro
#cddae4gainsboro
Muted
#31363fdarkslategray
#31363fdarkslategray
Muted foreground
#afb5c0silver
#afb5c0silver
Accent
#49515fdarkslategray
#49515fdarkslategray
Accent foreground
#ebeceflavender
#ebeceflavender
Destructive
#eb5a47tomato
#eb5a47tomato
Destructive foreground
#000000black
#000000black
Border
#393a3cdarkslategray
#393a3cdarkslategray
Input
#404244darkslategray
#404244darkslategray
Ring
#54a5e3cornflowerblue
#54a5e3cornflowerblue

Contrast

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

Light mode
Text on background10.41:1AAA
Text on card12.55:1AAA
Primary button7.75:1AAA
Secondary button7.29:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive6.08:1AA
Dark mode
Text on background10.41:1AAA
Text on card12.55:1AAA
Primary button7.75:1AAA
Secondary button7.29:1AAA
Muted text5.89:1AA
Accent6.80:1AA
Destructive6.08:1AA

CSS variables

Paste this into your globals.css to use Dainty – One Dark Pro in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.697 0.121 243.933);
  --primary-foreground: oklch(0.09 0.012 230.926);
  --secondary: oklch(0.369 0.04 242.048);
  --secondary-foreground: oklch(0.882 0.02 240.593);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.655 0.182 30.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.697 0.121 243.933);
  --chart-1: oklch(0.697 0.121 243.933);
  --chart-2: oklch(0.369 0.04 242.048);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.398 0.043 242.091);
  --chart-5: oklch(0.699 0.126 244.157);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.697 0.121 243.933);
  --primary-foreground: oklch(0.09 0.012 230.926);
  --secondary: oklch(0.369 0.04 242.048);
  --secondary-foreground: oklch(0.882 0.02 240.593);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.655 0.182 30.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.697 0.121 243.933);
  --chart-1: oklch(0.697 0.121 243.933);
  --chart-2: oklch(0.369 0.04 242.048);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.398 0.043 242.091);
  --chart-5: oklch(0.699 0.126 244.157);
}