Grave for shadcn/ui

Grave is a shadcn/ui theme built around a pink primary color (#d53992) with muted light pink accents (#dfd8dc). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the pink primary (#d53992) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#080205black
#fdfbfdsnow
Card
#fcf8fasnow
#000000black
Card foreground
#080205black
#fdfbfdsnow
Popover
#fcf8fasnow
#000000black
Popover foreground
#080205black
#fdfbfdsnow
Primary
#d53992mediumvioletred
#d53992mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dfd8dcgainsboro
#33292fdarkslategray
Secondary foreground
#483c43darkslategray
#cdc1c8silver
Muted
#ded3dagainsboro
#2c2127darkslategray
Muted foreground
#5f4f58dimgray
#b0a0a9darkgray
Accent
#dfd8dcgainsboro
#33292fdarkslategray
Accent foreground
#483c43darkslategray
#cdc1c8silver
Destructive
#641207maroon
#ee2a11orangered
Destructive foreground
#f9aea4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d53992mediumvioletred
#d53992mediumvioletred

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button4.34:1AA Large
Secondary button7.48:1AAA
Muted text5.26:1AA
Accent7.48:1AAA
Destructive7.11:1AAA
Dark mode
Text on background20.39:1AAA
Text on card20.39:1AAA
Primary button4.34:1AA Large
Secondary button8.06:1AAA
Muted text6.26:1AA
Accent8.06:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 341.924);
  --foreground: oklch(0.106 0.021 341.832);
  --muted: oklch(0.878 0.015 342.221);
  --muted-foreground: oklch(0.446 0.025 343.091);
  --popover: oklch(0.983 0.005 341.924);
  --popover-foreground: oklch(0.106 0.021 341.832);
  --card: oklch(0.983 0.005 341.924);
  --card-foreground: oklch(0.106 0.021 341.832);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.207 350.454);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.889 0.009 342.037);
  --secondary-foreground: oklch(0.372 0.02 343.039);
  --accent: oklch(0.889 0.009 342.037);
  --accent-foreground: oklch(0.372 0.02 343.039);
  --destructive: oklch(0.33 0.117 31.148);
  --destructive-foreground: oklch(0.82 0.089 27.54);
  --ring: oklch(0.604 0.207 350.454);
  --chart-1: oklch(0.604 0.207 350.454);
  --chart-2: oklch(0.889 0.009 342.037);
  --chart-3: oklch(0.889 0.009 342.037);
  --chart-4: oklch(0.913 0.007 341.982);
  --chart-5: oklch(0.607 0.214 350.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 341.87);
  --muted: oklch(0.262 0.021 343.622);
  --muted-foreground: oklch(0.723 0.022 342.518);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 341.87);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.003 341.87);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.207 350.454);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.294 0.018 343.203);
  --secondary-foreground: oklch(0.822 0.017 342.289);
  --accent: oklch(0.294 0.018 343.203);
  --accent-foreground: oklch(0.822 0.017 342.289);
  --destructive: oklch(0.612 0.231 30.902);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.207 350.454);
  --chart-1: oklch(0.604 0.207 350.454);
  --chart-2: oklch(0.294 0.018 343.203);
  --chart-3: oklch(0.294 0.018 343.203);
  --chart-4: oklch(0.323 0.02 343.251);
  --chart-5: oklch(0.607 0.214 350.873);
}