Calico for shadcn/ui

Calico is a shadcn/ui theme built around a muted green primary color (#555a3f) with muted purple accents (#5a3f55). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the muted green primary (#555a3f) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfdf7snow
#030302black
Foreground
#121604black
#ffffffwhite
Card
#fafcf3floralwhite
#060703black
Card foreground
#0f1103black
#ffffffwhite
Popover
#fafcf3floralwhite
#060703black
Popover foreground
#0f1103black
#ffffffwhite
Primary
#555a3fdarkolivegreen
#555a3fdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3f555adarkslategray
#3f555adarkslategray
Secondary foreground
#e1e8ealavender
#e1e8ealavender
Muted
#eaf3f5whitesmoke
#0a1315black
Muted foreground
#5d6769dimgray
#969fa2darkgray
Accent
#5a3f55darkslategray
#5a3f55darkslategray
Accent foreground
#eae1e8gainsboro
#eae1e8gainsboro
Destructive
#cc3c14firebrick
#eb5b33tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#555a3fdarkolivegreen
#555a3fdarkolivegreen

Contrast

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

Light mode
Text on background17.97:1AAA
Text on card18.41:1AAA
Primary button7.16:1AAA
Secondary button6.35:1AA
Muted text5.16:1AA
Accent7.22:1AAA
Destructive4.96:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.19:1AAA
Primary button7.16:1AAA
Secondary button6.35:1AA
Muted text6.97:1AA
Accent7.22:1AAA
Destructive6.05:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.008 114.978);
  --foreground: oklch(0.19 0.035 117.802);
  --muted: oklch(0.958 0.01 212.672);
  --muted-foreground: oklch(0.507 0.012 212.709);
  --popover: oklch(0.987 0.012 115.055);
  --popover-foreground: oklch(0.172 0.031 117.188);
  --card: oklch(0.987 0.012 115.055);
  --card-foreground: oklch(0.172 0.031 117.188);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.456 0.043 116.578);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.434 0.029 213.008);
  --secondary-foreground: oklch(0.927 0.008 212.67);
  --accent: oklch(0.406 0.052 333.104);
  --accent-foreground: oklch(0.919 0.014 331.623);
  --destructive: oklch(0.566 0.187 35);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.456 0.043 116.578);
  --chart-1: oklch(0.456 0.043 116.578);
  --chart-2: oklch(0.434 0.029 213.008);
  --chart-3: oklch(0.406 0.052 333.104);
  --chart-4: oklch(0.463 0.031 213.017);
  --chart-5: oklch(0.463 0.049 116.83);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 115.306);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.014 213.158);
  --muted-foreground: oklch(0.696 0.012 212.685);
  --popover: oklch(0.125 0.012 115.306);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.012 115.306);
  --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.456 0.043 116.578);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.434 0.029 213.008);
  --secondary-foreground: oklch(0.927 0.008 212.67);
  --accent: oklch(0.406 0.052 333.104);
  --accent-foreground: oklch(0.919 0.014 331.623);
  --destructive: oklch(0.653 0.187 36.04);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.456 0.043 116.578);
  --chart-1: oklch(0.456 0.043 116.578);
  --chart-2: oklch(0.434 0.029 213.008);
  --chart-3: oklch(0.406 0.052 333.104);
  --chart-4: oklch(0.463 0.031 213.017);
  --chart-5: oklch(0.463 0.049 116.83);
}