Terrible for shadcn/ui

Terrible is a shadcn/ui theme built around a neutral gray primary color (#b0b0b0) with neutral gray accents (#b0b0b0). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#b0b0b0) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fcf8f8snow
#040101black
Foreground
#000000black
#f9f6f6whitesmoke
Card
#faf4f4whitesmoke
#070303black
Card foreground
#000000black
#fbf9f9snow
Popover
#faf4f4whitesmoke
#070303black
Popover foreground
#000000black
#fbf9f9snow
Primary
#b0b0b0darkgray
#b0b0b0darkgray
Primary foreground
#171717black
#171717black
Secondary
#b0b0b0darkgray
#b0b0b0darkgray
Secondary foreground
#171717black
#171717black
Muted
#ded3d3lightgrey
#2c2121black
Muted foreground
#5c4d4ddimgray
#b2a3a3darkgray
Accent
#b0b0b0darkgray
#b0b0b0darkgray
Accent foreground
#171717black
#171717black
Destructive
#612105maroon
#f35512orangered
Destructive foreground
#faba9elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0b0b0darkgray
#b0b0b0darkgray

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.37:1AAA
Primary button8.26:1AAA
Secondary button8.26:1AAA
Muted text5.49:1AA
Accent8.26:1AAA
Destructive7.30:1AAA
Dark mode
Text on background19.32:1AAA
Text on card19.57:1AAA
Primary button8.26:1AAA
Secondary button8.26:1AAA
Muted text6.44:1AA
Accent8.26:1AAA
Destructive3.44: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.982 0.004 17.229);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.877 0.012 17.383);
  --muted-foreground: oklch(0.434 0.02 17.966);
  --popover: oklch(0.973 0.006 17.267);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.006 17.267);
  --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.757 0 180);
  --primary-foreground: oklch(0.204 0 180);
  --secondary: oklch(0.757 0 180);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.757 0 180);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.341 0.1 40.414);
  --destructive-foreground: oklch(0.84 0.084 44.214);
  --ring: oklch(0.757 0 180);
  --chart-1: oklch(0.757 0 180);
  --chart-2: oklch(0.757 0 180);
  --chart-3: oklch(0.757 0 180);
  --chart-4: oklch(0.781 0 180);
  --chart-5: oklch(0.753 0.005 17.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 19.708);
  --foreground: oklch(0.975 0.003 17.216);
  --muted: oklch(0.26 0.017 18.271);
  --muted-foreground: oklch(0.729 0.018 17.565);
  --popover: oklch(0.106 0.014 19.708);
  --popover-foreground: oklch(0.983 0.002 17.196);
  --card: oklch(0.106 0.014 19.708);
  --card-foreground: oklch(0.983 0.002 17.196);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.757 0 180);
  --primary-foreground: oklch(0.204 0 180);
  --secondary: oklch(0.757 0 180);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.757 0 180);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.656 0.204 38.89);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0 180);
  --chart-1: oklch(0.757 0 180);
  --chart-2: oklch(0.757 0 180);
  --chart-3: oklch(0.757 0 180);
  --chart-4: oklch(0.781 0 180);
  --chart-5: oklch(0.753 0.005 17.277);
}