Blushing for shadcn/ui

Blushing is a shadcn/ui theme built around a vivid green primary color (#7ef443) with vivid violet accents (#b943f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#7ef443) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#ffffffwhite
#020401black
Foreground
#000000black
#f9fcf8mintcream
Card
#fcfcfcsnow
#040802black
Card foreground
#000000black
#fcfdfcwhite
Popover
#ffffffwhite
#020401black
Popover foreground
#000000black
#f9fcf8mintcream
Primary
#7ef443yellowgreen
#7ef443yellowgreen
Primary foreground
#020500black
#020500black
Secondary
#b943f4mediumorchid
#b943f4mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9dceflavender
#1d1023black
Muted foreground
#564e5adimgray
#ada5b1darkgray
Accent
#b943f4mediumorchid
#b943f4mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b71a06firebrick
#f72408orangered
Destructive foreground
#fff2f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7ef443yellowgreen
#7ef443yellowgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button14.56:1AAA
Secondary button4.05:1AA Large
Muted text6.04:1AA
Accent4.05:1AA Large
Destructive6.06:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.79:1AAA
Primary button14.56:1AAA
Secondary button4.05:1AA Large
Muted text7.65:1AAA
Accent4.05:1AA Large
Destructive4.02:1AA Large

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 0 0);
  --muted: oklch(0.91 0.029 314.67);
  --muted-foreground: oklch(0.437 0.021 314.588);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.865 0.234 137.391);
  --primary-foreground: oklch(0.103 0.026 132.392);
  --secondary: oklch(0.626 0.255 311.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.626 0.255 311.629);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.499 0.191 30.84);
  --destructive-foreground: oklch(0.97 0.014 26.54);
  --ring: oklch(0.865 0.234 137.391);
  --chart-1: oklch(0.865 0.234 137.391);
  --chart-2: oklch(0.626 0.255 311.629);
  --chart-3: oklch(0.626 0.255 311.629);
  --chart-4: oklch(0.647 0.241 312.198);
  --chart-5: oklch(0.872 0.24 137.502);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.015 133.35);
  --foreground: oklch(0.987 0.006 134.855);
  --muted: oklch(0.2 0.042 313.727);
  --muted-foreground: oklch(0.732 0.019 314.701);
  --popover: oklch(0.099 0.015 133.35);
  --popover-foreground: oklch(0.987 0.006 134.855);
  --card: oklch(0.124 0.019 133.35);
  --card-foreground: oklch(0.994 0.003 134.841);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.865 0.234 137.391);
  --primary-foreground: oklch(0.103 0.026 132.392);
  --secondary: oklch(0.626 0.255 311.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.626 0.255 311.629);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.242 30.663);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.234 137.391);
  --chart-1: oklch(0.865 0.234 137.391);
  --chart-2: oklch(0.626 0.255 311.629);
  --chart-3: oklch(0.626 0.255 311.629);
  --chart-4: oklch(0.647 0.241 312.198);
  --chart-5: oklch(0.872 0.24 137.502);
}