Horrible for shadcn/ui

Horrible is a shadcn/ui theme built around a neutral gray primary color (#242928) with neutral gray accents (#242629). The light mode uses a neutral background (#fbfefe). Dark mode keeps the neutral gray primary (#242928) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#fbfefewhite
#010404black
Foreground
#021211black
#f9fafaghostwhite
Card
#f7fdfdmintcream
#030707black
Card foreground
#020e0dblack
#fcfdfdwhite
Popover
#fbfefewhite
#010404black
Popover foreground
#021211black
#f9fafaghostwhite
Primary
#242928darkslategray
#242928darkslategray
Primary foreground
#bbc3c3silver
#bbc3c3silver
Secondary
#242926darkslategray
#242926darkslategray
Secondary foreground
#bbc3bfsilver
#bbc3bfsilver
Muted
#eef7f2whitesmoke
#08110cblack
Muted foreground
#4c6758dimgray
#98b3a4darkgray
Accent
#242629darkslategray
#242629darkslategray
Accent foreground
#bbc0c3silver
#bbc0c3silver
Destructive
#99320asaddlebrown
#eb4d0forangered
Destructive foreground
#fde3d9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#242928darkslategray
#242928darkslategray

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card19.05:1AAA
Primary button8.26:1AAA
Secondary button8.25:1AAA
Muted text5.65:1AA
Accent8.23:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.70:1AAA
Text on card19.84:1AAA
Primary button8.26:1AAA
Secondary button8.25:1AAA
Muted text8.49:1AAA
Accent8.23:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 193.542);
  --foreground: oklch(0.168 0.025 191.154);
  --muted: oklch(0.967 0.011 162.332);
  --muted-foreground: oklch(0.487 0.04 160.419);
  --popover: oklch(0.995 0.003 193.542);
  --popover-foreground: oklch(0.168 0.025 191.154);
  --card: oklch(0.989 0.007 193.476);
  --card-foreground: oklch(0.149 0.022 191.63);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.274 0.007 193.134);
  --primary-foreground: oklch(0.811 0.008 193.401);
  --secondary: oklch(0.274 0.008 161.875);
  --secondary-foreground: oklch(0.81 0.01 162.303);
  --accent: oklch(0.269 0.005 242.455);
  --accent-foreground: oklch(0.804 0.007 242.304);
  --destructive: oklch(0.466 0.145 38.354);
  --destructive-foreground: oklch(0.933 0.032 42.86);
  --ring: oklch(0.274 0.007 193.134);
  --chart-1: oklch(0.274 0.007 193.134);
  --chart-2: oklch(0.274 0.008 161.875);
  --chart-3: oklch(0.269 0.005 242.455);
  --chart-4: oklch(0.305 0.009 161.841);
  --chart-5: oklch(0.277 0.01 192.914);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 192.684);
  --foreground: oklch(0.986 0.001 193.583);
  --muted: oklch(0.167 0.017 160.077);
  --muted-foreground: oklch(0.743 0.036 161.357);
  --popover: oklch(0.098 0.008 192.684);
  --popover-foreground: oklch(0.986 0.001 193.583);
  --card: oklch(0.123 0.011 192.684);
  --card-foreground: oklch(0.993 0.001 193.595);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.274 0.007 193.134);
  --primary-foreground: oklch(0.811 0.008 193.401);
  --secondary: oklch(0.274 0.008 161.875);
  --secondary-foreground: oklch(0.81 0.01 162.303);
  --accent: oklch(0.269 0.005 242.455);
  --accent-foreground: oklch(0.804 0.007 242.304);
  --destructive: oklch(0.635 0.204 37.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.274 0.007 193.134);
  --chart-1: oklch(0.274 0.007 193.134);
  --chart-2: oklch(0.274 0.008 161.875);
  --chart-3: oklch(0.269 0.005 242.455);
  --chart-4: oklch(0.305 0.009 161.841);
  --chart-5: oklch(0.277 0.01 192.914);
}