Ginger for shadcn/ui

Ginger is a shadcn/ui theme built around a neutral gray primary color (#c1c1c3) with neutral gray accents (#c1c1c3). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#c1c1c3) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030407black
Foreground
#010204black
#ffffffwhite
Card
#f7f9fcghostwhite
#05070ablack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f9fcghostwhite
#05070ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#c1c1c3silver
#c1c1c3silver
Primary foreground
#28282adarkslategray
#28282adarkslategray
Secondary
#c1c3c3silver
#c1c3c3silver
Secondary foreground
#28292adarkslategray
#28292adarkslategray
Muted
#d2e1e4gainsboro
#1b292ddarkslategray
Muted foreground
#5f6263dimgray
#9c9fa0darkgray
Accent
#c1c1c3silver
#c1c1c3silver
Accent foreground
#28282adarkslategray
#28282adarkslategray
Destructive
#d9350dorangered
#f2471corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1c1c3silver
#c1c1c3silver

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card19.91:1AAA
Primary button8.19:1AAA
Secondary button8.19:1AAA
Muted text4.57:1AA
Accent8.16:1AAA
Destructive4.69:1AA
Dark mode
Text on background20.46:1AAA
Text on card20.20:1AAA
Primary button8.19:1AAA
Secondary button8.19:1AAA
Muted text5.62:1AA
Accent8.16:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 267.405);
  --foreground: oklch(0.083 0.013 258.751);
  --muted: oklch(0.899 0.016 214.375);
  --muted-foreground: oklch(0.494 0.004 214.339);
  --popover: oklch(0.982 0.005 267.39);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.005 267.39);
  --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.812 0.003 267.402);
  --primary-foreground: oklch(0.279 0.002 267.374);
  --secondary: oklch(0.814 0.002 214.324);
  --secondary-foreground: oklch(0.281 0.002 214.336);
  --accent: oklch(0.811 0.003 295.501);
  --accent-foreground: oklch(0.278 0.003 295.38);
  --destructive: oklch(0.581 0.205 33.628);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.812 0.003 267.402);
  --chart-1: oklch(0.812 0.003 267.402);
  --chart-2: oklch(0.814 0.002 214.324);
  --chart-3: oklch(0.811 0.003 295.501);
  --chart-4: oklch(0.838 0.002 214.323);
  --chart-5: oklch(0.809 0.006 267.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.009 262.929);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.27 0.02 214.932);
  --muted-foreground: oklch(0.701 0.004 214.331);
  --popover: oklch(0.126 0.01 262.93);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.01 262.93);
  --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.812 0.003 267.402);
  --primary-foreground: oklch(0.279 0.002 267.374);
  --secondary: oklch(0.814 0.002 214.324);
  --secondary-foreground: oklch(0.281 0.002 214.336);
  --accent: oklch(0.811 0.003 295.501);
  --accent-foreground: oklch(0.278 0.003 295.38);
  --destructive: oklch(0.641 0.213 34.325);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.812 0.003 267.402);
  --chart-1: oklch(0.812 0.003 267.402);
  --chart-2: oklch(0.814 0.002 214.324);
  --chart-3: oklch(0.811 0.003 295.501);
  --chart-4: oklch(0.838 0.002 214.323);
  --chart-5: oklch(0.809 0.006 267.374);
}