Confused for shadcn/ui

Confused is a shadcn/ui theme built around a vivid yellow primary color (#e0c110) with vivid green accents (#97e010). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid yellow primary (#e0c110) on a yellow-tinted background (#100e04).

Color palette

TokenLightDark
Background
#fdfcf7snow
#100e04black
Foreground
#0e0c02black
#fbfaf9snow
Card
#fdfcf7snow
#100e04black
Card foreground
#0e0c02black
#fbfaf9snow
Popover
#fdfcf7snow
#100e04black
Popover foreground
#0e0c02black
#fbfaf9snow
Primary
#e0c110goldenrod
#e0c110goldenrod
Primary foreground
#211d02black
#211d02black
Secondary
#e05910chocolate
#e05910chocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7dedagainsboro
#251d18black
Muted foreground
#665f5cdimgray
#a39d99darkgray
Accent
#97e010yellowgreen
#97e010yellowgreen
Accent foreground
#172102black
#172102black
Destructive
#981f06darkred
#f64a28tomato
Destructive foreground
#fddad3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0c110goldenrod
#e0c110goldenrod

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button9.50:1AAA
Secondary button3.75:1AA Large
Muted text4.73:1AA
Accent10.36:1AAA
Destructive6.39:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button9.50:1AAA
Secondary button3.75:1AA Large
Muted text6.19:1AA
Accent10.36:1AAA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 98.421);
  --foreground: oklch(0.152 0.026 102.272);
  --muted: oklch(0.907 0.012 50.496);
  --muted-foreground: oklch(0.492 0.01 50.41);
  --popover: oklch(0.991 0.007 98.421);
  --popover-foreground: oklch(0.152 0.026 102.272);
  --card: oklch(0.991 0.007 98.421);
  --card-foreground: oklch(0.152 0.026 102.272);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.813 0.165 97.097);
  --primary-foreground: oklch(0.228 0.044 99.817);
  --secondary: oklch(0.631 0.184 42.309);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.827 0.219 129.573);
  --accent-foreground: oklch(0.231 0.054 126.285);
  --destructive: oklch(0.443 0.16 32.532);
  --destructive-foreground: oklch(0.916 0.041 31.193);
  --ring: oklch(0.813 0.165 97.097);
  --chart-1: oklch(0.813 0.165 97.097);
  --chart-2: oklch(0.631 0.184 42.309);
  --chart-3: oklch(0.827 0.219 129.573);
  --chart-4: oklch(0.661 0.193 42.207);
  --chart-5: oklch(0.821 0.168 96.874);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.022 100.681);
  --foreground: oklch(0.986 0.002 98.343);
  --muted: oklch(0.238 0.016 49.847);
  --muted-foreground: oklch(0.699 0.009 50.497);
  --popover: oklch(0.164 0.022 100.681);
  --popover-foreground: oklch(0.986 0.002 98.343);
  --card: oklch(0.164 0.022 100.681);
  --card-foreground: oklch(0.986 0.002 98.343);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.813 0.165 97.097);
  --primary-foreground: oklch(0.228 0.044 99.817);
  --secondary: oklch(0.631 0.184 42.309);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.827 0.219 129.573);
  --accent-foreground: oklch(0.231 0.054 126.285);
  --destructive: oklch(0.651 0.214 33.094);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.165 97.097);
  --chart-1: oklch(0.813 0.165 97.097);
  --chart-2: oklch(0.631 0.184 42.309);
  --chart-3: oklch(0.827 0.219 129.573);
  --chart-4: oklch(0.661 0.193 42.207);
  --chart-5: oklch(0.821 0.168 96.874);
}