Blushing for shadcn/ui

Blushing is a shadcn/ui theme built around a muted deep blue primary color (#343746) with muted deep green accents (#374634). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted deep blue primary (#343746) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06080eblack
Foreground
#020308black
#f6f6f9whitesmoke
Card
#fbfcfewhite
#06080eblack
Card foreground
#020308black
#f6f6f9whitesmoke
Popover
#fbfcfewhite
#06080eblack
Popover foreground
#020308black
#f6f6f9whitesmoke
Primary
#343746darkslategray
#343746darkslategray
Primary foreground
#d0d2dclightgrey
#d0d2dclightgrey
Secondary
#463437darkslategray
#463437darkslategray
Secondary foreground
#dcd0d2lightgrey
#dcd0d2lightgrey
Muted
#e7dfe1gainsboro
#20181ablack
Muted foreground
#514d4edarkslategray
#b2aeafdarkgray
Accent
#374634darkslategray
#374634darkslategray
Accent foreground
#d2dcd0lightgrey
#d2dcd0lightgrey
Destructive
#d45511chocolate
#ed651dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#343746darkslategray
#343746darkslategray

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.81:1AAA
Secondary button7.73:1AAA
Muted text6.36:1AA
Accent7.09:1AAA
Destructive4.09:1AA Large
Dark mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button7.81:1AAA
Secondary button7.73:1AAA
Muted text7.91:1AAA
Accent7.09:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 277.217);
  --foreground: oklch(0.098 0.02 268.961);
  --muted: oklch(0.911 0.008 5.679);
  --muted-foreground: oklch(0.425 0.004 5.708);
  --popover: oklch(0.99 0.003 277.217);
  --popover-foreground: oklch(0.098 0.02 268.961);
  --card: oklch(0.99 0.003 277.217);
  --card-foreground: oklch(0.098 0.02 268.961);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.341 0.027 276.021);
  --primary-foreground: oklch(0.866 0.014 277.03);
  --secondary: oklch(0.347 0.027 7.421);
  --secondary-foreground: oklch(0.868 0.014 5.859);
  --accent: oklch(0.376 0.036 140.392);
  --accent-foreground: oklch(0.884 0.02 140.497);
  --destructive: oklch(0.609 0.175 42.749);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.341 0.027 276.021);
  --chart-1: oklch(0.341 0.027 276.021);
  --chart-2: oklch(0.347 0.027 7.421);
  --chart-3: oklch(0.376 0.036 140.392);
  --chart-4: oklch(0.374 0.03 7.466);
  --chart-5: oklch(0.337 0.033 275.714);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.015 273.767);
  --foreground: oklch(0.975 0.003 277.214);
  --muted: oklch(0.22 0.012 6.821);
  --muted-foreground: oklch(0.755 0.004 5.575);
  --popover: oklch(0.134 0.015 273.767);
  --popover-foreground: oklch(0.975 0.003 277.214);
  --card: oklch(0.134 0.015 273.767);
  --card-foreground: oklch(0.975 0.003 277.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.341 0.027 276.021);
  --primary-foreground: oklch(0.866 0.014 277.03);
  --secondary: oklch(0.347 0.027 7.421);
  --secondary-foreground: oklch(0.868 0.014 5.859);
  --accent: oklch(0.376 0.036 140.392);
  --accent-foreground: oklch(0.884 0.02 140.497);
  --destructive: oklch(0.668 0.184 43.698);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.341 0.027 276.021);
  --chart-1: oklch(0.341 0.027 276.021);
  --chart-2: oklch(0.347 0.027 7.421);
  --chart-3: oklch(0.376 0.036 140.392);
  --chart-4: oklch(0.374 0.03 7.466);
  --chart-5: oklch(0.337 0.033 275.714);
}