Chemical Resplendent for shadcn/ui

Chemical Resplendent is a shadcn/ui theme built around a muted pink primary color (#b4a7ae) with muted green accents (#a7b4ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted pink primary (#b4a7ae) on a pink-tinted background (#0f050b).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050bblack
Foreground
#040103black
#ffffffwhite
Card
#ffffffwhite
#0f050bblack
Card foreground
#040103black
#ffffffwhite
Popover
#ffffffwhite
#0f050bblack
Popover foreground
#040103black
#ffffffwhite
Primary
#b4a7aedarkgray
#b4a7aedarkgray
Primary foreground
#161315black
#161315black
Secondary
#a7b4addarkgray
#a7b4addarkgray
Secondary foreground
#131614black
#131614black
Muted
#d2eaddgainsboro
#152d20black
Muted foreground
#54645bdimgray
#9baba2darkgray
Accent
#a7b4addarkgray
#a7b4addarkgray
Accent foreground
#131614black
#131614black
Destructive
#b14206saddlebrown
#f87935coral
Destructive foreground
#ffffffwhite
#000000black
Border
#eeededwhitesmoke
#252324darkslategray
Input
#eeededwhitesmoke
#252324darkslategray
Ring
#b4a7aedarkgray
#b4a7aedarkgray

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button7.96:1AAA
Secondary button8.47:1AAA
Muted text4.93:1AA
Accent8.47:1AAA
Destructive5.73:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.96:1AAA
Secondary button8.47:1AAA
Muted text6.11:1AA
Accent8.47:1AAA
Destructive7.78:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.018 342.583);
  --muted: oklch(0.915 0.031 161.762);
  --muted-foreground: oklch(0.487 0.025 161.296);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.018 342.583);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.018 342.583);
  --border: oklch(0.946 0.001 342.654);
  --input: oklch(0.946 0.001 342.654);
  --primary: oklch(0.741 0.018 343.205);
  --primary-foreground: oklch(0.19 0.006 343.417);
  --secondary: oklch(0.757 0.018 162.029);
  --secondary-foreground: oklch(0.196 0.006 161.816);
  --accent: oklch(0.757 0.018 162.029);
  --accent-foreground: oklch(0.196 0.006 161.816);
  --destructive: oklch(0.527 0.156 41.77);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.741 0.018 343.205);
  --chart-1: oklch(0.741 0.018 343.205);
  --chart-2: oklch(0.757 0.018 162.029);
  --chart-3: oklch(0.757 0.018 162.029);
  --chart-4: oklch(0.781 0.016 162.105);
  --chart-5: oklch(0.738 0.025 343.425);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.023 344.437);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.273 0.039 158.332);
  --muted-foreground: oklch(0.727 0.023 161.829);
  --popover: oklch(0.137 0.023 344.437);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.023 344.437);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.257 0.004 342.982);
  --input: oklch(0.257 0.004 342.982);
  --primary: oklch(0.741 0.018 343.205);
  --primary-foreground: oklch(0.19 0.006 343.417);
  --secondary: oklch(0.757 0.018 162.029);
  --secondary-foreground: oklch(0.196 0.006 161.816);
  --accent: oklch(0.757 0.018 162.029);
  --accent-foreground: oklch(0.196 0.006 161.816);
  --destructive: oklch(0.714 0.174 45.784);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.741 0.018 343.205);
  --chart-1: oklch(0.741 0.018 343.205);
  --chart-2: oklch(0.757 0.018 162.029);
  --chart-3: oklch(0.757 0.018 162.029);
  --chart-4: oklch(0.781 0.016 162.105);
  --chart-5: oklch(0.738 0.025 343.425);
}