Creative for shadcn/ui

Creative is a shadcn/ui theme built around a muted red primary color (#957b75) with muted light red accents (#dac8c3). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the muted red primary (#957b75) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdf8f6snow
#030202black
Foreground
#090301black
#faf6f5whitesmoke
Card
#fdf4f2seashell
#070403black
Card foreground
#040101black
#fcf9f8snow
Popover
#fdf8f6snow
#030202black
Popover foreground
#090301black
#faf6f5whitesmoke
Primary
#957b75gray
#957b75gray
Primary foreground
#000000black
#000000black
Secondary
#e1d8d6gainsboro
#3d2d29darkslategray
Secondary foreground
#4c3c38darkslategray
#d6c6c2lightgrey
Muted
#e0dcdcgainsboro
#23201fblack
Muted foreground
#614d48darkolivegreen
#b7a39edarkgray
Accent
#dac8c3lightgrey
#5f3e35darkolivegreen
Accent foreground
#422e29darkslategray
#ebdedbgainsboro
Destructive
#c40e0efirebrick
#d70f0fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#957b75gray
#957b75gray

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.21:1AAA
Primary button5.35:1AA
Secondary button7.45:1AAA
Muted text5.81:1AA
Accent7.86:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.50:1AAA
Primary button5.35:1AA
Secondary button7.92:1AAA
Muted text6.74:1AA
Accent7.22:1AAA
Destructive5.31:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 34.306);
  --foreground: oklch(0.109 0.019 44.133);
  --muted: oklch(0.899 0.004 34.309);
  --muted-foreground: oklch(0.438 0.029 34.379);
  --popover: oklch(0.982 0.006 34.306);
  --popover-foreground: oklch(0.109 0.019 44.133);
  --card: oklch(0.974 0.01 34.302);
  --card-foreground: oklch(0.086 0.015 44.133);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.605 0.033 34.347);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.889 0.01 34.301);
  --secondary-foreground: oklch(0.373 0.024 34.371);
  --accent: oklch(0.846 0.021 34.298);
  --accent-foreground: oklch(0.323 0.031 34.497);
  --destructive: oklch(0.518 0.207 28.627);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.033 34.347);
  --chart-1: oklch(0.605 0.033 34.347);
  --chart-2: oklch(0.889 0.01 34.301);
  --chart-3: oklch(0.846 0.021 34.298);
  --chart-4: oklch(0.913 0.008 34.304);
  --chart-5: oklch(0.603 0.041 34.388);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.007 38.162);
  --foreground: oklch(0.975 0.005 34.308);
  --muted: oklch(0.246 0.006 34.298);
  --muted-foreground: oklch(0.732 0.025 34.305);
  --popover: oklch(0.089 0.007 38.162);
  --popover-foreground: oklch(0.975 0.005 34.308);
  --card: oklch(0.112 0.009 38.162);
  --card-foreground: oklch(0.984 0.003 34.311);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.605 0.033 34.347);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.314 0.025 34.436);
  --secondary-foreground: oklch(0.838 0.019 34.297);
  --accent: oklch(0.398 0.049 34.648);
  --accent-foreground: oklch(0.91 0.014 34.298);
  --destructive: oklch(0.555 0.222 28.68);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.033 34.347);
  --chart-1: oklch(0.605 0.033 34.347);
  --chart-2: oklch(0.314 0.025 34.436);
  --chart-3: oklch(0.398 0.049 34.648);
  --chart-4: oklch(0.343 0.029 34.446);
  --chart-5: oklch(0.603 0.041 34.388);
}