Gruesome for shadcn/ui

Gruesome is a shadcn/ui theme built around a green primary color (#b1ee91) with pink accents (#ee91b1). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b1ee91) on a green-tinted background (#090e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#090e06black
Foreground
#060c03black
#f7f9f6whitesmoke
Card
#ffffffwhite
#090e06black
Card foreground
#060c03black
#f7f9f6whitesmoke
Popover
#ffffffwhite
#090e06black
Popover foreground
#060c03black
#f7f9f6whitesmoke
Primary
#b1ee91palegreen
#b1ee91palegreen
Primary foreground
#1e420adarkgreen
#1e420adarkgreen
Secondary
#91b1eeskyblue
#91b1eeskyblue
Secondary foreground
#0a1e42midnightblue
#0a1e42midnightblue
Muted
#d8e0eegainsboro
#111927black
Muted foreground
#474748darkslategray
#b7b7b8silver
Accent
#ee91b1hotpink
#ee91b1hotpink
Accent foreground
#420a1emaroon
#420a1emaroon
Destructive
#a13502saddlebrown
#f65104orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b1ee91palegreen
#b1ee91palegreen

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button8.42:1AAA
Secondary button7.62:1AAA
Muted text6.97:1AA
Accent7.18:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.39:1AAA
Text on card18.39:1AAA
Primary button8.42:1AAA
Secondary button7.62:1AAA
Muted text8.80:1AAA
Accent7.18:1AAA
Destructive3.44:1AA Large

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.145 0.027 132.69);
  --muted: oklch(0.904 0.021 262.998);
  --muted-foreground: oklch(0.398 0.002 263.046);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0.027 132.69);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0.027 132.69);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.886 0.137 135.264);
  --primary-foreground: oklch(0.34 0.092 137.071);
  --secondary: oklch(0.76 0.095 262.448);
  --secondary-foreground: oklch(0.243 0.073 261.438);
  --accent: oklch(0.761 0.118 357.815);
  --accent-foreground: oklch(0.257 0.086 4.673);
  --destructive: oklch(0.481 0.152 39.305);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.137 135.264);
  --chart-1: oklch(0.886 0.137 135.264);
  --chart-2: oklch(0.76 0.095 262.448);
  --chart-3: oklch(0.761 0.118 357.815);
  --chart-4: oklch(0.789 0.083 262.579);
  --chart-5: oklch(0.889 0.142 135.311);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.02 133.805);
  --foreground: oklch(0.979 0.004 134.241);
  --muted: oklch(0.212 0.031 262.315);
  --muted-foreground: oklch(0.781 0.001 263.051);
  --popover: oklch(0.156 0.02 133.805);
  --popover-foreground: oklch(0.979 0.004 134.241);
  --card: oklch(0.156 0.02 133.805);
  --card-foreground: oklch(0.979 0.004 134.241);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.886 0.137 135.264);
  --primary-foreground: oklch(0.34 0.092 137.071);
  --secondary: oklch(0.76 0.095 262.448);
  --secondary-foreground: oklch(0.243 0.073 261.438);
  --accent: oklch(0.761 0.118 357.815);
  --accent-foreground: oklch(0.257 0.086 4.673);
  --destructive: oklch(0.657 0.212 38.279);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.137 135.264);
  --chart-1: oklch(0.886 0.137 135.264);
  --chart-2: oklch(0.76 0.095 262.448);
  --chart-3: oklch(0.761 0.118 357.815);
  --chart-4: oklch(0.789 0.083 262.579);
  --chart-5: oklch(0.889 0.142 135.311);
}