Conductor for shadcn/ui

Conductor is a shadcn/ui theme built around a light yellow primary color (#f7f4e8) with light green accents (#f3f7e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f7f4e8) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#ffffffwhite
#030302black
Foreground
#0d0b02black
#ffffffwhite
Card
#ffffffwhite
#030302black
Card foreground
#0d0b02black
#ffffffwhite
Popover
#ffffffwhite
#030302black
Popover foreground
#0d0b02black
#ffffffwhite
Primary
#f7f4e8linen
#f7f4e8linen
Primary foreground
#352d13darkslategray
#352d13darkslategray
Secondary
#f7ede8linen
#f7ede8linen
Secondary foreground
#80452dsaddlebrown
#80452dsaddlebrown
Muted
#f2efedwhitesmoke
#120e0dblack
Muted foreground
#50443fdarkslategray
#c0b4afsilver
Accent
#f3f7e8linen
#f3f7e8linen
Accent foreground
#2b3513darkslategray
#2b3513darkslategray
Destructive
#7f300bsaddlebrown
#e15514chocolate
Destructive foreground
#fad4c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7f4e8linen
#f7f4e8linen

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button12.40:1AAA
Secondary button6.47:1AA
Muted text8.17:1AAA
Accent11.89:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button12.40:1AAA
Secondary button6.47:1AA
Muted text9.48:1AAA
Accent11.89:1AAA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.021 98.208);
  --muted: oklch(0.953 0.004 43.087);
  --muted-foreground: oklch(0.397 0.019 42.776);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.021 98.208);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.021 98.208);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.966 0.016 94.034);
  --primary-foreground: oklch(0.3 0.043 94.175);
  --secondary: oklch(0.952 0.013 43.012);
  --secondary-foreground: oklch(0.457 0.09 41.854);
  --accent: oklch(0.969 0.02 119.656);
  --accent-foreground: oklch(0.31 0.056 122.852);
  --destructive: oklch(0.416 0.119 41.412);
  --destructive-foreground: oklch(0.896 0.049 46.318);
  --ring: oklch(0.966 0.016 94.034);
  --chart-1: oklch(0.966 0.016 94.034);
  --chart-2: oklch(0.952 0.013 43.012);
  --chart-3: oklch(0.969 0.02 119.656);
  --chart-4: oklch(0.976 0.006 43.071);
  --chart-5: oklch(0.967 0.017 94.044);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 96.85);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.007 42.81);
  --muted-foreground: oklch(0.778 0.016 42.958);
  --popover: oklch(0.097 0.008 96.85);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.008 96.85);
  --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.966 0.016 94.034);
  --primary-foreground: oklch(0.3 0.043 94.175);
  --secondary: oklch(0.952 0.013 43.012);
  --secondary-foreground: oklch(0.457 0.09 41.854);
  --accent: oklch(0.969 0.02 119.656);
  --accent-foreground: oklch(0.31 0.056 122.852);
  --destructive: oklch(0.628 0.188 40.444);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.966 0.016 94.034);
  --chart-1: oklch(0.966 0.016 94.034);
  --chart-2: oklch(0.952 0.013 43.012);
  --chart-3: oklch(0.969 0.02 119.656);
  --chart-4: oklch(0.976 0.006 43.071);
  --chart-5: oklch(0.967 0.017 94.044);
}