Worst for shadcn/ui

Worst is a shadcn/ui theme built around a muted light yellow primary color (#eceadf) with muted light purple accents (#eadfec). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted light yellow primary (#eceadf) on a yellow-tinted background (#0b0a04).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0b0a04black
Foreground
#080703black
#ffffffwhite
Card
#fefdfbsnow
#0b0a04black
Card foreground
#080703black
#ffffffwhite
Popover
#fefdfbsnow
#0b0a04black
Popover foreground
#080703black
#ffffffwhite
Primary
#eceadfbeige
#eceadfbeige
Primary foreground
#201e13black
#201e13black
Secondary
#dfecealavender
#dfecealavender
Secondary foreground
#13201eblack
#13201eblack
Muted
#e7eeedlavender
#111817black
Muted foreground
#546461dimgray
#9baba9darkgray
Accent
#eadfeclavender
#eadfeclavender
Accent foreground
#593960darkslateblue
#593960darkslateblue
Destructive
#7c1804maroon
#f9512ftomato
Destructive foreground
#fdc1b5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eceadfbeige
#eceadfbeige

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button13.82:1AAA
Secondary button13.81:1AAA
Muted text5.30:1AA
Accent7.46:1AAA
Destructive6.79:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button13.82:1AAA
Secondary button13.81:1AAA
Muted text7.52:1AAA
Accent7.46:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 97.298);
  --foreground: oklch(0.126 0.014 100.796);
  --muted: oklch(0.944 0.008 185.215);
  --muted-foreground: oklch(0.489 0.021 184.313);
  --popover: oklch(0.995 0.003 97.298);
  --popover-foreground: oklch(0.126 0.014 100.796);
  --card: oklch(0.995 0.003 97.298);
  --card-foreground: oklch(0.126 0.014 100.796);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.935 0.014 97.46);
  --primary-foreground: oklch(0.233 0.019 98.146);
  --secondary: oklch(0.933 0.014 185.059);
  --secondary-foreground: oklch(0.23 0.018 183.179);
  --accent: oklch(0.916 0.021 320.566);
  --accent-foreground: oklch(0.399 0.074 320.752);
  --destructive: oklch(0.382 0.137 32.827);
  --destructive-foreground: oklch(0.861 0.071 31.44);
  --ring: oklch(0.935 0.014 97.46);
  --chart-1: oklch(0.935 0.014 97.46);
  --chart-2: oklch(0.933 0.014 185.059);
  --chart-3: oklch(0.916 0.021 320.566);
  --chart-4: oklch(0.953 0.01 185.183);
  --chart-5: oklch(0.936 0.016 97.483);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 100.224);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.012 183.834);
  --muted-foreground: oklch(0.729 0.019 184.761);
  --popover: oklch(0.143 0.014 100.224);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.014 100.224);
  --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.935 0.014 97.46);
  --primary-foreground: oklch(0.233 0.019 98.146);
  --secondary: oklch(0.933 0.014 185.059);
  --secondary-foreground: oklch(0.23 0.018 183.179);
  --accent: oklch(0.916 0.021 320.566);
  --accent-foreground: oklch(0.399 0.074 320.752);
  --destructive: oklch(0.663 0.21 33.177);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.935 0.014 97.46);
  --chart-1: oklch(0.935 0.014 97.46);
  --chart-2: oklch(0.933 0.014 185.059);
  --chart-3: oklch(0.916 0.021 320.566);
  --chart-4: oklch(0.953 0.01 185.183);
  --chart-5: oklch(0.936 0.016 97.483);
}