Worm for shadcn/ui

Worm is a shadcn/ui theme built around a vivid orange primary color (#fa681e) with vivid violet accents (#681efa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#fa681e) on a neutral background (#070403).

Color palette

TokenLightDark
Background
#ffffffwhite
#070403black
Foreground
#100805black
#fdfcfcsnow
Card
#ffffffwhite
#070403black
Card foreground
#100805black
#fdfcfcsnow
Popover
#ffffffwhite
#070403black
Popover foreground
#100805black
#fdfcfcsnow
Primary
#fa681echocolate
#fa681echocolate
Primary foreground
#000000black
#000000black
Secondary
#1efa68springgreen
#1efa68springgreen
Secondary foreground
#024b1adarkgreen
#024b1adarkgreen
Muted
#e0e5e2gainsboro
#1a1f1bblack
Muted foreground
#576b5edimgray
#94a89bdarkseagreen
Accent
#681efablueviolet
#681efablueviolet
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae2d09firebrick
#f45225tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fa681echocolate
#fa681echocolate

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button7.06:1AAA
Secondary button7.40:1AAA
Muted text4.50:1AA
Accent6.65:1AA
Destructive6.58:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button7.06:1AAA
Secondary button7.40:1AAA
Muted text6.66:1AA
Accent6.65:1AA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.016 53.611);
  --muted: oklch(0.919 0.007 157.109);
  --muted-foreground: oklch(0.506 0.031 155.956);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.016 53.611);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0.016 53.611);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.692 0.196 42.344);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.862 0.246 147.62);
  --secondary-foreground: oklch(0.36 0.103 148.014);
  --accent: oklch(0.511 0.28 285.78);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.498 0.171 34.467);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.196 42.344);
  --chart-1: oklch(0.692 0.196 42.344);
  --chart-2: oklch(0.862 0.246 147.62);
  --chart-3: oklch(0.511 0.28 285.78);
  --chart-4: oklch(0.865 0.237 148.467);
  --chart-5: oklch(0.695 0.2 41.931);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.01 54.796);
  --foreground: oklch(0.992 0 48.746);
  --muted: oklch(0.231 0.01 156.368);
  --muted-foreground: oklch(0.712 0.029 156.423);
  --popover: oklch(0.115 0.01 54.796);
  --popover-foreground: oklch(0.992 0 48.746);
  --card: oklch(0.115 0.01 54.796);
  --card-foreground: oklch(0.992 0 48.746);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.692 0.196 42.344);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.862 0.246 147.62);
  --secondary-foreground: oklch(0.36 0.103 148.014);
  --accent: oklch(0.511 0.28 285.78);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.206 35.518);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.692 0.196 42.344);
  --chart-1: oklch(0.692 0.196 42.344);
  --chart-2: oklch(0.862 0.246 147.62);
  --chart-3: oklch(0.511 0.28 285.78);
  --chart-4: oklch(0.865 0.237 148.467);
  --chart-5: oklch(0.695 0.2 41.931);
}