Creative for shadcn/ui

Creative is a shadcn/ui theme built around a muted pink primary color (#9a7985) with muted blue accents (#79859a). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted pink primary (#9a7985) on a pink-tinted background (#0f0609).

Color palette

TokenLightDark
Background
#fcf8f9snow
#0f0609black
Foreground
#100409black
#f8f6f7whitesmoke
Card
#faf5f7whitesmoke
#12070bblack
Card foreground
#0c0306black
#fbf9fasnow
Popover
#faf5f7whitesmoke
#12070bblack
Popover foreground
#0c0306black
#fbf9fasnow
Primary
#9a7985gray
#9a7985gray
Primary foreground
#000000black
#000000black
Secondary
#859a79gray
#859a79gray
Secondary foreground
#000000black
#000000black
Muted
#e6f1dfbeige
#15200eblack
Muted foreground
#4c5945darkolivegreen
#adbaa6darkgray
Accent
#79859alightslategray
#79859alightslategray
Accent foreground
#000000black
#000000black
Destructive
#be4209firebrick
#e5500borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9a7985gray
#9a7985gray

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card18.85:1AAA
Primary button5.46:1AA
Secondary button6.91:1AA
Muted text6.37:1AA
Accent5.65:1AA
Destructive5.27:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.85:1AAA
Primary button5.46:1AA
Secondary button6.91:1AA
Muted text8.34:1AAA
Accent5.65:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 352.686);
  --foreground: oklch(0.134 0.028 354.13);
  --muted: oklch(0.944 0.026 133.779);
  --muted-foreground: oklch(0.448 0.037 134.147);
  --popover: oklch(0.974 0.006 352.744);
  --popover-foreground: oklch(0.12 0.024 352.49);
  --card: oklch(0.974 0.006 352.744);
  --card-foreground: oklch(0.12 0.024 352.49);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.612 0.044 354.55);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.661 0.053 134.137);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.615 0.035 261.403);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.548 0.169 39.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.044 354.55);
  --chart-1: oklch(0.612 0.044 354.55);
  --chart-2: oklch(0.661 0.053 134.137);
  --chart-3: oklch(0.615 0.035 261.403);
  --chart-4: oklch(0.684 0.049 134.077);
  --chart-5: oklch(0.609 0.054 354.982);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.019 353.75);
  --foreground: oklch(0.976 0.002 352.638);
  --muted: oklch(0.226 0.036 134.799);
  --muted-foreground: oklch(0.774 0.032 133.87);
  --popover: oklch(0.149 0.022 355.623);
  --popover-foreground: oklch(0.984 0.001 352.617);
  --card: oklch(0.149 0.022 355.623);
  --card-foreground: oklch(0.984 0.001 352.617);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.612 0.044 354.55);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.661 0.053 134.137);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.615 0.035 261.403);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.628 0.196 39.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.612 0.044 354.55);
  --chart-1: oklch(0.612 0.044 354.55);
  --chart-2: oklch(0.661 0.053 134.137);
  --chart-3: oklch(0.615 0.035 261.403);
  --chart-4: oklch(0.684 0.049 134.077);
  --chart-5: oklch(0.609 0.054 354.982);
}