Confused for shadcn/ui

Confused is a shadcn/ui theme built around a vivid light orange primary color (#fcf0e3) with vivid light yellow accents (#fcfce3). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the vivid light orange primary (#fcf0e3) on an orange-tinted background (#0c0803).

Color palette

TokenLightDark
Background
#fdfaf7snow
#0c0803black
Foreground
#080502black
#ffffffwhite
Card
#fbf7f3floralwhite
#100a04black
Card foreground
#040301black
#ffffffwhite
Popover
#fbf7f3floralwhite
#100a04black
Popover foreground
#040301black
#ffffffwhite
Primary
#fcf0e3linen
#fcf0e3linen
Primary foreground
#412507maroon
#412507maroon
Secondary
#fce4e3mistyrose
#fce4e3mistyrose
Secondary foreground
#9d1310darkred
#9d1310darkred
Muted
#e4d8d8gainsboro
#271b1bblack
Muted foreground
#5d4b4bdarkolivegreen
#b4a2a2darkgray
Accent
#fcfce3lightyellow
#fcfce3lightyellow
Accent foreground
#404107darkolivegreen
#404107darkolivegreen
Destructive
#c92103firebrick
#fb2904orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fcf0e3linen
#fcf0e3linen

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.41:1AAA
Primary button12.55:1AAA
Secondary button6.83:1AA
Muted text5.86:1AA
Accent10.20:1AAA
Destructive5.67:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.64:1AAA
Primary button12.55:1AAA
Secondary button6.83:1AA
Muted text6.84:1AA
Accent10.20:1AAA
Destructive3.87: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.986 0.005 69.604);
  --foreground: oklch(0.12 0.016 78.85);
  --muted: oklch(0.891 0.014 18.599);
  --muted-foreground: oklch(0.432 0.025 19.294);
  --popover: oklch(0.979 0.007 69.58);
  --popover-foreground: oklch(0.095 0.012 78.85);
  --card: oklch(0.979 0.007 69.58);
  --card-foreground: oklch(0.095 0.012 78.85);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.961 0.021 69.421);
  --primary-foreground: oklch(0.293 0.059 63.008);
  --secondary: oklch(0.938 0.027 18.811);
  --secondary-foreground: oklch(0.445 0.171 28.355);
  --accent: oklch(0.985 0.032 107.757);
  --accent-foreground: oklch(0.361 0.074 110.614);
  --destructive: oklch(0.537 0.204 31.561);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.021 69.421);
  --chart-1: oklch(0.961 0.021 69.421);
  --chart-2: oklch(0.938 0.027 18.811);
  --chart-3: oklch(0.985 0.032 107.757);
  --chart-4: oklch(0.969 0.013 18.571);
  --chart-5: oklch(0.962 0.022 69.412);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.015 76.97);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.238 0.02 19.762);
  --muted-foreground: oklch(0.728 0.021 18.823);
  --popover: oklch(0.152 0.017 73.434);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.017 73.434);
  --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.961 0.021 69.421);
  --primary-foreground: oklch(0.293 0.059 63.008);
  --secondary: oklch(0.938 0.027 18.811);
  --secondary-foreground: oklch(0.445 0.171 28.355);
  --accent: oklch(0.985 0.032 107.757);
  --accent-foreground: oklch(0.361 0.074 110.614);
  --destructive: oklch(0.634 0.243 31.339);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.021 69.421);
  --chart-1: oklch(0.961 0.021 69.421);
  --chart-2: oklch(0.938 0.027 18.811);
  --chart-3: oklch(0.985 0.032 107.757);
  --chart-4: oklch(0.969 0.013 18.571);
  --chart-5: oklch(0.962 0.022 69.412);
}