Stop for shadcn/ui

Stop is a shadcn/ui theme built around a green primary color (#7f9e3d) with green accents (#4f9e3d). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#7f9e3d) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fdfefbwhite
#060703black
Foreground
#0a0d02black
#fdfdfcwhite
Card
#fbfcf8snow
#090b05black
Card foreground
#070901black
#ffffffwhite
Popover
#fdfefbwhite
#060703black
Popover foreground
#0a0d02black
#fdfdfcwhite
Primary
#7f9e3dolivedrab
#7f9e3dolivedrab
Primary foreground
#090b04black
#090b04black
Secondary
#9e8c3dperu
#9e8c3dperu
Secondary foreground
#000000black
#000000black
Muted
#e7e6e4gainsboro
#1b1a18black
Muted foreground
#514f48darkslategray
#b7b5aedarkgray
Accent
#4f9e3dolivedrab
#4f9e3dolivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#66210amaroon
#e84b17orangered
Destructive foreground
#f7beablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f9e3dolivedrab
#7f9e3dolivedrab

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.42:1AAA
Primary button6.46:1AA
Secondary button6.28:1AA
Muted text6.59:1AA
Accent3.34:1AA Large
Destructive7.21:1AAA
Dark mode
Text on background19.84:1AAA
Text on card19.82:1AAA
Primary button6.46:1AA
Secondary button6.28:1AA
Muted text8.44:1AAA
Accent3.34:1AA Large
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 120.816);
  --foreground: oklch(0.152 0.029 121.159);
  --muted: oklch(0.926 0.003 96.212);
  --muted-foreground: oklch(0.428 0.012 96.505);
  --popover: oklch(0.994 0.003 120.816);
  --popover-foreground: oklch(0.152 0.029 121.159);
  --card: oklch(0.989 0.006 120.864);
  --card-foreground: oklch(0.132 0.025 120.469);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.655 0.129 124.692);
  --primary-foreground: oklch(0.144 0.017 120.679);
  --secondary: oklch(0.641 0.101 96.747);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.154 140.108);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.352 0.105 37.553);
  --destructive-foreground: oklch(0.848 0.07 39.229);
  --ring: oklch(0.655 0.129 124.692);
  --chart-1: oklch(0.655 0.129 124.692);
  --chart-2: oklch(0.641 0.101 96.747);
  --chart-3: oklch(0.627 0.154 140.108);
  --chart-4: oklch(0.673 0.107 96.735);
  --chart-5: oklch(0.664 0.135 124.934);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.013 120.599);
  --foreground: oklch(0.993 0.001 120.787);
  --muted: oklch(0.219 0.005 96.432);
  --muted-foreground: oklch(0.774 0.011 96.335);
  --popover: oklch(0.125 0.013 120.599);
  --popover-foreground: oklch(0.993 0.001 120.787);
  --card: oklch(0.143 0.015 120.626);
  --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.655 0.129 124.692);
  --primary-foreground: oklch(0.144 0.017 120.679);
  --secondary: oklch(0.641 0.101 96.747);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.627 0.154 140.108);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.202 36.61);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.655 0.129 124.692);
  --chart-1: oklch(0.655 0.129 124.692);
  --chart-2: oklch(0.641 0.101 96.747);
  --chart-3: oklch(0.627 0.154 140.108);
  --chart-4: oklch(0.673 0.107 96.735);
  --chart-5: oklch(0.664 0.135 124.934);
}