Chorus for shadcn/ui

Chorus is a shadcn/ui theme built around a light red primary color (#e7d0d0) with light indigo accents (#d0d0e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#e7d0d0) on a red-tinted background (#0b0404).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0404black
Foreground
#080202black
#ffffffwhite
Card
#ffffffwhite
#0b0404black
Card foreground
#080202black
#ffffffwhite
Popover
#ffffffwhite
#0b0404black
Popover foreground
#080202black
#ffffffwhite
Primary
#e7d0d0gainsboro
#e7d0d0gainsboro
Primary foreground
#582d2dsaddlebrown
#582d2dsaddlebrown
Secondary
#d0e7d0gainsboro
#d0e7d0gainsboro
Secondary foreground
#2d582ddarkslategray
#2d582ddarkslategray
Muted
#d6dcd6gainsboro
#232923darkslategray
Muted foreground
#545454dimgray
#abababdarkgray
Accent
#d0d0e7gainsboro
#d0d0e7gainsboro
Accent foreground
#2d2d58darkslategray
#2d2d58darkslategray
Destructive
#5e0c08maroon
#e11e14crimson
Destructive foreground
#f7a5a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7d0d0gainsboro
#e7d0d0gainsboro

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.82:1AAA
Secondary button6.28:1AA
Muted text5.42:1AA
Accent8.50:1AAA
Destructive7.08:1AAA
Dark mode
Text on background20.32:1AAA
Text on card20.32:1AAA
Primary button7.82:1AAA
Secondary button6.28:1AA
Muted text6.44:1AA
Accent8.50:1AAA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.02 21.216);
  --muted: oklch(0.887 0.011 145.486);
  --muted-foreground: oklch(0.446 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.02 21.216);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.02 21.216);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.026 17.65);
  --primary-foreground: oklch(0.353 0.062 20.7);
  --secondary: oklch(0.904 0.039 145.242);
  --secondary-foreground: oklch(0.416 0.083 143.894);
  --accent: oklch(0.864 0.031 285.725);
  --accent-foreground: oklch(0.32 0.074 281.367);
  --destructive: oklch(0.312 0.114 28.884);
  --destructive-foreground: oklch(0.802 0.097 22.778);
  --ring: oklch(0.876 0.026 17.65);
  --chart-1: oklch(0.876 0.026 17.65);
  --chart-2: oklch(0.904 0.039 145.242);
  --chart-3: oklch(0.864 0.031 285.725);
  --chart-4: oklch(0.925 0.031 145.322);
  --chart-5: oklch(0.875 0.028 17.7);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.018 20.056);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.274 0.014 145.177);
  --muted-foreground: oklch(0.741 0 171.254);
  --popover: oklch(0.121 0.018 20.056);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.018 20.056);
  --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.876 0.026 17.65);
  --primary-foreground: oklch(0.353 0.062 20.7);
  --secondary: oklch(0.904 0.039 145.242);
  --secondary-foreground: oklch(0.416 0.083 143.894);
  --accent: oklch(0.864 0.031 285.725);
  --accent-foreground: oklch(0.32 0.074 281.367);
  --destructive: oklch(0.581 0.225 29.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.876 0.026 17.65);
  --chart-1: oklch(0.876 0.026 17.65);
  --chart-2: oklch(0.904 0.039 145.242);
  --chart-3: oklch(0.864 0.031 285.725);
  --chart-4: oklch(0.925 0.031 145.322);
  --chart-5: oklch(0.875 0.028 17.7);
}