Whopping for shadcn/ui

Whopping is a shadcn/ui theme built around a muted deep red primary color (#332724) with muted deep yellow accents (#332f24). The light mode uses a neutral background (#fdf8f6). Dark mode keeps the muted deep red primary (#332724) on a red-tinted background (#0f0705).

Color palette

TokenLightDark
Background
#fdf8f6snow
#0f0705black
Foreground
#150805black
#fafaf9snow
Card
#fdf4f2seashell
#130906black
Card foreground
#110704black
#fdfcfcsnow
Popover
#fdf8f6snow
#0f0705black
Popover foreground
#150805black
#fafaf9snow
Primary
#332724darkslategray
#332724darkslategray
Primary foreground
#cebfbasilver
#cebfbasilver
Secondary
#332428darkslategray
#332428darkslategray
Secondary foreground
#cebac0silver
#cebac0silver
Muted
#ded9dagainsboro
#262123black
Muted foreground
#5c474ddarkslategray
#b8a3a8darkgray
Accent
#332f24darkslategray
#332f24darkslategray
Accent foreground
#cec9basilver
#cec9basilver
Destructive
#912e03saddlebrown
#fa4f05orangered
Destructive foreground
#fed8c8bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#332724darkslategray
#332724darkslategray

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.41:1AAA
Primary button8.06:1AAA
Secondary button8.02:1AAA
Muted text6.09:1AA
Accent8.09:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.14:1AAA
Primary button8.06:1AAA
Secondary button8.02:1AAA
Muted text6.66:1AA
Accent8.09:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 37.711);
  --foreground: oklch(0.154 0.025 42.15);
  --muted: oklch(0.889 0.006 358.968);
  --muted-foreground: oklch(0.422 0.03 0.748);
  --popover: oklch(0.983 0.006 37.711);
  --popover-foreground: oklch(0.154 0.025 42.15);
  --card: oklch(0.974 0.009 37.696);
  --card-foreground: oklch(0.141 0.021 44.162);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.286 0.018 37.592);
  --primary-foreground: oklch(0.816 0.019 37.649);
  --secondary: oklch(0.279 0.023 1.072);
  --secondary-foreground: oklch(0.808 0.024 359.607);
  --accent: oklch(0.305 0.019 90.428);
  --accent-foreground: oklch(0.836 0.021 90.292);
  --destructive: oklch(0.445 0.141 38.688);
  --destructive-foreground: oklch(0.91 0.048 44.529);
  --ring: oklch(0.286 0.018 37.592);
  --chart-1: oklch(0.286 0.018 37.592);
  --chart-2: oklch(0.279 0.023 1.072);
  --chart-3: oklch(0.305 0.019 90.428);
  --chart-4: oklch(0.308 0.027 1.163);
  --chart-5: oklch(0.286 0.021 37.594);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.016 42.346);
  --foreground: oklch(0.985 0.001 37.738);
  --muted: oklch(0.255 0.008 359.657);
  --muted-foreground: oklch(0.735 0.026 359.769);
  --popover: oklch(0.142 0.016 42.346);
  --popover-foreground: oklch(0.985 0.001 37.738);
  --card: oklch(0.155 0.019 40.323);
  --card-foreground: oklch(0.992 0 37.74);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.286 0.018 37.592);
  --primary-foreground: oklch(0.816 0.019 37.649);
  --secondary: oklch(0.279 0.023 1.072);
  --secondary-foreground: oklch(0.808 0.024 359.607);
  --accent: oklch(0.305 0.019 90.428);
  --accent-foreground: oklch(0.836 0.021 90.292);
  --destructive: oklch(0.661 0.217 37.426);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.018 37.592);
  --chart-1: oklch(0.286 0.018 37.592);
  --chart-2: oklch(0.279 0.023 1.072);
  --chart-3: oklch(0.305 0.019 90.428);
  --chart-4: oklch(0.308 0.027 1.163);
  --chart-5: oklch(0.286 0.021 37.594);
}