Cilantro for shadcn/ui

Cilantro is a shadcn/ui theme built around a neutral gray primary color (#a6aab0) with neutral gray accents (#a7a6b0). The light mode uses a neutral background (#f8fafc). Dark mode keeps the neutral gray primary (#a6aab0) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#04070bblack
Foreground
#030b17black
#ffffffwhite
Card
#f5f7fawhitesmoke
#06090fblack
Card foreground
#020912black
#ffffffwhite
Popover
#f5f7fawhitesmoke
#06090fblack
Popover foreground
#020912black
#ffffffwhite
Primary
#a6aab0darkgray
#a6aab0darkgray
Primary foreground
#111213black
#111213black
Secondary
#a6afb0darkgray
#a6afb0darkgray
Secondary foreground
#111313black
#111313black
Muted
#d1e8eagainsboro
#152c2edarkslategray
Muted foreground
#53686adimgray
#95aaacdarkgray
Accent
#a7a6b0darkgray
#a7a6b0darkgray
Accent foreground
#111113black
#111113black
Destructive
#bc2901firebrick
#fe4410orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a6aab0darkgray
#a6aab0darkgray

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.60:1AAA
Primary button8.03:1AAA
Secondary button8.32:1AAA
Muted text4.63:1AA
Accent7.81:1AAA
Destructive6.07:1AA
Dark mode
Text on background20.17:1AAA
Text on card19.90:1AAA
Primary button8.03:1AAA
Secondary button8.32:1AAA
Muted text6.05:1AA
Accent7.81:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 256.665);
  --foreground: oklch(0.147 0.03 251.683);
  --muted: oklch(0.916 0.025 203.355);
  --muted-foreground: oklch(0.5 0.025 203.212);
  --popover: oklch(0.975 0.005 256.671);
  --popover-foreground: oklch(0.136 0.026 248.809);
  --card: oklch(0.975 0.005 256.671);
  --card-foreground: oklch(0.136 0.026 248.809);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.01 256.702);
  --primary-foreground: oklch(0.18 0.003 256.712);
  --secondary: oklch(0.747 0.011 203.456);
  --secondary-foreground: oklch(0.183 0.003 203.43);
  --accent: oklch(0.728 0.014 289.871);
  --accent-foreground: oklch(0.178 0.004 289.781);
  --destructive: oklch(0.519 0.187 33.762);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.01 256.702);
  --chart-1: oklch(0.736 0.01 256.702);
  --chart-2: oklch(0.747 0.011 203.456);
  --chart-3: oklch(0.728 0.014 289.871);
  --chart-4: oklch(0.771 0.009 203.471);
  --chart-5: oklch(0.734 0.015 256.723);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 250.503);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.274 0.029 203.181);
  --muted-foreground: oklch(0.723 0.023 203.317);
  --popover: oklch(0.14 0.014 252.91);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.014 252.91);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.736 0.01 256.702);
  --primary-foreground: oklch(0.18 0.003 256.712);
  --secondary: oklch(0.747 0.011 203.456);
  --secondary-foreground: oklch(0.183 0.003 203.43);
  --accent: oklch(0.728 0.014 289.871);
  --accent-foreground: oklch(0.178 0.004 289.781);
  --destructive: oklch(0.658 0.228 34.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.01 256.702);
  --chart-1: oklch(0.736 0.01 256.702);
  --chart-2: oklch(0.747 0.011 203.456);
  --chart-3: oklch(0.728 0.014 289.871);
  --chart-4: oklch(0.771 0.009 203.471);
  --chart-5: oklch(0.734 0.015 256.723);
}