Dainty – Prettier for shadcn/ui

Dainty – Prettier is a shadcn/ui theme built around a vivid blue primary color (#33a0ff) with blue accents (#335466). The light mode uses a blue-tinted background (#1a2a33). Dark mode keeps the vivid blue primary (#33a0ff) on a blue-tinted background (#1a2a33).

Color palette

TokenLightDark
Background
#1a2a33darkslategray
#1a2a33darkslategray
Foreground
#dadfe2gainsboro
#dadfe2gainsboro
Card
#16242cdarkslategray
#16242cdarkslategray
Card foreground
#e8ebedlavender
#e8ebedlavender
Popover
#152229black
#152229black
Popover foreground
#f6f8f8whitesmoke
#f6f8f8whitesmoke
Primary
#33a0ffdodgerblue
#33a0ffdodgerblue
Primary foreground
#000000black
#000000black
Secondary
#2d4153darkslategray
#2d4153darkslategray
Secondary foreground
#cddae4gainsboro
#cddae4gainsboro
Muted
#2b3236darkslategray
#2b3236darkslategray
Muted foreground
#a6b3b9darkgray
#a6b3b9darkgray
Accent
#335466darkslategray
#335466darkslategray
Accent foreground
#dde8eelavender
#dde8eelavender
Destructive
#e01806red
#e01806red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#27373fdarkslategray
#27373fdarkslategray
Input
#2d3f48darkslategray
#2d3f48darkslategray
Ring
#33a0ffdodgerblue
#33a0ffdodgerblue

Contrast

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

Light mode
Text on background10.99:1AAA
Text on card13.19:1AAA
Primary button7.59:1AAA
Secondary button7.40:1AAA
Muted text6.05:1AA
Accent6.47:1AA
Destructive4.89:1AA
Dark mode
Text on background10.99:1AAA
Text on card13.19:1AAA
Primary button7.59:1AAA
Secondary button7.40:1AAA
Muted text6.05:1AA
Accent6.47:1AA
Destructive4.89:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.275 0.027 232.621);
  --foreground: oklch(0.9 0.007 234.614);
  --muted: oklch(0.312 0.013 231.28);
  --muted-foreground: oklch(0.759 0.017 230.975);
  --popover: oklch(0.242 0.023 232.46);
  --popover-foreground: oklch(0.977 0.002 234.529);
  --card: oklch(0.253 0.024 232.519);
  --card-foreground: oklch(0.939 0.004 234.569);
  --border: oklch(0.325 0.025 232.009);
  --input: oklch(0.355 0.028 232.058);
  --primary: oklch(0.69 0.17 249.585);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.366 0.04 245.608);
  --secondary-foreground: oklch(0.881 0.02 244.369);
  --accent: oklch(0.428 0.048 233.04);
  --accent-foreground: oklch(0.925 0.014 230.874);
  --destructive: oklch(0.575 0.227 30.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.69 0.17 249.585);
  --chart-1: oklch(0.69 0.17 249.585);
  --chart-2: oklch(0.366 0.04 245.608);
  --chart-3: oklch(0.428 0.048 233.04);
  --chart-4: oklch(0.395 0.044 245.645);
  --chart-5: oklch(0.692 0.174 249.85);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.275 0.027 232.621);
  --foreground: oklch(0.9 0.007 234.614);
  --muted: oklch(0.312 0.013 231.28);
  --muted-foreground: oklch(0.759 0.017 230.975);
  --popover: oklch(0.242 0.023 232.46);
  --popover-foreground: oklch(0.977 0.002 234.529);
  --card: oklch(0.253 0.024 232.519);
  --card-foreground: oklch(0.939 0.004 234.569);
  --border: oklch(0.325 0.025 232.009);
  --input: oklch(0.355 0.028 232.058);
  --primary: oklch(0.69 0.17 249.585);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.366 0.04 245.608);
  --secondary-foreground: oklch(0.881 0.02 244.369);
  --accent: oklch(0.428 0.048 233.04);
  --accent-foreground: oklch(0.925 0.014 230.874);
  --destructive: oklch(0.575 0.227 30.041);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.69 0.17 249.585);
  --chart-1: oklch(0.69 0.17 249.585);
  --chart-2: oklch(0.366 0.04 245.608);
  --chart-3: oklch(0.428 0.048 233.04);
  --chart-4: oklch(0.395 0.044 245.645);
  --chart-5: oklch(0.692 0.174 249.85);
}