overwatch for shadcn/ui

overwatch is a shadcn/ui theme built around a vivid orange primary color (#f06414) with vivid light orange accents (#f5b89a). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid red primary (#fa6742) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#141414black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#080403black
Card foreground
#141414black
#fbf9f9snow
Popover
#ffffffwhite
#040201black
Popover foreground
#141414black
#f9f6f6whitesmoke
Primary
#f06414chocolate
#fa6742tomato
Primary foreground
#ffffffwhite
#0a0200black
Secondary
#f5b89aburlywood
#282524darkslategray
Secondary foreground
#493a37darkslategray
#c2bdbcsilver
Muted
#ffe8d3blanchedalmond
#251713black
Muted foreground
#5a4d49darkolivegreen
#b6a9a5darkgray
Accent
#f5b89aburlywood
#443936darkslategray
Accent foreground
#493a37darkslategray
#dbd4d2lightgrey
Destructive
#e60023crimson
#ff0000red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f06414chocolate
#fa6742tomato

Contrast

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

Light mode
Text on background18.42:1AAA
Text on card18.02:1AAA
Primary button3.21:1AA Large
Secondary button6.28:1AA
Muted text6.84:1AA
Accent6.28:1AA
Destructive4.78:1AA
Dark mode
Text on background19.28:1AAA
Text on card19.50:1AAA
Primary button6.93:1AA
Secondary button8.17:1AAA
Muted text7.62:1AAA
Accent7.60:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.191 0 180);
  --muted: oklch(0.944 0.038 64.779);
  --muted-foreground: oklch(0.431 0.018 34.319);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.191 0 180);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.191 0 180);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.671 0.19 43.661);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.831 0.082 47.322);
  --secondary-foreground: oklch(0.364 0.022 31.284);
  --accent: oklch(0.831 0.082 47.322);
  --accent-foreground: oklch(0.364 0.021 34.356);
  --destructive: oklch(0.582 0.236 25.536);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.671 0.19 43.661);
  --chart-1: oklch(0.671 0.19 43.661);
  --chart-2: oklch(0.831 0.082 47.322);
  --chart-3: oklch(0.831 0.082 47.322);
  --chart-4: oklch(0.854 0.07 47.485);
  --chart-5: oklch(0.675 0.195 43.101);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.01 39.95);
  --foreground: oklch(0.976 0.003 34.312);
  --muted: oklch(0.221 0.025 34.582);
  --muted-foreground: oklch(0.743 0.016 34.297);
  --popover: oklch(0.088 0.01 39.95);
  --popover-foreground: oklch(0.976 0.003 34.312);
  --card: oklch(0.111 0.012 39.95);
  --card-foreground: oklch(0.984 0.002 34.314);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.693 0.188 35.174);
  --primary-foreground: oklch(0.106 0.026 49.582);
  --secondary: oklch(0.268 0.005 34.297);
  --secondary-foreground: oklch(0.803 0.006 34.305);
  --accent: oklch(0.356 0.016 34.323);
  --accent-foreground: oklch(0.874 0.008 34.303);
  --destructive: oklch(0.628 0.258 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.693 0.188 35.174);
  --chart-1: oklch(0.693 0.188 35.174);
  --chart-2: oklch(0.268 0.005 34.297);
  --chart-3: oklch(0.356 0.016 34.323);
  --chart-4: oklch(0.299 0.006 34.297);
  --chart-5: oklch(0.695 0.193 35.143);
}