Chicory for shadcn/ui

Chicory is a shadcn/ui theme built around a green primary color (#8fba73) with muted light green accents (#c8d1c2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the green primary (#8fba73) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#070c03black
#f7f9f6whitesmoke
Card
#fcfefbwhite
#000000black
Card foreground
#070c03black
#f7f9f6whitesmoke
Popover
#fcfefbwhite
#000000black
Popover foreground
#070c03black
#f7f9f6whitesmoke
Primary
#8fba73darkseagreen
#8fba73darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#dee0dcgainsboro
#20261cblack
Secondary foreground
#444841darkslategray
#b8c5afsilver
Muted
#e4eeddbeige
#182211black
Muted foreground
#5e625bdimgray
#a0a49ddarkgray
Accent
#c8d1c2silver
#2e3c25darkslategray
Accent foreground
#2f372adarkslategray
#c7d6bdsilver
Destructive
#661805maroon
#f5552etomato
Destructive foreground
#fbb4a2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8fba73darkseagreen
#8fba73darkseagreen

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button9.44:1AAA
Secondary button6.99:1AA
Muted text5.20:1AA
Accent7.84:1AAA
Destructive7.13:1AAA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button9.44:1AAA
Secondary button8.55:1AAA
Muted text6.50:1AA
Accent7.73:1AAA
Destructive6.24:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 132.395);
  --foreground: oklch(0.145 0.025 131.015);
  --muted: oklch(0.937 0.025 132.559);
  --muted-foreground: oklch(0.49 0.013 132.561);
  --popover: oklch(0.995 0.005 132.395);
  --popover-foreground: oklch(0.145 0.025 131.015);
  --card: oklch(0.995 0.005 132.395);
  --card-foreground: oklch(0.145 0.025 131.015);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.741 0.108 133.627);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.903 0.005 132.399);
  --secondary-foreground: oklch(0.397 0.013 132.6);
  --accent: oklch(0.849 0.023 132.561);
  --accent-foreground: oklch(0.326 0.026 132.988);
  --destructive: oklch(0.341 0.114 34.575);
  --destructive-foreground: oklch(0.832 0.087 34.544);
  --ring: oklch(0.741 0.108 133.627);
  --chart-1: oklch(0.741 0.108 133.627);
  --chart-2: oklch(0.903 0.005 132.399);
  --chart-3: oklch(0.849 0.023 132.561);
  --chart-4: oklch(0.925 0.004 132.389);
  --chart-5: oklch(0.747 0.116 133.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 132.399);
  --muted: oklch(0.236 0.034 133.608);
  --muted-foreground: oklch(0.714 0.012 132.484);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.005 132.399);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.005 132.399);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.741 0.108 133.627);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.26 0.021 133.01);
  --secondary-foreground: oklch(0.808 0.034 132.678);
  --accent: oklch(0.336 0.042 133.399);
  --accent-foreground: oklch(0.857 0.037 132.69);
  --destructive: oklch(0.663 0.203 34.888);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.741 0.108 133.627);
  --chart-1: oklch(0.741 0.108 133.627);
  --chart-2: oklch(0.26 0.021 133.01);
  --chart-3: oklch(0.336 0.042 133.399);
  --chart-4: oklch(0.295 0.025 133.049);
  --chart-5: oklch(0.747 0.116 133.745);
}