Stimulation for shadcn/ui

Stimulation is a shadcn/ui theme built around a near-black primary color (#050003) with muted light pink accents (#ebe5e9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-black primary (#050003) on a pink-tinted background (#0a0508).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0a0508black
Foreground
#080206black
#fdfcfdwhite
Card
#fefbfdsnow
#0a0508black
Card foreground
#080206black
#fdfcfdwhite
Popover
#fefbfdsnow
#0a0508black
Popover foreground
#080206black
#fdfcfdwhite
Primary
#050003black
#050003black
Primary foreground
#ec4baehotpink
#ec4baehotpink
Secondary
#ebe5e9lavender
#352c32darkslategray
Secondary foreground
#5a4452darkslategray
#cfc4cbthistle
Muted
#f1eff0whitesmoke
#100e10black
Muted foreground
#564d53darkslategray
#b2a9afdarkgray
Accent
#ebe5e9lavender
#352c32darkslategray
Accent foreground
#5a4452darkslategray
#cfc4cbthistle
Destructive
#a2310bsaddlebrown
#f05724chocolate
Destructive foreground
#fde9e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#050003black
#050003black

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button6.12:1AA
Secondary button7.09:1AAA
Muted text7.08:1AAA
Accent7.09:1AAA
Destructive6.01:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button6.12:1AA
Secondary button7.99:1AAA
Muted text8.39:1AAA
Accent7.99:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 339.555);
  --foreground: oklch(0.105 0.025 339.712);
  --muted: oklch(0.953 0.002 339.526);
  --muted-foreground: oklch(0.431 0.016 340.276);
  --popover: oklch(0.991 0.004 339.555);
  --popover-foreground: oklch(0.105 0.025 339.712);
  --card: oklch(0.991 0.004 339.555);
  --card-foreground: oklch(0.105 0.025 339.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.081 0.026 339.782);
  --primary-foreground: oklch(0.667 0.219 346.73);
  --secondary: oklch(0.928 0.009 339.675);
  --secondary-foreground: oklch(0.415 0.037 341.331);
  --accent: oklch(0.928 0.009 339.675);
  --accent-foreground: oklch(0.415 0.037 341.331);
  --destructive: oklch(0.48 0.155 36.481);
  --destructive-foreground: oklch(0.948 0.024 39.37);
  --ring: oklch(0.081 0.026 339.782);
  --chart-1: oklch(0.081 0.026 339.782);
  --chart-2: oklch(0.928 0.009 339.675);
  --chart-3: oklch(0.928 0.009 339.675);
  --chart-4: oklch(0.952 0.006 339.602);
  --chart-5: oklch(0.081 0.027 339.796);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 339.574);
  --foreground: oklch(0.992 0.002 339.51);
  --muted: oklch(0.168 0.004 339.963);
  --muted-foreground: oklch(0.743 0.014 339.881);
  --popover: oklch(0.127 0.012 339.574);
  --popover-foreground: oklch(0.992 0.002 339.51);
  --card: oklch(0.127 0.012 339.574);
  --card-foreground: oklch(0.992 0.002 339.51);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.081 0.026 339.782);
  --primary-foreground: oklch(0.667 0.219 346.73);
  --secondary: oklch(0.305 0.017 340.688);
  --secondary-foreground: oklch(0.831 0.015 339.861);
  --accent: oklch(0.305 0.017 340.688);
  --accent-foreground: oklch(0.831 0.015 339.861);
  --destructive: oklch(0.655 0.198 37.381);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.081 0.026 339.782);
  --chart-1: oklch(0.081 0.026 339.782);
  --chart-2: oklch(0.305 0.017 340.688);
  --chart-3: oklch(0.305 0.017 340.688);
  --chart-4: oklch(0.334 0.02 340.726);
  --chart-5: oklch(0.081 0.027 339.796);
}