Equipment for shadcn/ui

Equipment is a shadcn/ui theme built around a near-black primary color (#202222) with near-black accents (#222021). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#202222) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#ffffffwhite
#020403black
Foreground
#030c0bblack
#f5f9f9whitesmoke
Card
#ffffffwhite
#020403black
Card foreground
#030c0bblack
#f5f9f9whitesmoke
Popover
#ffffffwhite
#020403black
Popover foreground
#030c0bblack
#f5f9f9whitesmoke
Primary
#202222black
#202222black
Primary foreground
#b9bcbbsilver
#b9bcbbsilver
Secondary
#222021black
#222021black
Secondary foreground
#bcb9b9silver
#bcb9b9silver
Muted
#ead6d8gainsboro
#291517black
Muted foreground
#645e5fdimgray
#a19b9cdarkgray
Accent
#222021black
#222021black
Accent foreground
#bcb9b9silver
#bcb9b9silver
Destructive
#5c1a0amaroon
#eb603dtomato
Destructive foreground
#f5b3a3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#202222black
#202222black

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button8.36:1AAA
Secondary button8.28:1AAA
Muted text4.58:1AA
Accent8.28:1AAA
Destructive7.35:1AAA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button8.36:1AAA
Secondary button8.28:1AAA
Muted text6.35:1AA
Accent8.28:1AAA
Destructive6.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.016 188.82);
  --muted: oklch(0.894 0.023 10.651);
  --muted-foreground: oklch(0.488 0.008 10.428);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.016 188.82);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.016 188.82);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.25 0.002 189.895);
  --primary-foreground: oklch(0.791 0.003 189.988);
  --secondary: oklch(0.247 0.002 10.263);
  --secondary-foreground: oklch(0.787 0.003 10.168);
  --accent: oklch(0.247 0.002 10.263);
  --accent-foreground: oklch(0.787 0.003 10.168);
  --destructive: oklch(0.324 0.1 34.843);
  --destructive-foreground: oklch(0.825 0.081 34.516);
  --ring: oklch(0.25 0.002 189.895);
  --chart-1: oklch(0.25 0.002 189.895);
  --chart-2: oklch(0.247 0.002 10.263);
  --chart-3: oklch(0.247 0.002 10.263);
  --chart-4: oklch(0.279 0.002 10.274);
  --chart-5: oklch(0.252 0.005 189.63);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 189.51);
  --foreground: oklch(0.98 0.004 189.978);
  --muted: oklch(0.223 0.033 13.66);
  --muted-foreground: oklch(0.695 0.007 10.301);
  --popover: oklch(0.097 0.008 189.51);
  --popover-foreground: oklch(0.98 0.004 189.978);
  --card: oklch(0.097 0.008 189.51);
  --card-foreground: oklch(0.98 0.004 189.978);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.25 0.002 189.895);
  --primary-foreground: oklch(0.791 0.003 189.988);
  --secondary: oklch(0.247 0.002 10.263);
  --secondary-foreground: oklch(0.787 0.003 10.168);
  --accent: oklch(0.247 0.002 10.263);
  --accent-foreground: oklch(0.787 0.003 10.168);
  --destructive: oklch(0.66 0.179 35.173);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.25 0.002 189.895);
  --chart-1: oklch(0.25 0.002 189.895);
  --chart-2: oklch(0.247 0.002 10.263);
  --chart-3: oklch(0.247 0.002 10.263);
  --chart-4: oklch(0.279 0.002 10.274);
  --chart-5: oklch(0.252 0.005 189.63);
}