Worthless for shadcn/ui

Worthless is a shadcn/ui theme built around a muted violet primary color (#7b5f8c) with muted light violet accents (#dfd9e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#7b5f8c) on a violet-tinted background (#0b070d).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b070dblack
Foreground
#0f0514black
#f8f4fawhitesmoke
Card
#ffffffwhite
#0b070dblack
Card foreground
#0f0514black
#f8f4fawhitesmoke
Popover
#ffffffwhite
#0b070dblack
Popover foreground
#0f0514black
#f8f4fawhitesmoke
Primary
#7b5f8cslategray
#7b5f8cslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dfd9e3gainsboro
#262527darkslategray
Secondary foreground
#483b4fdarkslategray
#c0bec1silver
Muted
#e9e3edlavender
#18121cblack
Muted foreground
#66596edimgray
#9e91a6darkgray
Accent
#dfd9e3gainsboro
#262527darkslategray
Accent foreground
#483b4fdarkslategray
#c0bec1silver
Destructive
#a70101darkred
#fe0b0bred
Destructive foreground
#ffdbdbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7b5f8cslategray
#7b5f8cslategray

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button5.44:1AA
Secondary button7.52:1AAA
Muted text5.19:1AA
Accent7.52:1AAA
Destructive6.17:1AA
Dark mode
Text on background18.37:1AAA
Text on card18.37:1AAA
Primary button5.44:1AA
Secondary button8.21:1AAA
Muted text6.17:1AA
Accent8.21:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.037 312.812);
  --muted: oklch(0.924 0.014 313.509);
  --muted-foreground: oklch(0.484 0.038 313.118);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.037 312.812);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.142 0.037 312.812);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.531 0.076 312.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.893 0.015 313.502);
  --secondary-foreground: oklch(0.373 0.039 312.967);
  --accent: oklch(0.893 0.015 313.502);
  --accent-foreground: oklch(0.373 0.039 312.967);
  --destructive: oklch(0.459 0.188 29.18);
  --destructive-foreground: oklch(0.922 0.039 17.888);
  --ring: oklch(0.531 0.076 312.712);
  --chart-1: oklch(0.531 0.076 312.712);
  --chart-2: oklch(0.893 0.015 313.502);
  --chart-3: oklch(0.893 0.015 313.502);
  --chart-4: oklch(0.918 0.011 313.529);
  --chart-5: oklch(0.527 0.087 312.552);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.016 313.592);
  --foreground: oklch(0.973 0.009 313.551);
  --muted: oklch(0.195 0.021 312.936);
  --muted-foreground: oklch(0.675 0.035 313.284);
  --popover: oklch(0.138 0.016 313.592);
  --popover-foreground: oklch(0.973 0.009 313.551);
  --card: oklch(0.138 0.016 313.592);
  --card-foreground: oklch(0.973 0.009 313.551);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.076 312.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.268 0.003 313.534);
  --secondary-foreground: oklch(0.803 0.004 313.575);
  --accent: oklch(0.268 0.003 313.534);
  --accent-foreground: oklch(0.803 0.004 313.575);
  --destructive: oklch(0.628 0.254 28.95);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.076 312.712);
  --chart-1: oklch(0.531 0.076 312.712);
  --chart-2: oklch(0.268 0.003 313.534);
  --chart-3: oklch(0.268 0.003 313.534);
  --chart-4: oklch(0.299 0.004 313.53);
  --chart-5: oklch(0.527 0.087 312.552);
}