Chorus for shadcn/ui

Chorus is a shadcn/ui theme built around a muted green primary color (#689269) with muted light green accents (#cedace). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the muted green primary (#689269) on a green-tinted background (#060e06).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#060e06black
Foreground
#010401black
#fcfdfcwhite
Card
#f3fcf3honeydew
#081208black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdf7mintcream
#060e06black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#689269gray
#689269gray
Primary foreground
#000000black
#000000black
Secondary
#e9ece9linen
#192419black
Secondary foreground
#4d564ddarkslategray
#abc4acdarkgray
Muted
#eef7eehoneydew
#081109black
Muted foreground
#566c57dimgray
#93a994darkseagreen
Accent
#cedacelightgrey
#223a22darkslategray
Accent foreground
#324333darkslategray
#b8d6b9silver
Destructive
#75120bmaroon
#ea281acrimson
Destructive foreground
#f8bdb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#689269gray
#689269gray

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card20.01:1AAA
Primary button5.91:1AA
Secondary button6.40:1AA
Muted text5.19:1AA
Accent7.30:1AAA
Destructive7.04:1AAA
Dark mode
Text on background19.15:1AAA
Text on card19.10:1AAA
Primary button5.91:1AA
Secondary button8.56:1AAA
Muted text7.61:1AAA
Accent7.85:1AAA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 146.452);
  --foreground: oklch(0.098 0.023 144.592);
  --muted: oklch(0.966 0.014 146.411);
  --muted-foreground: oklch(0.506 0.041 145.803);
  --popover: oklch(0.988 0.01 146.452);
  --popover-foreground: oklch(0.098 0.023 144.592);
  --card: oklch(0.982 0.015 146.406);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.618 0.077 145.378);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.94 0.004 146.503);
  --secondary-foreground: oklch(0.443 0.02 146.147);
  --accent: oklch(0.875 0.021 146.334);
  --accent-foreground: oklch(0.363 0.034 145.675);
  --destructive: oklch(0.364 0.134 29.443);
  --destructive-foreground: oklch(0.852 0.069 23.295);
  --ring: oklch(0.618 0.077 145.378);
  --chart-1: oklch(0.618 0.077 145.378);
  --chart-2: oklch(0.94 0.004 146.503);
  --chart-3: oklch(0.875 0.021 146.334);
  --chart-4: oklch(0.963 0.003 146.518);
  --chart-5: oklch(0.624 0.09 145.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.022 145.356);
  --foreground: oklch(0.993 0.002 146.526);
  --muted: oklch(0.166 0.022 145.372);
  --muted-foreground: oklch(0.712 0.038 146.064);
  --popover: oklch(0.153 0.022 145.356);
  --popover-foreground: oklch(0.993 0.002 146.526);
  --card: oklch(0.168 0.026 145.187);
  --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.618 0.077 145.378);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.247 0.025 145.596);
  --secondary-foreground: oklch(0.795 0.044 146.04);
  --accent: oklch(0.322 0.052 144.992);
  --accent-foreground: oklch(0.846 0.052 145.993);
  --destructive: oklch(0.603 0.227 29.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.077 145.378);
  --chart-1: oklch(0.618 0.077 145.378);
  --chart-2: oklch(0.247 0.025 145.596);
  --chart-3: oklch(0.322 0.052 144.992);
  --chart-4: oklch(0.281 0.031 145.534);
  --chart-5: oklch(0.624 0.09 145.183);
}