Horrible for shadcn/ui

Horrible is a shadcn/ui theme built around a cyan primary color (#247c8a) with green accents (#7c8a24). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#247c8a) on a cyan-tinted background (#030b0c).

Color palette

TokenLightDark
Background
#ffffffwhite
#030b0cblack
Foreground
#061213black
#f6f8f8whitesmoke
Card
#fcfcfcsnow
#050e10black
Card foreground
#050e0fblack
#f9fafbghostwhite
Popover
#fcfcfcsnow
#050e10black
Popover foreground
#050e0fblack
#f9fafbghostwhite
Primary
#247c8ateal
#247c8ateal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8a247cpurple
#8a247cpurple
Secondary foreground
#f9e7f6lavenderblush
#f9e7f6lavenderblush
Muted
#e5dce4gainsboro
#231a22black
Muted foreground
#5c5c5cdimgray
#a3a3a3darkgray
Accent
#7c8a24olivedrab
#7c8a24olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d14a15chocolate
#ea602achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#247c8ateal
#247c8ateal

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.09:1AAA
Primary button4.84:1AA
Secondary button6.79:1AA
Muted text4.98:1AA
Accent3.80:1AA Large
Destructive4.47:1AA Large
Dark mode
Text on background18.65:1AAA
Text on card18.64:1AAA
Primary button4.84:1AA
Secondary button6.79:1AA
Muted text6.70:1AA
Accent3.80:1AA Large
Destructive6.20:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.17 0.017 207.685);
  --muted: oklch(0.903 0.016 329.894);
  --muted-foreground: oklch(0.474 0 198.435);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.155 0.015 206.93);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.155 0.015 206.93);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.542 0.083 209.96);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.455 0.169 333.988);
  --secondary-foreground: oklch(0.946 0.028 330.047);
  --accent: oklch(0.602 0.124 116.949);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.589 0.18 38.663);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.083 209.96);
  --chart-1: oklch(0.542 0.083 209.96);
  --chart-2: oklch(0.455 0.169 333.988);
  --chart-3: oklch(0.602 0.124 116.949);
  --chart-4: oklch(0.483 0.18 334.024);
  --chart-5: oklch(0.548 0.085 210.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.014 205.522);
  --foreground: oklch(0.978 0.002 207.925);
  --muted: oklch(0.232 0.022 330.785);
  --muted-foreground: oklch(0.716 0 165.964);
  --popover: oklch(0.156 0.016 206.873);
  --popover-foreground: oklch(0.985 0.001 207.928);
  --card: oklch(0.156 0.016 206.873);
  --card-foreground: oklch(0.985 0.001 207.928);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.542 0.083 209.96);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.455 0.169 333.988);
  --secondary-foreground: oklch(0.946 0.028 330.047);
  --accent: oklch(0.602 0.124 116.949);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.657 0.183 39.983);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.542 0.083 209.96);
  --chart-1: oklch(0.542 0.083 209.96);
  --chart-2: oklch(0.455 0.169 333.988);
  --chart-3: oklch(0.602 0.124 116.949);
  --chart-4: oklch(0.483 0.18 334.024);
  --chart-5: oklch(0.548 0.085 210.196);
}