Dulcimer for shadcn/ui

Dulcimer is a shadcn/ui theme built around a blue primary color (#246ea3) with muted light blue accents (#ccd2d6). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#246ea3) on a blue-tinted background (#050b0f).

Color palette

TokenLightDark
Background
#fbfdfewhite
#050b0fblack
Foreground
#04080cblack
#f6f8f9whitesmoke
Card
#f7fafcghostwhite
#060e13black
Card foreground
#020608black
#f9fafbghostwhite
Popover
#f7fafcghostwhite
#060e13black
Popover foreground
#020608black
#f9fafbghostwhite
Primary
#246ea3steelblue
#246ea3steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ccd2d6lightgrey
#1e1f20black
Secondary foreground
#32393edarkslategray
#b5b8basilver
Muted
#dce1e5gainsboro
#1a1f23black
Muted foreground
#47535cdarkslategray
#a3afb8darkgray
Accent
#ccd2d6lightgrey
#1e1f20black
Accent foreground
#32393edarkslategray
#b5b8basilver
Destructive
#610d05maroon
#f32d1borangered
Destructive foreground
#faa69elightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#246ea3steelblue
#246ea3steelblue

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.46:1AAA
Primary button5.47:1AA
Secondary button7.68:1AAA
Muted text5.99:1AA
Accent7.68:1AAA
Destructive7.03:1AAA
Dark mode
Text on background18.56:1AAA
Text on card18.61:1AAA
Primary button5.47:1AA
Secondary button8.30:1AAA
Muted text7.39:1AAA
Accent8.30:1AAA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 238.392);
  --foreground: oklch(0.131 0.013 232.265);
  --muted: oklch(0.907 0.007 238.476);
  --muted-foreground: oklch(0.436 0.021 239.102);
  --popover: oklch(0.984 0.004 238.421);
  --popover-foreground: oklch(0.115 0.011 231.773);
  --card: oklch(0.984 0.004 238.421);
  --card-foreground: oklch(0.115 0.011 231.773);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.519 0.11 244.268);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.86 0.009 238.506);
  --secondary-foreground: oklch(0.34 0.013 238.94);
  --accent: oklch(0.86 0.009 238.506);
  --accent-foreground: oklch(0.34 0.013 238.94);
  --destructive: oklch(0.319 0.118 30.31);
  --destructive-foreground: oklch(0.805 0.101 25.246);
  --ring: oklch(0.519 0.11 244.268);
  --chart-1: oklch(0.519 0.11 244.268);
  --chart-2: oklch(0.86 0.009 238.506);
  --chart-3: oklch(0.86 0.009 238.506);
  --chart-4: oklch(0.884 0.007 238.478);
  --chart-5: oklch(0.521 0.114 244.696);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.015 235.973);
  --foreground: oklch(0.977 0.003 238.407);
  --muted: oklch(0.237 0.01 238.996);
  --muted-foreground: oklch(0.748 0.019 238.727);
  --popover: oklch(0.158 0.017 238.524);
  --popover-foreground: oklch(0.985 0.002 238.392);
  --card: oklch(0.158 0.017 238.524);
  --card-foreground: oklch(0.985 0.002 238.392);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.519 0.11 244.268);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.237 0.002 238.493);
  --secondary-foreground: oklch(0.781 0.004 238.431);
  --accent: oklch(0.237 0.002 238.493);
  --accent-foreground: oklch(0.781 0.004 238.431);
  --destructive: oklch(0.622 0.232 30.049);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.519 0.11 244.268);
  --chart-1: oklch(0.519 0.11 244.268);
  --chart-2: oklch(0.237 0.002 238.493);
  --chart-3: oklch(0.237 0.002 238.493);
  --chart-4: oklch(0.269 0.003 238.502);
  --chart-5: oklch(0.521 0.114 244.696);
}