Terrible for shadcn/ui

Terrible is a shadcn/ui theme built around a vivid green primary color (#299801) with vivid green accents (#019824). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#299801) on a green-tinted background (#060b04).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#060b04black
Foreground
#060c04black
#fcfdfbsnow
Card
#f8fdf7mintcream
#060b04black
Card foreground
#060c04black
#fcfdfbsnow
Popover
#f8fdf7mintcream
#060b04black
Popover foreground
#060c04black
#fcfdfbsnow
Primary
#299801forestgreen
#299801forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#759801olive
#759801olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9eed8beige
#222711black
Muted foreground
#42453bdarkslategray
#c2c4basilver
Accent
#019824forestgreen
#019824forestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ac2402firebrick
#fd4517orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#299801forestgreen
#299801forestgreen

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button3.74:1AA Large
Secondary button3.35:1AA Large
Muted text8.24:1AAA
Accent3.79:1AA Large
Destructive7.00:1AAA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button3.74:1AA Large
Secondary button3.35:1AA Large
Muted text8.68:1AAA
Accent3.79:1AA Large
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 137.211);
  --foreground: oklch(0.142 0.024 135.659);
  --muted: oklch(0.94 0.03 117.657);
  --muted-foreground: oklch(0.384 0.017 117.881);
  --popover: oklch(0.989 0.009 137.211);
  --popover-foreground: oklch(0.142 0.024 135.659);
  --card: oklch(0.989 0.009 137.211);
  --card-foreground: oklch(0.142 0.024 135.659);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.193 140.407);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.631 0.157 124.467);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.188 144.575);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.484 0.176 33.354);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.193 140.407);
  --chart-1: oklch(0.595 0.193 140.407);
  --chart-2: oklch(0.631 0.157 124.467);
  --chart-3: oklch(0.591 0.188 144.575);
  --chart-4: oklch(0.676 0.169 124.56);
  --chart-5: oklch(0.601 0.196 140.496);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.019 135.893);
  --foreground: oklch(0.994 0.003 137.197);
  --muted: oklch(0.262 0.039 119.933);
  --muted-foreground: oklch(0.817 0.014 117.393);
  --popover: oklch(0.141 0.019 135.893);
  --popover-foreground: oklch(0.994 0.003 137.197);
  --card: oklch(0.141 0.019 135.893);
  --card-foreground: oklch(0.994 0.003 137.197);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.595 0.193 140.407);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.631 0.157 124.467);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.188 144.575);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.657 0.226 33.965);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.193 140.407);
  --chart-1: oklch(0.595 0.193 140.407);
  --chart-2: oklch(0.631 0.157 124.467);
  --chart-3: oklch(0.591 0.188 144.575);
  --chart-4: oklch(0.676 0.169 124.56);
  --chart-5: oklch(0.601 0.196 140.496);
}