Blushing for shadcn/ui

Blushing is a shadcn/ui theme built around a light yellow primary color (#e5e6b7) with muted light yellow accents (#dbdcd1). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#e5e6b7) on a yellow-tinted background (#0f0f05).

Color palette

TokenLightDark
Background
#fefefbwhite
#0f0f05black
Foreground
#080802black
#fdfdfcwhite
Card
#fdfdf7snow
#131306black
Card foreground
#040401black
#ffffffwhite
Popover
#fdfdf7snow
#131306black
Popover foreground
#040401black
#ffffffwhite
Primary
#e5e6b7palegoldenrod
#e5e6b7palegoldenrod
Primary foreground
#4e4f1cdarkolivegreen
#4e4f1cdarkolivegreen
Secondary
#e6e7e4gainsboro
#191914black
Secondary foreground
#4f5049darkslategray
#b8b9a7darkgray
Muted
#e5e5e1gainsboro
#1e1e1ablack
Muted foreground
#40403fdarkslategray
#c0c0bfsilver
Accent
#dbdcd1gainsboro
#383928darkslategray
Accent foreground
#454535darkslategray
#d2d3c0lightgrey
Destructive
#bc0401firebrick
#fe1e1bred
Destructive foreground
#fff0f0lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5e6b7palegoldenrod
#e5e6b7palegoldenrod

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card20.04:1AAA
Primary button6.63:1AA
Secondary button6.55:1AA
Muted text8.21:1AAA
Accent7.01:1AAA
Destructive6.02:1AA
Dark mode
Text on background18.88:1AAA
Text on card18.67:1AAA
Primary button6.63:1AA
Secondary button8.80:1AAA
Muted text9.18:1AAA
Accent7.76:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 107.235);
  --foreground: oklch(0.131 0.018 109.303);
  --muted: oklch(0.92 0.005 107.274);
  --muted-foreground: oklch(0.373 0.002 107.274);
  --popover: oklch(0.991 0.007 107.3);
  --popover-foreground: oklch(0.104 0.015 109.303);
  --card: oklch(0.991 0.007 107.3);
  --card-foreground: oklch(0.104 0.015 109.303);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.061 108.338);
  --primary-foreground: oklch(0.416 0.072 110.052);
  --secondary: oklch(0.926 0.003 107.223);
  --secondary-foreground: oklch(0.428 0.01 107.585);
  --accent: oklch(0.89 0.014 107.46);
  --accent-foreground: oklch(0.386 0.026 108.341);
  --destructive: oklch(0.5 0.204 29.376);
  --destructive-foreground: oklch(0.967 0.016 18.62);
  --ring: oklch(0.912 0.061 108.338);
  --chart-1: oklch(0.912 0.061 108.338);
  --chart-2: oklch(0.926 0.003 107.223);
  --chart-3: oklch(0.89 0.014 107.46);
  --chart-4: oklch(0.948 0.002 107.206);
  --chart-5: oklch(0.916 0.064 108.399);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.021 109.266);
  --foreground: oklch(0.994 0.002 107.202);
  --muted: oklch(0.234 0.007 107.733);
  --muted-foreground: oklch(0.807 0.002 107.21);
  --popover: oklch(0.183 0.024 109.392);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.183 0.024 109.392);
  --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.912 0.061 108.338);
  --primary-foreground: oklch(0.416 0.072 110.052);
  --secondary: oklch(0.214 0.01 107.968);
  --secondary-foreground: oklch(0.78 0.024 107.723);
  --accent: oklch(0.338 0.027 108.576);
  --accent-foreground: oklch(0.86 0.025 107.683);
  --destructive: oklch(0.634 0.248 28.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.061 108.338);
  --chart-1: oklch(0.912 0.061 108.338);
  --chart-2: oklch(0.214 0.01 107.968);
  --chart-3: oklch(0.338 0.027 108.576);
  --chart-4: oklch(0.249 0.012 108.042);
  --chart-5: oklch(0.916 0.064 108.399);
}