Shirtdress for shadcn/ui

Shirtdress is a shadcn/ui theme built around a muted deep blue primary color (#0b0d0e) with muted light blue accents (#c4ced4). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted deep blue primary (#0b0d0e) on a blue-tinted background (#04090c).

Color palette

TokenLightDark
Background
#fbfdfewhite
#04090cblack
Foreground
#000000black
#fcfdfdwhite
Card
#fbfdfewhite
#04090cblack
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfdfewhite
#04090cblack
Popover foreground
#000000black
#fcfdfdwhite
Primary
#0b0d0eblack
#0b0d0eblack
Primary foreground
#9ca8b0darkgray
#9ca8b0darkgray
Secondary
#e0e4e6gainsboro
#1e252adarkslategray
Secondary foreground
#434c51darkslategray
#b1bfc8silver
Muted
#d3e0e9gainsboro
#16242cdarkslategray
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#c4ced4lightgrey
#2c3e49darkslategray
Accent foreground
#2b353bdarkslategray
#c9d6delightgrey
Destructive
#a51009darkred
#f31d12red
Destructive foreground
#fde3e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0d0eblack
#0b0d0eblack

Contrast

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

Light mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button8.00:1AAA
Secondary button6.84:1AA
Muted text5.64:1AA
Accent7.82:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button8.00:1AAA
Secondary button8.24:1AAA
Muted text6.92:1AA
Accent7.47:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 234.54);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.9 0.019 234.818);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(0.992 0.002 234.54);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.002 234.54);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.158 0.004 234.849);
  --primary-foreground: oklch(0.725 0.018 234.865);
  --secondary: oklch(0.916 0.005 234.58);
  --secondary-foreground: oklch(0.409 0.015 235.073);
  --accent: oklch(0.845 0.013 234.733);
  --accent-foreground: oklch(0.322 0.017 235.326);
  --destructive: oklch(0.459 0.18 29.424);
  --destructive-foreground: oklch(0.938 0.029 21.299);
  --ring: oklch(0.158 0.004 234.849);
  --chart-1: oklch(0.158 0.004 234.849);
  --chart-2: oklch(0.916 0.005 234.58);
  --chart-3: oklch(0.845 0.013 234.733);
  --chart-4: oklch(0.939 0.003 234.558);
  --chart-5: oklch(0.158 0.005 234.948);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.012 228.793);
  --foreground: oklch(0.992 0 234.513);
  --muted: oklch(0.251 0.025 236.413);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.132 0.012 228.793);
  --popover-foreground: oklch(0.992 0 234.513);
  --card: oklch(0.132 0.012 228.793);
  --card-foreground: oklch(0.992 0 234.513);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.158 0.004 234.849);
  --primary-foreground: oklch(0.725 0.018 234.865);
  --secondary: oklch(0.26 0.014 235.36);
  --secondary-foreground: oklch(0.798 0.02 234.871);
  --accent: oklch(0.353 0.03 236.048);
  --accent-foreground: oklch(0.869 0.019 234.82);
  --destructive: oklch(0.612 0.24 29.431);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.158 0.004 234.849);
  --chart-1: oklch(0.158 0.004 234.849);
  --chart-2: oklch(0.26 0.014 235.36);
  --chart-3: oklch(0.353 0.03 236.048);
  --chart-4: oklch(0.291 0.016 235.411);
  --chart-5: oklch(0.158 0.005 234.948);
}