Gang for shadcn/ui

Gang is a shadcn/ui theme built around a vivid light green primary color (#c9fdd5) with vivid light purple accents (#fdc9f1). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid light green primary (#c9fdd5) on a green-tinted background (#060f08).

Color palette

TokenLightDark
Background
#fbfefbwhite
#060f08black
Foreground
#030c05black
#ffffffwhite
Card
#fbfefbwhite
#060f08black
Card foreground
#030c05black
#ffffffwhite
Popover
#fbfefbwhite
#060f08black
Popover foreground
#030c05black
#ffffffwhite
Primary
#c9fdd5gainsboro
#c9fdd5gainsboro
Primary foreground
#022c0cblack
#022c0cblack
Secondary
#fdc9f1mistyrose
#fdc9f1mistyrose
Secondary foreground
#8f056fpurple
#8f056fpurple
Muted
#ded8ddgainsboro
#272125darkslategray
Muted foreground
#544f53darkslategray
#b0abafdarkgray
Accent
#fdc9f1mistyrose
#fdc9f1mistyrose
Accent foreground
#8f056fpurple
#8f056fpurple
Destructive
#7f350bsaddlebrown
#ed7631tomato
Destructive foreground
#fad6c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c9fdd5gainsboro
#c9fdd5gainsboro

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button13.51:1AAA
Secondary button6.11:1AA
Muted text5.73:1AA
Accent6.11:1AA
Destructive6.39:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button13.51:1AAA
Secondary button6.11:1AA
Muted text6.99:1AA
Accent6.11:1AA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 153.155);
  --foreground: oklch(0.141 0.024 152.328);
  --muted: oklch(0.889 0.009 333.396);
  --muted-foreground: oklch(0.434 0.009 333.565);
  --popover: oklch(0.994 0.005 153.155);
  --popover-foreground: oklch(0.141 0.024 152.328);
  --card: oklch(0.994 0.005 153.155);
  --card-foreground: oklch(0.141 0.024 152.328);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.948 0.076 151.856);
  --primary-foreground: oklch(0.257 0.074 147.263);
  --secondary: oklch(0.893 0.078 334.592);
  --secondary-foreground: oklch(0.438 0.186 341.528);
  --accent: oklch(0.893 0.078 334.592);
  --accent-foreground: oklch(0.438 0.186 341.528);
  --destructive: oklch(0.425 0.113 45.269);
  --destructive-foreground: oklch(0.902 0.048 51.898);
  --ring: oklch(0.948 0.076 151.856);
  --chart-1: oklch(0.948 0.076 151.856);
  --chart-2: oklch(0.893 0.078 334.592);
  --chart-3: oklch(0.893 0.078 334.592);
  --chart-4: oklch(0.921 0.056 334.199);
  --chart-5: oklch(0.949 0.078 151.811);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.022 151.95);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.012 333.964);
  --muted-foreground: oklch(0.746 0.008 333.406);
  --popover: oklch(0.155 0.022 151.95);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.022 151.95);
  --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.948 0.076 151.856);
  --primary-foreground: oklch(0.257 0.074 147.263);
  --secondary: oklch(0.893 0.078 334.592);
  --secondary-foreground: oklch(0.438 0.186 341.528);
  --accent: oklch(0.893 0.078 334.592);
  --accent-foreground: oklch(0.438 0.186 341.528);
  --destructive: oklch(0.693 0.167 47.081);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.948 0.076 151.856);
  --chart-1: oklch(0.948 0.076 151.856);
  --chart-2: oklch(0.893 0.078 334.592);
  --chart-3: oklch(0.893 0.078 334.592);
  --chart-4: oklch(0.921 0.056 334.199);
  --chart-5: oklch(0.949 0.078 151.811);
}