Push for shadcn/ui

Push is a shadcn/ui theme built around a near-black primary color (#1e1f1e) with near-white accents (#eaecea). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the near-black primary (#1e1f1e) on a green-tinted background (#070f06).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#070f06black
Foreground
#051103black
#ffffffwhite
Card
#f5fbf4whitesmoke
#091207black
Card foreground
#040d02black
#ffffffwhite
Popover
#f5fbf4whitesmoke
#091207black
Popover foreground
#040d02black
#ffffffwhite
Primary
#1e1f1eblack
#1e1f1eblack
Primary foreground
#b7b8b7silver
#b7b8b7silver
Secondary
#eaecealinen
#1c231ablack
Secondary foreground
#4f564edarkslategray
#b1c2aesilver
Muted
#dcecdagainsboro
#162513black
Muted foreground
#435440darkslategray
#aebfabdarkgray
Accent
#eaecealinen
#1c231ablack
Accent foreground
#4f564edarkslategray
#b1c2aesilver
Destructive
#b24b10sienna
#e15f14chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e1f1eblack
#1e1f1eblack

Contrast

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

Light mode
Text on background18.66:1AAA
Text on card18.77:1AAA
Primary button8.30:1AAA
Secondary button6.35:1AA
Muted text6.62:1AA
Accent6.35:1AA
Destructive5.35:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.02:1AAA
Primary button8.30:1AAA
Secondary button8.59:1AAA
Muted text8.26:1AAA
Accent8.59:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 141.048);
  --foreground: oklch(0.162 0.037 139.313);
  --muted: oklch(0.927 0.03 140.995);
  --muted-foreground: oklch(0.426 0.04 140.865);
  --popover: oklch(0.981 0.011 141.04);
  --popover-foreground: oklch(0.144 0.032 138.997);
  --card: oklch(0.981 0.011 141.04);
  --card-foreground: oklch(0.144 0.032 138.997);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.238 0.001 141.053);
  --primary-foreground: oklch(0.782 0.002 141.059);
  --secondary: oklch(0.94 0.003 141.058);
  --secondary-foreground: oklch(0.443 0.016 140.987);
  --accent: oklch(0.94 0.003 141.058);
  --accent-foreground: oklch(0.443 0.016 140.987);
  --destructive: oklch(0.541 0.149 44.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.001 141.053);
  --chart-1: oklch(0.238 0.001 141.053);
  --chart-2: oklch(0.94 0.003 141.058);
  --chart-3: oklch(0.94 0.003 141.058);
  --chart-4: oklch(0.963 0.002 141.061);
  --chart-5: oklch(0.24 0.006 141.015);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.024 139.945);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.246 0.04 140.754);
  --muted-foreground: oklch(0.787 0.035 140.969);
  --popover: oklch(0.171 0.028 140.297);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.171 0.028 140.297);
  --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.238 0.001 141.053);
  --primary-foreground: oklch(0.782 0.002 141.059);
  --secondary: oklch(0.245 0.019 140.898);
  --secondary-foreground: oklch(0.794 0.033 140.973);
  --accent: oklch(0.245 0.019 140.898);
  --accent-foreground: oklch(0.794 0.033 140.973);
  --destructive: oklch(0.642 0.179 44.112);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.238 0.001 141.053);
  --chart-1: oklch(0.238 0.001 141.053);
  --chart-2: oklch(0.245 0.019 140.898);
  --chart-3: oklch(0.245 0.019 140.898);
  --chart-4: oklch(0.279 0.023 140.888);
  --chart-5: oklch(0.24 0.006 141.015);
}