Blushing for shadcn/ui

Blushing is a shadcn/ui theme built around a muted deep violet primary color (#372f4c) with muted deep purple accents (#462f4c). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted deep violet primary (#372f4c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#000000black
Foreground
#090415black
#ffffffwhite
Card
#f6f4fbghostwhite
#030303black
Card foreground
#070311black
#ffffffwhite
Popover
#f6f4fbghostwhite
#030303black
Popover foreground
#070311black
#ffffffwhite
Primary
#372f4cdarkslategray
#372f4cdarkslategray
Primary foreground
#d2cce0lightgrey
#d2cce0lightgrey
Secondary
#2f344cdarkslategray
#2f344cdarkslategray
Secondary foreground
#ccd0e0lightgrey
#ccd0e0lightgrey
Muted
#e9e9edlavender
#121316black
Muted foreground
#51535ddimgray
#a2a5aedarkgray
Accent
#462f4cdarkslategray
#462f4cdarkslategray
Accent foreground
#dccce0thistle
#dccce0thistle
Destructive
#881801darkred
#e32802orangered
Destructive foreground
#fec8bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#372f4cdarkslategray
#372f4cdarkslategray

Contrast

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

Light mode
Text on background19.04:1AAA
Text on card18.66:1AAA
Primary button8.06:1AAA
Secondary button7.94:1AAA
Muted text6.32:1AA
Accent7.80:1AAA
Destructive6.51:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.06:1AAA
Secondary button7.94:1AAA
Muted text7.53:1AAA
Accent7.80:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 299.929);
  --foreground: oklch(0.131 0.041 296.918);
  --muted: oklch(0.935 0.004 274.976);
  --muted-foreground: oklch(0.444 0.016 274.56);
  --popover: oklch(0.97 0.01 299.872);
  --popover-foreground: oklch(0.121 0.036 298.582);
  --card: oklch(0.97 0.01 299.872);
  --card-foreground: oklch(0.121 0.036 298.582);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.326 0.052 297.225);
  --primary-foreground: oklch(0.857 0.028 299.497);
  --secondary: oklch(0.332 0.042 273.099);
  --secondary-foreground: oklch(0.86 0.022 274.708);
  --accent: oklch(0.343 0.058 319.447);
  --accent-foreground: oklch(0.865 0.032 319.454);
  --destructive: oklch(0.407 0.15 32.675);
  --destructive-foreground: oklch(0.878 0.064 31.367);
  --ring: oklch(0.326 0.052 297.225);
  --chart-1: oklch(0.326 0.052 297.225);
  --chart-2: oklch(0.332 0.042 273.099);
  --chart-3: oklch(0.343 0.058 319.447);
  --chart-4: oklch(0.358 0.047 273.046);
  --chart-5: oklch(0.323 0.059 296.798);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.007 274.568);
  --muted-foreground: oklch(0.722 0.014 274.786);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.326 0.052 297.225);
  --primary-foreground: oklch(0.857 0.028 299.497);
  --secondary: oklch(0.332 0.042 273.099);
  --secondary-foreground: oklch(0.86 0.022 274.708);
  --accent: oklch(0.343 0.058 319.447);
  --accent-foreground: oklch(0.865 0.032 319.454);
  --destructive: oklch(0.59 0.223 31.849);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.326 0.052 297.225);
  --chart-1: oklch(0.326 0.052 297.225);
  --chart-2: oklch(0.332 0.042 273.099);
  --chart-3: oklch(0.343 0.058 319.447);
  --chart-4: oklch(0.358 0.047 273.046);
  --chart-5: oklch(0.323 0.059 296.798);
}