Dainty – Material Theme for shadcn/ui

Dainty – Material Theme is a shadcn/ui theme built around a vivid blue primary color (#759ef0) with muted blue accents (#445964). The light mode uses a blue-tinted background (#253137). Dark mode keeps the vivid blue primary (#759ef0) on a blue-tinted background (#253137).

Color palette

TokenLightDark
Background
#253137darkslategray
#253137darkslategray
Foreground
#e0e0e0gainsboro
#e0e0e0gainsboro
Card
#212b31darkslategray
#212b31darkslategray
Card foreground
#edededwhitesmoke
#edededwhitesmoke
Popover
#1f292edarkslategray
#1f292edarkslategray
Popover foreground
#fafafasnow
#fafafasnow
Primary
#759ef0cornflowerblue
#759ef0cornflowerblue
Primary foreground
#05132eblack
#05132eblack
Secondary
#2d3953darkslategray
#2d3953darkslategray
Secondary foreground
#cdd5e4lightgrey
#cdd5e4lightgrey
Muted
#313a3fdarkslategray
#313a3fdarkslategray
Muted foreground
#afbac0silver
#afbac0silver
Accent
#445964darkslategray
#445964darkslategray
Accent foreground
#eaeef1lavender
#eaeef1lavender
Destructive
#f73636crimson
#f73636crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#353c40darkslategray
#353c40darkslategray
Input
#3c4448darkslategray
#3c4448darkslategray
Ring
#759ef0cornflowerblue
#759ef0cornflowerblue

Contrast

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

Light mode
Text on background10.13:1AAA
Text on card12.28:1AAA
Primary button6.93:1AA
Secondary button7.79:1AAA
Muted text5.84:1AA
Accent6.25:1AA
Destructive3.79:1AA Large
Dark mode
Text on background10.13:1AAA
Text on card12.28:1AAA
Primary button6.93:1AA
Secondary button7.79:1AAA
Muted text5.84:1AA
Accent6.25:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.704 0.13 263.244);
  --primary-foreground: oklch(0.192 0.059 261.389);
  --secondary: oklch(0.347 0.048 263.643);
  --secondary-foreground: oklch(0.872 0.023 264.45);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.637 0.227 26.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.704 0.13 263.244);
  --chart-1: oklch(0.704 0.13 263.244);
  --chart-2: oklch(0.347 0.048 263.643);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.373 0.053 263.618);
  --chart-5: oklch(0.702 0.135 263.182);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.304 0.019 229.767);
  --foreground: oklch(0.908 0 180);
  --muted: oklch(0.343 0.014 229.374);
  --muted-foreground: oklch(0.783 0.015 229.013);
  --popover: oklch(0.272 0.016 229.712);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.283 0.017 229.732);
  --card-foreground: oklch(0.947 0 180);
  --border: oklch(0.353 0.011 229.207);
  --input: oklch(0.382 0.012 229.219);
  --primary: oklch(0.704 0.13 263.244);
  --primary-foreground: oklch(0.192 0.059 261.389);
  --secondary: oklch(0.347 0.048 263.643);
  --secondary-foreground: oklch(0.872 0.023 264.45);
  --accent: oklch(0.452 0.031 229.918);
  --accent-foreground: oklch(0.947 0.006 228.83);
  --destructive: oklch(0.637 0.227 26.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.704 0.13 263.244);
  --chart-1: oklch(0.704 0.13 263.244);
  --chart-2: oklch(0.347 0.048 263.643);
  --chart-3: oklch(0.452 0.031 229.918);
  --chart-4: oklch(0.373 0.053 263.618);
  --chart-5: oklch(0.702 0.135 263.182);
}