Terrible for shadcn/ui

Terrible is a shadcn/ui theme built around a muted green primary color (#8a9e94) with near-white accents (#e8e8e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#8a9e94) on a green-tinted background (#070d0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#070d0ablack
Foreground
#000000black
#f8fbfamintcream
Card
#fcfcfcsnow
#09110dblack
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfcfcsnow
#09110dblack
Popover foreground
#000000black
#fcfdfcwhite
Primary
#8a9e94lightslategray
#8a9e94lightslategray
Primary foreground
#000000black
#000000black
Secondary
#e8e8e8lavender
#121714black
Secondary foreground
#4e504fdarkslategray
#a4b6addarkgray
Muted
#edf7f2whitesmoke
#08120dblack
Muted foreground
#5a5e5cdimgray
#a1a5a3darkgray
Accent
#e8e8e8lavender
#121714black
Accent foreground
#4e504fdarkslategray
#a4b6addarkgray
Destructive
#85230asaddlebrown
#ef4d25chocolate
Destructive foreground
#fbd1c6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a9e94lightslategray
#8a9e94lightslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.36:1AAA
Secondary button6.64:1AA
Muted text6.02:1AA
Accent6.64:1AA
Destructive6.73:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.36:1AAA
Secondary button8.53:1AAA
Muted text7.65:1AAA
Accent8.53:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.968 0.012 163.95);
  --muted-foreground: oklch(0.477 0.006 163.986);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.026 163.254);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.931 0.001 164.27);
  --secondary-foreground: oklch(0.429 0.002 164.139);
  --accent: oklch(0.931 0.001 164.27);
  --accent-foreground: oklch(0.429 0.002 164.139);
  --destructive: oklch(0.411 0.137 34.295);
  --destructive-foreground: oklch(0.893 0.05 34.349);
  --ring: oklch(0.68 0.026 163.254);
  --chart-1: oklch(0.68 0.026 163.254);
  --chart-2: oklch(0.931 0.001 164.27);
  --chart-3: oklch(0.931 0.001 164.27);
  --chart-4: oklch(0.954 0 164.276);
  --chart-5: oklch(0.684 0.035 162.91);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.013 163.084);
  --foreground: oklch(0.987 0.004 164.189);
  --muted: oklch(0.169 0.019 161.413);
  --muted-foreground: oklch(0.718 0.005 164.107);
  --popover: oklch(0.167 0.015 161.79);
  --popover-foreground: oklch(0.993 0.002 164.238);
  --card: oklch(0.167 0.015 161.79);
  --card-foreground: oklch(0.993 0.002 164.238);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.68 0.026 163.254);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.197 0.008 163.156);
  --secondary-foreground: oklch(0.761 0.024 163.456);
  --accent: oklch(0.197 0.008 163.156);
  --accent-foreground: oklch(0.761 0.024 163.456);
  --destructive: oklch(0.642 0.204 34.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.026 163.254);
  --chart-1: oklch(0.68 0.026 163.254);
  --chart-2: oklch(0.197 0.008 163.156);
  --chart-3: oklch(0.197 0.008 163.156);
  --chart-4: oklch(0.232 0.011 163.015);
  --chart-5: oklch(0.684 0.035 162.91);
}