Chicory for shadcn/ui

Chicory is a shadcn/ui theme built around a muted deep pink primary color (#3b2b32) with muted deep red accents (#3b2c2b). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the muted deep pink primary (#3b2b32) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7fasnow
#000000black
Foreground
#10050ablack
#fcf8fasnow
Card
#fbf3f7lavenderblush
#030303black
Card foreground
#0c0307black
#fdfbfcsnow
Popover
#fdf7fasnow
#000000black
Popover foreground
#10050ablack
#fcf8fasnow
Primary
#3b2b32darkslategray
#3b2b32darkslategray
Primary foreground
#d4c4cbthistle
#d4c4cbthistle
Secondary
#3b2b3adarkslategray
#3b2b3adarkslategray
Secondary foreground
#d4c4d3thistle
#d4c4d3thistle
Muted
#efe6eflavender
#191018black
Muted foreground
#5a4e5adimgray
#b1a5b0darkgray
Accent
#3b2c2bdarkslategray
#3b2c2bdarkslategray
Accent foreground
#d4c5c4lightgrey
#d4c5c4lightgrey
Destructive
#5f1a07maroon
#ef5125chocolate
Destructive foreground
#f8b3a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b2b32darkslategray
#3b2b32darkslategray

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.71:1AAA
Primary button7.94:1AAA
Secondary button7.91:1AAA
Muted text6.45:1AA
Accent7.97:1AAA
Destructive7.29:1AAA
Dark mode
Text on background19.94:1AAA
Text on card20.07:1AAA
Primary button7.94:1AAA
Secondary button7.91:1AAA
Muted text7.86:1AAA
Accent7.97:1AAA
Destructive3.59:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 347.092);
  --foreground: oklch(0.135 0.026 348.659);
  --muted: oklch(0.935 0.014 326.673);
  --muted-foreground: oklch(0.441 0.024 326.997);
  --popover: oklch(0.982 0.007 347.092);
  --popover-foreground: oklch(0.135 0.026 348.659);
  --card: oklch(0.972 0.01 347.188);
  --card-foreground: oklch(0.122 0.023 346.913);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.311 0.025 349);
  --primary-foreground: oklch(0.836 0.02 347.53);
  --secondary: oklch(0.314 0.033 327.418);
  --secondary-foreground: oklch(0.838 0.026 326.809);
  --accent: oklch(0.309 0.022 20.707);
  --accent-foreground: oklch(0.835 0.017 19.891);
  --destructive: oklch(0.329 0.104 35.583);
  --destructive-foreground: oklch(0.827 0.085 36.062);
  --ring: oklch(0.311 0.025 349);
  --chart-1: oklch(0.311 0.025 349);
  --chart-2: oklch(0.314 0.033 327.418);
  --chart-3: oklch(0.309 0.022 20.707);
  --chart-4: oklch(0.343 0.038 327.442);
  --chart-5: oklch(0.309 0.031 349.421);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.005 347.041);
  --muted: oklch(0.189 0.021 327.466);
  --muted-foreground: oklch(0.735 0.021 326.784);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.005 347.041);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 346.973);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.311 0.025 349);
  --primary-foreground: oklch(0.836 0.02 347.53);
  --secondary: oklch(0.314 0.033 327.418);
  --secondary-foreground: oklch(0.838 0.026 326.809);
  --accent: oklch(0.309 0.022 20.707);
  --accent-foreground: oklch(0.835 0.017 19.891);
  --destructive: oklch(0.646 0.202 35.553);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.311 0.025 349);
  --chart-1: oklch(0.311 0.025 349);
  --chart-2: oklch(0.314 0.033 327.418);
  --chart-3: oklch(0.309 0.022 20.707);
  --chart-4: oklch(0.343 0.038 327.442);
  --chart-5: oklch(0.309 0.031 349.421);
}