Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a deep green primary color (#0d441b) with muted light green accents (#c2d6c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0d441b) on a green-tinted background (#040b06).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b06black
Foreground
#020804black
#fcfdfcwhite
Card
#ffffffwhite
#040b06black
Card foreground
#020804black
#fcfdfcwhite
Popover
#ffffffwhite
#040b06black
Popover foreground
#020804black
#fcfdfcwhite
Primary
#0d441bdarkgreen
#0d441bdarkgreen
Primary foreground
#44da69mediumseagreen
#44da69mediumseagreen
Secondary
#c2d6c7lightgrey
#2f322fdarkslategray
Secondary foreground
#293d2edarkslategray
#c7ccc8silver
Muted
#f0f5f1whitesmoke
#0a0f0bblack
Muted foreground
#49504bdarkslategray
#afb6b1darkgray
Accent
#c2d6c7lightgrey
#2f322fdarkslategray
Accent foreground
#293d2edarkslategray
#c7ccc8silver
Destructive
#6f0101maroon
#fd1212red
Destructive foreground
#fea4a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d441bdarkgreen
#0d441bdarkgreen

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.15:1AA
Secondary button7.61:1AAA
Muted text7.50:1AAA
Accent7.61:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button6.15:1AA
Secondary button7.94:1AAA
Muted text9.32:1AAA
Accent7.94:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.02 153.192);
  --muted: oklch(0.965 0.008 153.74);
  --muted-foreground: oklch(0.424 0.014 153.322);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.02 153.192);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.02 153.192);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.342 0.089 147.693);
  --primary-foreground: oklch(0.785 0.199 147.897);
  --secondary: oklch(0.856 0.029 153.293);
  --secondary-foreground: oklch(0.337 0.036 151.913);
  --accent: oklch(0.856 0.029 153.293);
  --accent-foreground: oklch(0.337 0.036 151.913);
  --destructive: oklch(0.341 0.139 29.06);
  --destructive-foreground: oklch(0.808 0.107 19.666);
  --ring: oklch(0.342 0.089 147.693);
  --chart-1: oklch(0.342 0.089 147.693);
  --chart-2: oklch(0.856 0.029 153.293);
  --chart-3: oklch(0.856 0.029 153.293);
  --chart-4: oklch(0.878 0.024 153.398);
  --chart-5: oklch(0.345 0.091 147.461);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.02 153.2);
  --foreground: oklch(0.993 0.001 153.852);
  --muted: oklch(0.163 0.012 152.548);
  --muted-foreground: oklch(0.77 0.012 153.617);
  --popover: oklch(0.14 0.02 153.2);
  --popover-foreground: oklch(0.993 0.001 153.852);
  --card: oklch(0.14 0.02 153.2);
  --card-foreground: oklch(0.993 0.001 153.852);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.342 0.089 147.693);
  --primary-foreground: oklch(0.785 0.199 147.897);
  --secondary: oklch(0.314 0.007 153.47);
  --secondary-foreground: oklch(0.84 0.006 153.747);
  --accent: oklch(0.314 0.007 153.47);
  --accent-foreground: oklch(0.84 0.006 153.747);
  --destructive: oklch(0.627 0.252 28.754);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.342 0.089 147.693);
  --chart-1: oklch(0.342 0.089 147.693);
  --chart-2: oklch(0.314 0.007 153.47);
  --chart-3: oklch(0.314 0.007 153.47);
  --chart-4: oklch(0.344 0.008 153.457);
  --chart-5: oklch(0.345 0.091 147.461);
}