Terrible for shadcn/ui

Terrible is a shadcn/ui theme built around a deep red primary color (#662434) with deep teal accents (#246655). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep red primary (#662434) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fefbfcsnow
#040102black
Foreground
#080204black
#fdfcfcsnow
Card
#fefbfcsnow
#040102black
Card foreground
#080204black
#fdfcfcsnow
Popover
#fefbfcsnow
#040102black
Popover foreground
#080204black
#fdfcfcsnow
Primary
#662434saddlebrown
#662434saddlebrown
Primary foreground
#eeced6gainsboro
#eeced6gainsboro
Secondary
#246655darkslategray
#246655darkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e5f0edlavender
#0f1a17black
Muted foreground
#626a68dimgray
#959d9bdarkgray
Accent
#246655darkslategray
#246655darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a3210afirebrick
#e12e0eorangered
Destructive foreground
#fde6e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#662434saddlebrown
#662434saddlebrown

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.74:1AAA
Secondary button6.76:1AA
Muted text4.76:1AA
Accent6.76:1AA
Destructive6.32:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.74:1AAA
Secondary button6.76:1AA
Muted text6.42:1AA
Accent6.76:1AA
Destructive4.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 359.934);
  --foreground: oklch(0.104 0.02 359.781);
  --muted: oklch(0.946 0.012 179.508);
  --muted-foreground: oklch(0.517 0.01 179.277);
  --popover: oklch(0.991 0.002 359.934);
  --popover-foreground: oklch(0.104 0.02 359.781);
  --card: oklch(0.991 0.002 359.934);
  --card-foreground: oklch(0.104 0.02 359.781);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.363 0.096 7.84);
  --primary-foreground: oklch(0.88 0.037 1.029);
  --secondary: oklch(0.463 0.072 173.574);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.463 0.072 173.574);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.466 0.168 32.028);
  --destructive-foreground: oklch(0.943 0.026 29.584);
  --ring: oklch(0.363 0.096 7.84);
  --chart-1: oklch(0.363 0.096 7.84);
  --chart-2: oklch(0.463 0.072 173.574);
  --chart-3: oklch(0.463 0.072 173.574);
  --chart-4: oklch(0.498 0.078 173.471);
  --chart-5: oklch(0.364 0.101 8.446);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.014 359.79);
  --foreground: oklch(0.991 0.002 359.914);
  --muted: oklch(0.205 0.016 177.352);
  --muted-foreground: oklch(0.689 0.01 179.456);
  --popover: oklch(0.084 0.014 359.79);
  --popover-foreground: oklch(0.991 0.002 359.914);
  --card: oklch(0.084 0.014 359.79);
  --card-foreground: oklch(0.991 0.002 359.914);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.363 0.096 7.84);
  --primary-foreground: oklch(0.88 0.037 1.029);
  --secondary: oklch(0.463 0.072 173.574);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.463 0.072 173.574);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.591 0.217 31.864);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.363 0.096 7.84);
  --chart-1: oklch(0.363 0.096 7.84);
  --chart-2: oklch(0.463 0.072 173.574);
  --chart-3: oklch(0.463 0.072 173.574);
  --chart-4: oklch(0.498 0.078 173.471);
  --chart-5: oklch(0.364 0.101 8.446);
}