Confused for shadcn/ui

Confused is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted red accents (#c4b0b0). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8f8snow
#000000black
Foreground
#040101black
#ffffffwhite
Card
#fcf8f8snow
#000000black
Card foreground
#040101black
#ffffffwhite
Popover
#fcf8f8snow
#000000black
Popover foreground
#040101black
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#d5cdcdlightgrey
#272626darkslategray
Secondary foreground
#3d3434darkslategray
#c0bfbfsilver
Muted
#efebeblinen
#141010black
Muted foreground
#5a4949darkolivegreen
#b6a5a5darkgray
Accent
#c4b0b0silver
#393232darkslategray
Accent foreground
#261c1cblack
#d2cbcblightgrey
Destructive
#df4b07orangered
#f86825tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffffffwhite
#ffffffwhite

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.63:1AAA
Secondary button7.75:1AAA
Muted text7.16:1AAA
Accent8.04:1AAA
Destructive4.08:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button12.63:1AAA
Secondary button8.24:1AAA
Muted text8.02:1AAA
Accent7.85:1AAA
Destructive7.01:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 17.231);
  --foreground: oklch(0.08 0.018 21.811);
  --muted: oklch(0.944 0.004 17.225);
  --muted-foreground: oklch(0.424 0.022 18.063);
  --popover: oklch(0.982 0.004 17.231);
  --popover-foreground: oklch(0.08 0.018 21.811);
  --card: oklch(0.982 0.004 17.231);
  --card-foreground: oklch(0.08 0.018 21.811);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.856 0.008 17.316);
  --secondary-foreground: oklch(0.333 0.013 17.816);
  --accent: oklch(0.774 0.024 17.679);
  --accent-foreground: oklch(0.239 0.016 18.309);
  --destructive: oklch(0.613 0.194 38.899);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.856 0.008 17.316);
  --chart-3: oklch(0.774 0.024 17.679);
  --chart-4: oklch(0.88 0.007 17.285);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.006 17.727);
  --muted-foreground: oklch(0.737 0.019 17.592);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.269 0.001 17.227);
  --secondary-foreground: oklch(0.804 0.001 17.187);
  --accent: oklch(0.324 0.011 17.721);
  --accent-foreground: oklch(0.848 0.008 17.305);
  --destructive: oklch(0.69 0.192 41.825);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.269 0.001 17.227);
  --chart-3: oklch(0.324 0.011 17.721);
  --chart-4: oklch(0.3 0.001 17.231);
  --chart-5: oklch(1 0 180);
}