Canopy for shadcn/ui

Canopy is a shadcn/ui theme built around a vivid light green primary color (#ecf9d7) with muted light green accents (#d3d9c9). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid light green primary (#ecf9d7) on a green-tinted background (#0b0e06).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0b0e06black
Foreground
#030401black
#fafbf9snow
Card
#fdfefbwhite
#0b0e06black
Card foreground
#030401black
#fafbf9snow
Popover
#fdfefbwhite
#0b0e06black
Popover foreground
#030401black
#fafbf9snow
Primary
#ecf9d7beige
#ecf9d7beige
Primary foreground
#203107black
#203107black
Secondary
#ebede9linen
#2a2d24darkslategray
Secondary foreground
#535a49darkolivegreen
#c3c9bbsilver
Muted
#f0f3edwhitesmoke
#10120cblack
Muted foreground
#464a3fdarkslategray
#bbc0b5silver
Accent
#d3d9c9lightgrey
#454f36darkolivegreen
Accent foreground
#3a422fdarkslategray
#dde2d5gainsboro
Destructive
#a73411brown
#eb5e33tomato
Destructive foreground
#fdf0ecseashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecf9d7beige
#ecf9d7beige

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button12.72:1AAA
Secondary button6.07:1AA
Muted text8.09:1AAA
Accent7.25:1AAA
Destructive6.00:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button12.72:1AAA
Secondary button8.24:1AAA
Muted text10.15:1AAA
Accent6.57:1AA
Destructive6.16:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 124.388);
  --foreground: oklch(0.103 0.019 123.504);
  --muted: oklch(0.96 0.008 124.466);
  --muted-foreground: oklch(0.403 0.019 125.028);
  --popover: oklch(0.994 0.003 124.388);
  --popover-foreground: oklch(0.103 0.019 123.504);
  --card: oklch(0.994 0.003 124.388);
  --card-foreground: oklch(0.103 0.019 123.504);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.964 0.048 125.072);
  --primary-foreground: oklch(0.289 0.068 129.035);
  --secondary: oklch(0.943 0.006 124.432);
  --secondary-foreground: oklch(0.456 0.027 125.215);
  --accent: oklch(0.876 0.022 124.71);
  --accent-foreground: oklch(0.365 0.033 125.705);
  --destructive: oklch(0.492 0.157 36.028);
  --destructive-foreground: oklch(0.965 0.015 37.674);
  --ring: oklch(0.964 0.048 125.072);
  --chart-1: oklch(0.964 0.048 125.072);
  --chart-2: oklch(0.943 0.006 124.432);
  --chart-3: oklch(0.876 0.022 124.71);
  --chart-4: oklch(0.964 0.004 124.398);
  --chart-5: oklch(0.965 0.05 125.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.019 125.122);
  --foreground: oklch(0.987 0.004 124.4);
  --muted: oklch(0.178 0.012 125.35);
  --muted-foreground: oklch(0.8 0.016 124.633);
  --popover: oklch(0.159 0.019 125.122);
  --popover-foreground: oklch(0.987 0.004 124.4);
  --card: oklch(0.159 0.019 125.122);
  --card-foreground: oklch(0.987 0.004 124.4);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.964 0.048 125.072);
  --primary-foreground: oklch(0.289 0.068 129.035);
  --secondary: oklch(0.292 0.017 125.181);
  --secondary-foreground: oklch(0.826 0.019 124.683);
  --accent: oklch(0.411 0.042 125.902);
  --accent-foreground: oklch(0.905 0.019 124.649);
  --destructive: oklch(0.657 0.184 37.082);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.964 0.048 125.072);
  --chart-1: oklch(0.964 0.048 125.072);
  --chart-2: oklch(0.292 0.017 125.181);
  --chart-3: oklch(0.411 0.042 125.902);
  --chart-4: oklch(0.324 0.019 125.215);
  --chart-5: oklch(0.965 0.05 125.1);
}