Wretched for shadcn/ui

Wretched is a shadcn/ui theme built around a vivid yellow primary color (#a48f04) with vivid purple accents (#8f04a4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#a48f04) on a yellow-tinted background (#100f04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100f04black
Foreground
#090801black
#fbfbf8snow
Card
#fcfcfcsnow
#141205black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fcfcfcsnow
#141205black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#a48f04darkgoldenrod
#a48f04darkgoldenrod
Primary foreground
#000000black
#000000black
Secondary
#04a48fdarkcyan
#04a48fdarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eef2f1whitesmoke
#0d1111black
Muted foreground
#586563dimgray
#9aa7a5darkgray
Accent
#8f04a4darkmagenta
#8f04a4darkmagenta
Accent foreground
#fadcfelavenderblush
#fadcfelavenderblush
Destructive
#d3530dchocolate
#f06114chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a48f04darkgoldenrod
#a48f04darkgoldenrod

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card20.08:1AAA
Primary button6.49:1AA
Secondary button3.12:1AA Large
Muted text5.36:1AA
Accent6.15:1AA
Destructive4.20:1AA Large
Dark mode
Text on background18.58:1AAA
Text on card18.42:1AAA
Primary button6.49:1AA
Secondary button3.12:1AA Large
Muted text7.62:1AAA
Accent6.15:1AA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.021 103.574);
  --muted: oklch(0.957 0.004 187.638);
  --muted-foreground: oklch(0.495 0.016 186.917);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.104 0.016 103.574);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.016 103.574);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.133 98.496);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.644 0.117 179.069);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.223 321.007);
  --accent-foreground: oklch(0.929 0.055 321.754);
  --destructive: oklch(0.603 0.176 42.24);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.133 98.496);
  --chart-1: oklch(0.649 0.133 98.496);
  --chart-2: oklch(0.644 0.117 179.069);
  --chart-3: oklch(0.472 0.223 321.007);
  --chart-4: oklch(0.687 0.125 178.979);
  --chart-5: oklch(0.655 0.135 98.33);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.164 0.022 101.665);
  --foreground: oklch(0.988 0.004 99.394);
  --muted: oklch(0.174 0.006 186.827);
  --muted-foreground: oklch(0.718 0.015 187.226);
  --popover: oklch(0.181 0.025 101.197);
  --popover-foreground: oklch(0.994 0.002 99.367);
  --card: oklch(0.181 0.025 101.197);
  --card-foreground: oklch(0.994 0.002 99.367);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.649 0.133 98.496);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.644 0.117 179.069);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.223 321.007);
  --accent-foreground: oklch(0.929 0.055 321.754);
  --destructive: oklch(0.667 0.192 42.631);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.649 0.133 98.496);
  --chart-1: oklch(0.649 0.133 98.496);
  --chart-2: oklch(0.644 0.117 179.069);
  --chart-3: oklch(0.472 0.223 321.007);
  --chart-4: oklch(0.687 0.125 178.979);
  --chart-5: oklch(0.655 0.135 98.33);
}