Grubby Red Onionport for shadcn/ui

Grubby Red Onionport is a shadcn/ui theme built around a muted deep purple primary color (#483343) with muted deep green accents (#334838). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted deep purple primary (#483343) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0b040ablack
Foreground
#090107black
#faf9fasnow
Card
#fcf8fbsnow
#0b040ablack
Card foreground
#090107black
#faf9fasnow
Popover
#fcf8fbsnow
#0b040ablack
Popover foreground
#090107black
#faf9fasnow
Primary
#483343darkslategray
#483343darkslategray
Primary foreground
#ddcfdalightgrey
#ddcfdalightgrey
Secondary
#334838darkslategray
#334838darkslategray
Secondary foreground
#cfddd3lightgrey
#cfddd3lightgrey
Muted
#ecf3eewhitesmoke
#0c130dblack
Muted foreground
#4d6653dimgray
#99b29fdarkgray
Accent
#334838darkslategray
#334838darkslategray
Accent foreground
#cfddd3lightgrey
#cfddd3lightgrey
Destructive
#983a0bsaddlebrown
#ee5e17chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e7e4e6gainsboro
#201d1fblack
Input
#e7e4e6gainsboro
#201d1fblack
Ring
#483343darkslategray
#483343darkslategray

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.68:1AAA
Secondary button7.06:1AAA
Muted text5.58:1AA
Accent7.06:1AAA
Destructive7.13:1AAA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button7.68:1AAA
Secondary button7.06:1AAA
Muted text8.27:1AAA
Accent7.06:1AAA
Destructive6.23:1AA

CSS variables

Paste this into your globals.css to use Grubby Red Onionport in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 333.319);
  --foreground: oklch(0.104 0.032 334.33);
  --muted: oklch(0.958 0.011 153.056);
  --muted-foreground: oklch(0.483 0.043 151.693);
  --popover: oklch(0.983 0.005 333.319);
  --popover-foreground: oklch(0.104 0.032 334.33);
  --card: oklch(0.983 0.005 333.319);
  --card-foreground: oklch(0.104 0.032 334.33);
  --border: oklch(0.922 0.003 333.294);
  --input: oklch(0.922 0.003 333.294);
  --primary: oklch(0.35 0.039 334.956);
  --primary-foreground: oklch(0.87 0.021 333.625);
  --secondary: oklch(0.377 0.038 151.472);
  --secondary-foreground: oklch(0.884 0.021 152.853);
  --accent: oklch(0.377 0.038 151.472);
  --accent-foreground: oklch(0.884 0.021 152.853);
  --destructive: oklch(0.474 0.136 41.978);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.35 0.039 334.956);
  --chart-1: oklch(0.35 0.039 334.956);
  --chart-2: oklch(0.377 0.038 151.472);
  --chart-3: oklch(0.377 0.038 151.472);
  --chart-4: oklch(0.408 0.042 151.434);
  --chart-5: oklch(0.349 0.046 335.247);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.023 334.147);
  --foreground: oklch(0.984 0.001 333.265);
  --muted: oklch(0.177 0.016 151.639);
  --muted-foreground: oklch(0.74 0.039 152.353);
  --popover: oklch(0.124 0.023 334.147);
  --popover-foreground: oklch(0.984 0.001 333.265);
  --card: oklch(0.124 0.023 334.147);
  --card-foreground: oklch(0.984 0.001 333.265);
  --border: oklch(0.236 0.005 333.588);
  --input: oklch(0.236 0.005 333.588);
  --primary: oklch(0.35 0.039 334.956);
  --primary-foreground: oklch(0.87 0.021 333.625);
  --secondary: oklch(0.377 0.038 151.472);
  --secondary-foreground: oklch(0.884 0.021 152.853);
  --accent: oklch(0.377 0.038 151.472);
  --accent-foreground: oklch(0.884 0.021 152.853);
  --destructive: oklch(0.66 0.192 41.752);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.35 0.039 334.956);
  --chart-1: oklch(0.35 0.039 334.956);
  --chart-2: oklch(0.377 0.038 151.472);
  --chart-3: oklch(0.377 0.038 151.472);
  --chart-4: oklch(0.408 0.042 151.434);
  --chart-5: oklch(0.349 0.046 335.247);
}