Gum for shadcn/ui

Gum is a shadcn/ui theme built around a vivid red primary color (#ff7075) with muted light red accents (#ebe5e5). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid red primary (#ff7075) on a red-tinted background (#100405).

Color palette

TokenLightDark
Background
#fdf7f7snow
#100405black
Foreground
#040101black
#fcf8f8snow
Card
#fdf7f7snow
#100405black
Card foreground
#040101black
#fcf8f8snow
Popover
#fdf7f7snow
#100405black
Popover foreground
#040101black
#fcf8f8snow
Primary
#ff7075salmon
#ff7075salmon
Primary foreground
#3d0002black
#3d0002black
Secondary
#ebe5e5linen
#322a2adarkslategray
Secondary foreground
#5b4344darkolivegreen
#ccc2c2silver
Muted
#e5d2d2gainsboro
#2d1a1bblack
Muted foreground
#4e4646darkslategray
#b9b1b2darkgray
Accent
#ebe5e5linen
#322a2adarkslategray
Accent foreground
#5b4344darkolivegreen
#ccc2c2silver
Destructive
#923507saddlebrown
#ef570borangered
Destructive foreground
#fddecebisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ff7075salmon
#ff7075salmon

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 button6.53:1AA
Secondary button7.22:1AAA
Muted text6.31:1AA
Accent7.22:1AAA
Destructive6.02:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button6.53:1AA
Secondary button8.05:1AAA
Muted text7.82:1AAA
Accent8.05:1AAA
Destructive3.48:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 14.922);
  --foreground: oklch(0.08 0.018 18.486);
  --muted: oklch(0.879 0.021 15.253);
  --muted-foreground: oklch(0.403 0.01 15.262);
  --popover: oklch(0.98 0.007 14.922);
  --popover-foreground: oklch(0.08 0.018 18.486);
  --card: oklch(0.98 0.007 14.922);
  --card-foreground: oklch(0.08 0.018 18.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.72 0.174 20.52);
  --primary-foreground: oklch(0.227 0.092 26.897);
  --secondary: oklch(0.926 0.007 14.942);
  --secondary-foreground: oklch(0.41 0.033 16.375);
  --accent: oklch(0.926 0.007 14.942);
  --accent-foreground: oklch(0.41 0.033 16.375);
  --destructive: oklch(0.457 0.135 41.357);
  --destructive-foreground: oklch(0.921 0.04 48.262);
  --ring: oklch(0.72 0.174 20.52);
  --chart-1: oklch(0.72 0.174 20.52);
  --chart-2: oklch(0.926 0.007 14.942);
  --chart-3: oklch(0.926 0.007 14.942);
  --chart-4: oklch(0.951 0.005 14.887);
  --chart-5: oklch(0.72 0.179 20.743);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.025 18.066);
  --foreground: oklch(0.982 0.004 14.869);
  --muted: oklch(0.244 0.031 17.395);
  --muted-foreground: oklch(0.768 0.008 14.997);
  --popover: oklch(0.132 0.025 18.066);
  --popover-foreground: oklch(0.982 0.004 14.869);
  --card: oklch(0.132 0.025 18.066);
  --card-foreground: oklch(0.982 0.004 14.869);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.72 0.174 20.52);
  --primary-foreground: oklch(0.227 0.092 26.897);
  --secondary: oklch(0.293 0.012 15.589);
  --secondary-foreground: oklch(0.822 0.011 15.05);
  --accent: oklch(0.293 0.012 15.589);
  --accent-foreground: oklch(0.822 0.011 15.05);
  --destructive: oklch(0.652 0.2 40.335);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.72 0.174 20.52);
  --chart-1: oklch(0.72 0.174 20.52);
  --chart-2: oklch(0.293 0.012 15.589);
  --chart-3: oklch(0.293 0.012 15.589);
  --chart-4: oklch(0.323 0.014 15.619);
  --chart-5: oklch(0.72 0.179 20.743);
}