Choir for shadcn/ui

Choir is a shadcn/ui theme built around a muted light green primary color (#f4f6f4) with muted light green accents (#d1d8cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f4f6f4) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#ffffffwhite
#040802black
Foreground
#040802black
#fafbf9snow
Card
#fcfcfcsnow
#060c04black
Card foreground
#020401black
#fcfdfcwhite
Popover
#ffffffwhite
#040802black
Popover foreground
#040802black
#fafbf9snow
Primary
#f4f6f4whitesmoke
#f4f6f4whitesmoke
Primary foreground
#272d25darkslategray
#272d25darkslategray
Secondary
#d1d8cflightgrey
#30312fdarkslategray
Secondary foreground
#384134darkslategray
#c9cbc8silver
Muted
#d5e9cegainsboro
#1e3116black
Muted foreground
#5e6f58dimgray
#96a790darkseagreen
Accent
#d1d8cflightgrey
#30312fdarkslategray
Accent foreground
#384134darkslategray
#c9cbc8silver
Destructive
#bb0502firebrick
#f20602red
Destructive foreground
#fff0f0lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4f6f4whitesmoke
#f4f6f4whitesmoke

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.13:1AAA
Primary button12.98:1AAA
Secondary button7.34:1AAA
Muted text4.19:1AA Large
Accent7.34:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.42:1AAA
Primary button12.98:1AAA
Secondary button7.96:1AAA
Muted text5.47:1AA
Accent7.96:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.022 135.428);
  --muted: oklch(0.911 0.041 137.298);
  --muted-foreground: oklch(0.522 0.042 137.398);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.022 135.428);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.018 135.428);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.003 137.197);
  --primary-foreground: oklch(0.288 0.017 137.334);
  --secondary: oklch(0.875 0.015 137.229);
  --secondary-foreground: oklch(0.363 0.025 137.364);
  --accent: oklch(0.875 0.015 137.229);
  --accent-foreground: oklch(0.363 0.025 137.364);
  --destructive: oklch(0.498 0.203 29.329);
  --destructive-foreground: oklch(0.967 0.016 18.617);
  --ring: oklch(0.971 0.003 137.197);
  --chart-1: oklch(0.971 0.003 137.197);
  --chart-2: oklch(0.875 0.015 137.229);
  --chart-3: oklch(0.875 0.015 137.229);
  --chart-4: oklch(0.898 0.012 137.221);
  --chart-5: oklch(0.971 0.004 137.199);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.02 135.6);
  --foreground: oklch(0.986 0.002 137.195);
  --muted: oklch(0.288 0.052 137.818);
  --muted-foreground: oklch(0.709 0.039 137.326);
  --popover: oklch(0.124 0.02 135.6);
  --popover-foreground: oklch(0.986 0.002 137.195);
  --card: oklch(0.142 0.023 135.681);
  --card-foreground: oklch(0.993 0.001 137.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.003 137.197);
  --primary-foreground: oklch(0.288 0.017 137.334);
  --secondary: oklch(0.313 0.004 137.219);
  --secondary-foreground: oklch(0.839 0.003 137.199);
  --accent: oklch(0.313 0.004 137.219);
  --accent-foreground: oklch(0.839 0.003 137.199);
  --destructive: oklch(0.605 0.247 29.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.003 137.197);
  --chart-1: oklch(0.971 0.003 137.197);
  --chart-2: oklch(0.313 0.004 137.219);
  --chart-3: oklch(0.313 0.004 137.219);
  --chart-4: oklch(0.343 0.004 137.22);
  --chart-5: oklch(0.971 0.004 137.199);
}