Confused for shadcn/ui

Confused is a shadcn/ui theme built around a vivid light green primary color (#c7face) with muted light green accents (#c6d2c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#c7face) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#020e03black
#f9fbf9mintcream
Card
#fcfcfcsnow
#020803black
Card foreground
#010902black
#fcfdfcwhite
Popover
#ffffffwhite
#010402black
Popover foreground
#020e03black
#f9fbf9mintcream
Primary
#c7facegainsboro
#c7facegainsboro
Primary foreground
#032608black
#032608black
Secondary
#e2e4e2gainsboro
#2e2e2edarkslategray
Secondary foreground
#474d48darkslategray
#c7c7c7silver
Muted
#d1ebd4gainsboro
#2e1414black
Muted foreground
#424c44darkslategray
#bdb3b3silver
Accent
#c6d2c8lightgrey
#4a3f3fdarkslategray
Accent foreground
#2d392fdarkslategray
#e1dbdbgainsboro
Destructive
#93120bdarkred
#ed1d12red
Destructive foreground
#fcd6d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7facegainsboro
#c7facegainsboro

Contrast

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

Light mode
Text on background19.68:1AAA
Text on card19.73:1AAA
Primary button14.00:1AAA
Secondary button6.78:1AA
Muted text7.03:1AAA
Accent7.74:1AAA
Destructive6.73:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.82:1AAA
Primary button14.00:1AAA
Secondary button8.04:1AAA
Muted text8.35:1AAA
Accent7.36:1AAA
Destructive4.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.035 147.886);
  --muted: oklch(0.914 0.041 149.119);
  --muted-foreground: oklch(0.406 0.019 149.081);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.035 147.886);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.03 148.068);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.938 0.08 148.573);
  --primary-foreground: oklch(0.234 0.066 145.662);
  --secondary: oklch(0.917 0.004 149.636);
  --secondary-foreground: oklch(0.413 0.011 149.338);
  --accent: oklch(0.852 0.02 149.395);
  --accent-foreground: oklch(0.33 0.025 148.713);
  --destructive: oklch(0.425 0.163 29.265);
  --destructive-foreground: oklch(0.908 0.042 21.525);
  --ring: oklch(0.938 0.08 148.573);
  --chart-1: oklch(0.938 0.08 148.573);
  --chart-2: oklch(0.917 0.004 149.636);
  --chart-3: oklch(0.852 0.02 149.395);
  --chart-4: oklch(0.94 0.003 149.65);
  --chart-5: oklch(0.939 0.082 148.533);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.017 148.555);
  --foreground: oklch(0.986 0.004 149.634);
  --muted: oklch(0.23 0.042 20.874);
  --muted-foreground: oklch(0.774 0.011 17.404);
  --popover: oklch(0.097 0.017 148.555);
  --popover-foreground: oklch(0.986 0.004 149.634);
  --card: oklch(0.122 0.021 148.555);
  --card-foreground: oklch(0.993 0.002 149.659);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.08 148.573);
  --primary-foreground: oklch(0.234 0.066 145.662);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.38 0.015 17.844);
  --accent-foreground: oklch(0.896 0.006 17.265);
  --destructive: oklch(0.603 0.236 29.418);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.08 148.573);
  --chart-1: oklch(0.938 0.08 148.573);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.38 0.015 17.844);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.939 0.082 148.533);
}