Grave for shadcn/ui

Grave is a shadcn/ui theme built around a light green primary color (#f5fcf3) with light red accents (#fcf3f5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f5fcf3) on a green-tinted background (#080e06).

Color palette

TokenLightDark
Background
#ffffffwhite
#080e06black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfcfcsnow
#0a1208black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#080e06black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#f5fcf3honeydew
#f5fcf3honeydew
Primary foreground
#1d4512darkgreen
#1d4512darkgreen
Secondary
#f3f5fcaliceblue
#f3f5fcaliceblue
Secondary foreground
#273f96darkslateblue
#273f96darkslateblue
Muted
#d6d7dbgainsboro
#242529darkslategray
Muted foreground
#444750darkslategray
#afb2bbdarkgray
Accent
#fcf3f5lavenderblush
#fcf3f5lavenderblush
Accent foreground
#96273fbrown
#96273fbrown
Destructive
#b33414firebrick
#e6461eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f5fcf3honeydew
#f5fcf3honeydew

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button10.49:1AAA
Secondary button8.60:1AAA
Muted text6.47:1AA
Accent7.24:1AAA
Destructive6.15:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.05:1AAA
Primary button10.49:1AAA
Secondary button8.60:1AAA
Muted text7.23:1AAA
Accent7.24:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.881 0.005 273.801);
  --muted-foreground: oklch(0.398 0.016 273.373);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.983 0.014 138.896);
  --primary-foreground: oklch(0.349 0.091 139.57);
  --secondary: oklch(0.97 0.01 273.751);
  --secondary-foreground: oklch(0.403 0.146 267.583);
  --accent: oklch(0.971 0.01 2.35);
  --accent-foreground: oklch(0.454 0.147 12.885);
  --destructive: oklch(0.513 0.169 34.431);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.014 138.896);
  --chart-1: oklch(0.983 0.014 138.896);
  --chart-2: oklch(0.97 0.01 273.751);
  --chart-3: oklch(0.971 0.01 2.35);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.015 138.896);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.021 138.029);
  --foreground: oklch(0.994 0.003 138.892);
  --muted: oklch(0.265 0.007 273.559);
  --muted-foreground: oklch(0.763 0.013 273.66);
  --popover: oklch(0.155 0.021 138.029);
  --popover-foreground: oklch(0.994 0.003 138.892);
  --card: oklch(0.17 0.025 138.602);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.983 0.014 138.896);
  --primary-foreground: oklch(0.349 0.091 139.57);
  --secondary: oklch(0.97 0.01 273.751);
  --secondary-foreground: oklch(0.403 0.146 267.583);
  --accent: oklch(0.971 0.01 2.35);
  --accent-foreground: oklch(0.454 0.147 12.885);
  --destructive: oklch(0.62 0.203 34.484);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.014 138.896);
  --chart-1: oklch(0.983 0.014 138.896);
  --chart-2: oklch(0.97 0.01 273.751);
  --chart-3: oklch(0.971 0.01 2.35);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.015 138.896);
}