Worst for shadcn/ui

Worst is a shadcn/ui theme built around an indigo primary color (#8479e2) with green accents (#79e284). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the indigo primary (#8479e2) on an indigo-tinted background (#04040c).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#04040cblack
Foreground
#04030cblack
#fcfcfdwhite
Card
#fcfcfdwhite
#04040cblack
Card foreground
#04030cblack
#fcfcfdwhite
Popover
#fcfcfdwhite
#04040cblack
Popover foreground
#04030cblack
#fcfcfdwhite
Primary
#8479e2mediumpurple
#8479e2mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#e28479lightcoral
#e28479lightcoral
Secondary foreground
#210a07black
#210a07black
Muted
#e8e4e3gainsboro
#1c1817black
Muted foreground
#666160dimgray
#9f9999darkgray
Accent
#79e284lightgreen
#79e284lightgreen
Accent foreground
#07210ablack
#07210ablack
Destructive
#8f1004darkred
#f21b07red
Destructive foreground
#fdcdc9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8479e2mediumpurple
#8479e2mediumpurple

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button5.81:1AA
Secondary button7.00:1AAA
Muted text4.81:1AA
Accent10.54:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button5.81:1AA
Secondary button7.00:1AAA
Muted text6.29:1AA
Accent10.54:1AAA
Destructive4.24: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.991 0.002 290.974);
  --foreground: oklch(0.107 0.028 287.577);
  --muted: oklch(0.921 0.005 25.03);
  --muted-foreground: oklch(0.498 0.007 25.108);
  --popover: oklch(0.991 0.002 290.974);
  --popover-foreground: oklch(0.107 0.028 287.577);
  --card: oklch(0.991 0.002 290.974);
  --card-foreground: oklch(0.107 0.028 287.577);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.634 0.153 285.721);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.711 0.118 27.136);
  --secondary-foreground: oklch(0.183 0.041 28.787);
  --accent: oklch(0.826 0.162 146.048);
  --accent-foreground: oklch(0.222 0.054 145.404);
  --destructive: oklch(0.416 0.161 30.258);
  --destructive-foreground: oklch(0.889 0.055 24.297);
  --ring: oklch(0.634 0.153 285.721);
  --chart-1: oklch(0.634 0.153 285.721);
  --chart-2: oklch(0.711 0.118 27.136);
  --chart-3: oklch(0.826 0.162 146.048);
  --chart-4: oklch(0.736 0.105 26.765);
  --chart-5: oklch(0.629 0.16 285.379);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.022 288.536);
  --foreground: oklch(0.991 0.002 290.973);
  --muted: oklch(0.212 0.007 25.276);
  --muted-foreground: oklch(0.688 0.006 25.067);
  --popover: oklch(0.112 0.022 288.536);
  --popover-foreground: oklch(0.991 0.002 290.973);
  --card: oklch(0.112 0.022 288.536);
  --card-foreground: oklch(0.991 0.002 290.973);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.634 0.153 285.721);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.711 0.118 27.136);
  --secondary-foreground: oklch(0.183 0.041 28.787);
  --accent: oklch(0.826 0.162 146.048);
  --accent-foreground: oklch(0.222 0.054 145.404);
  --destructive: oklch(0.611 0.241 30.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.634 0.153 285.721);
  --chart-1: oklch(0.634 0.153 285.721);
  --chart-2: oklch(0.711 0.118 27.136);
  --chart-3: oklch(0.826 0.162 146.048);
  --chart-4: oklch(0.736 0.105 26.765);
  --chart-5: oklch(0.629 0.16 285.379);
}