Watch for shadcn/ui

Watch is a shadcn/ui theme built around a deep green primary color (#2a6a24) with deep red accents (#6a242a). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#2a6a24) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfefbwhite
#000000black
Foreground
#030802black
#f6f9f6whitesmoke
Card
#f8fcf8mintcream
#030303black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#fcfefbwhite
#000000black
Popover foreground
#030802black
#f6f9f6whitesmoke
Primary
#2a6a24forestgreen
#2a6a24forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#242a6amidnightblue
#242a6amidnightblue
Secondary foreground
#d1d4efgainsboro
#d1d4efgainsboro
Muted
#e9eaf1lavender
#0e0e16black
Muted foreground
#5d5e69dimgray
#9697a2darkgray
Accent
#6a242asaddlebrown
#6a242asaddlebrown
Accent foreground
#efd1d4gainsboro
#efd1d4gainsboro
Destructive
#b30600darkred
#ff2b24orangered
Destructive foreground
#ffe6e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a6a24forestgreen
#2a6a24forestgreen

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.89:1AAA
Primary button6.55:1AA
Secondary button8.86:1AAA
Muted text5.33:1AA
Accent7.72:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.88:1AAA
Primary button6.55:1AA
Secondary button8.86:1AAA
Muted text6.62:1AA
Accent7.72:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 143.118);
  --foreground: oklch(0.122 0.022 141.483);
  --muted: oklch(0.937 0.011 282.024);
  --muted-foreground: oklch(0.487 0.017 281.597);
  --popover: oklch(0.994 0.003 143.118);
  --popover-foreground: oklch(0.122 0.022 141.483);
  --card: oklch(0.987 0.007 143.101);
  --card-foreground: oklch(0.097 0.018 141.483);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.122 141.969);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.322 0.111 274.439);
  --secondary-foreground: oklch(0.876 0.038 281.464);
  --accent: oklch(0.369 0.1 18.566);
  --accent-foreground: oklch(0.888 0.034 12.083);
  --destructive: oklch(0.482 0.195 29.639);
  --destructive-foreground: oklch(0.946 0.027 20.021);
  --ring: oklch(0.468 0.122 141.969);
  --chart-1: oklch(0.468 0.122 141.969);
  --chart-2: oklch(0.322 0.111 274.439);
  --chart-3: oklch(0.369 0.1 18.566);
  --chart-4: oklch(0.344 0.12 274.262);
  --chart-5: oklch(0.473 0.128 141.948);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.005 143.108);
  --muted: oklch(0.168 0.016 280.423);
  --muted-foreground: oklch(0.678 0.016 281.812);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.005 143.108);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.004 143.117);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.468 0.122 141.969);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.322 0.111 274.439);
  --secondary-foreground: oklch(0.876 0.038 281.464);
  --accent: oklch(0.369 0.1 18.566);
  --accent-foreground: oklch(0.888 0.034 12.083);
  --destructive: oklch(0.643 0.243 28.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.122 141.969);
  --chart-1: oklch(0.468 0.122 141.969);
  --chart-2: oklch(0.322 0.111 274.439);
  --chart-3: oklch(0.369 0.1 18.566);
  --chart-4: oklch(0.344 0.12 274.262);
  --chart-5: oklch(0.473 0.128 141.948);
}