Whopping for shadcn/ui

Whopping is a shadcn/ui theme built around a muted purple primary color (#896189) with muted teal accents (#618989). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#896189) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fefbfewhite
#040104black
Foreground
#000000black
#fbf9fbsnow
Card
#fdf7fdsnow
#070307black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fefbfewhite
#040104black
Popover foreground
#000000black
#fbf9fbsnow
Primary
#896189gray
#896189gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#898961gray
#898961gray
Secondary foreground
#000000black
#000000black
Muted
#f4f4f0whitesmoke
#0f0f0bblack
Muted foreground
#474739darkslategray
#c6c6b8silver
Accent
#618989slategray
#618989slategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c14b0bchocolate
#f26e26chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#896189gray
#896189gray

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.87:1AAA
Primary button5.05:1AA
Secondary button5.83:1AA
Muted text8.56:1AAA
Accent3.84:1AA Large
Destructive4.92:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.01:1AAA
Primary button5.05:1AA
Secondary button5.83:1AA
Muted text11.15:1AAA
Accent3.84:1AA Large
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 325.615);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.967 0.005 106.494);
  --muted-foreground: oklch(0.393 0.023 107.404);
  --popover: oklch(0.991 0.005 325.615);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.01 325.655);
  --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.549 0.077 326.561);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.621 0.056 107.939);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.044 196.041);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.564 0.165 42.236);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.077 326.561);
  --chart-1: oklch(0.549 0.077 326.561);
  --chart-2: oklch(0.621 0.056 107.939);
  --chart-3: oklch(0.602 0.044 196.041);
  --chart-4: oklch(0.65 0.059 107.946);
  --chart-5: oklch(0.548 0.09 326.718);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 326.833);
  --foreground: oklch(0.984 0.002 325.593);
  --muted: oklch(0.165 0.008 107.218);
  --muted-foreground: oklch(0.823 0.019 106.814);
  --popover: oklch(0.087 0.016 326.833);
  --popover-foreground: oklch(0.984 0.002 325.593);
  --card: oklch(0.11 0.02 326.833);
  --card-foreground: oklch(0.992 0.001 325.585);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.549 0.077 326.561);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.621 0.056 107.939);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.044 196.041);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.688 0.181 44.586);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.549 0.077 326.561);
  --chart-1: oklch(0.549 0.077 326.561);
  --chart-2: oklch(0.621 0.056 107.939);
  --chart-3: oklch(0.602 0.044 196.041);
  --chart-4: oklch(0.65 0.059 107.946);
  --chart-5: oklch(0.548 0.09 326.718);
}