Gruesome for shadcn/ui

Gruesome is a shadcn/ui theme built around a vivid yellow primary color (#c1891a) with muted light yellow accents (#ece9e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#c1891a) on a yellow-tinted background (#0e0b07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0b07black
Foreground
#000000black
#fdfdfcwhite
Card
#ffffffwhite
#0e0b07black
Card foreground
#000000black
#fdfdfcwhite
Popover
#ffffffwhite
#0e0b07black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#c1891adarkgoldenrod
#c1891adarkgoldenrod
Primary foreground
#0d0a02black
#0d0a02black
Secondary
#ece9e4linen
#23201ablack
Secondary foreground
#5c5442darkolivegreen
#c3bbacsilver
Muted
#f0eeeblinen
#14130fblack
Muted foreground
#484641darkslategray
#bebbb7silver
Accent
#ece9e4linen
#23201ablack
Accent foreground
#5c5442darkolivegreen
#c3bbacsilver
Destructive
#8b0b09darkred
#e1120ered
Destructive foreground
#fccbcapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1891adarkgoldenrod
#c1891adarkgoldenrod

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.48:1AA
Secondary button6.20:1AA
Muted text8.13:1AAA
Accent6.20:1AA
Destructive6.75:1AA
Dark mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button6.48:1AA
Secondary button8.49:1AAA
Muted text9.73:1AAA
Accent8.49:1AAA
Destructive4.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.005 84.564);
  --muted-foreground: oklch(0.395 0.008 84.59);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.67 0.133 78.277);
  --primary-foreground: oklch(0.144 0.022 91.09);
  --secondary: oklch(0.936 0.008 84.571);
  --secondary-foreground: oklch(0.448 0.03 84.483);
  --accent: oklch(0.936 0.008 84.571);
  --accent-foreground: oklch(0.448 0.03 84.483);
  --destructive: oklch(0.405 0.159 28.69);
  --destructive-foreground: oklch(0.884 0.055 19.387);
  --ring: oklch(0.67 0.133 78.277);
  --chart-1: oklch(0.67 0.133 78.277);
  --chart-2: oklch(0.936 0.008 84.571);
  --chart-3: oklch(0.936 0.008 84.571);
  --chart-4: oklch(0.957 0.005 84.565);
  --chart-5: oklch(0.675 0.135 77.728);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.012 86.184);
  --foreground: oklch(0.993 0.001 84.552);
  --muted: oklch(0.186 0.007 84.587);
  --muted-foreground: oklch(0.794 0.007 84.572);
  --popover: oklch(0.153 0.012 86.184);
  --popover-foreground: oklch(0.993 0.001 84.552);
  --card: oklch(0.153 0.012 86.184);
  --card-foreground: oklch(0.993 0.001 84.552);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.67 0.133 78.277);
  --primary-foreground: oklch(0.144 0.022 91.09);
  --secondary: oklch(0.246 0.013 84.554);
  --secondary-foreground: oklch(0.795 0.023 84.593);
  --accent: oklch(0.246 0.013 84.554);
  --accent-foreground: oklch(0.795 0.023 84.593);
  --destructive: oklch(0.576 0.23 28.953);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.67 0.133 78.277);
  --chart-1: oklch(0.67 0.133 78.277);
  --chart-2: oklch(0.246 0.013 84.554);
  --chart-3: oklch(0.246 0.013 84.554);
  --chart-4: oklch(0.28 0.016 84.542);
  --chart-5: oklch(0.675 0.135 77.728);
}