Blushing for shadcn/ui

Blushing is a shadcn/ui theme built around an indigo primary color (#5239a2) with green accents (#8aa239). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#5239a2) on an indigo-tinted background (#06040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#06040bblack
Foreground
#030109black
#ffffffwhite
Card
#fcfcfcsnow
#08050fblack
Card foreground
#020104black
#ffffffwhite
Popover
#ffffffwhite
#06040bblack
Popover foreground
#030109black
#ffffffwhite
Primary
#5239a2rebeccapurple
#5239a2rebeccapurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8aa239olivedrab
#8aa239olivedrab
Secondary foreground
#0a0b04black
#0a0b04black
Muted
#e7e9e2gainsboro
#1b1d16black
Muted foreground
#5c5f54dimgray
#a9aba0darkgray
Accent
#8aa239olivedrab
#8aa239olivedrab
Accent foreground
#0a0b04black
#0a0b04black
Destructive
#d81c03red
#e71e04red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5239a2rebeccapurple
#5239a2rebeccapurple

Contrast

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

Light mode
Text on background20.74:1AAA
Text on card20.37:1AAA
Primary button8.52:1AAA
Secondary button6.89:1AA
Muted text5.33:1AA
Accent6.89:1AA
Destructive5.13:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.19:1AAA
Primary button8.52:1AAA
Secondary button6.89:1AA
Muted text7.29:1AAA
Accent6.89:1AA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.091 0.03 296.199);
  --muted: oklch(0.931 0.01 117.266);
  --muted-foreground: oklch(0.478 0.017 117.72);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.091 0.03 296.199);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.072 0.024 296.199);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.434 0.162 288.539);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.134 121.313);
  --secondary-foreground: oklch(0.146 0.018 117.544);
  --accent: oklch(0.673 0.134 121.313);
  --accent-foreground: oklch(0.146 0.018 117.544);
  --destructive: oklch(0.563 0.219 30.691);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.434 0.162 288.539);
  --chart-1: oklch(0.434 0.162 288.539);
  --chart-2: oklch(0.673 0.134 121.313);
  --chart-3: oklch(0.673 0.134 121.313);
  --chart-4: oklch(0.707 0.141 121.339);
  --chart-5: oklch(0.43 0.17 287.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.021 296.549);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.014 118.163);
  --muted-foreground: oklch(0.736 0.015 117.454);
  --popover: oklch(0.116 0.021 296.549);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.024 295.655);
  --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.434 0.162 288.539);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.673 0.134 121.313);
  --secondary-foreground: oklch(0.146 0.018 117.544);
  --accent: oklch(0.673 0.134 121.313);
  --accent-foreground: oklch(0.146 0.018 117.544);
  --destructive: oklch(0.592 0.231 30.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.434 0.162 288.539);
  --chart-1: oklch(0.434 0.162 288.539);
  --chart-2: oklch(0.673 0.134 121.313);
  --chart-3: oklch(0.673 0.134 121.313);
  --chart-4: oklch(0.707 0.141 121.339);
  --chart-5: oklch(0.43 0.17 287.745);
}