Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a teal primary color (#478583) with muted light teal accents (#d5dcdc). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the teal primary (#478583) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#050a0ablack
Foreground
#000000black
#ffffffwhite
Card
#f3fcfbmintcream
#070d0dblack
Card foreground
#000000black
#ffffffwhite
Popover
#f3fcfbmintcream
#070d0dblack
Popover foreground
#000000black
#ffffffwhite
Primary
#478583slategray
#478583slategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e8e8e8lavender
#121717black
Secondary foreground
#4e5050darkslategray
#a2b9b8darkgray
Muted
#eff0f0whitesmoke
#0f1010black
Muted foreground
#464e4ddarkslategray
#b1b9b9silver
Accent
#d5dcdcgainsboro
#1c2b2bdarkslategray
Accent foreground
#3a4545darkslategray
#afcbcalightsteelblue
Destructive
#b92204firebrick
#fa3a14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#478583slategray
#478583slategray

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.08:1AAA
Primary button4.26:1AA Large
Secondary button6.63:1AA
Muted text7.50:1AAA
Accent7.14:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.91:1AAA
Text on card19.55:1AAA
Primary button4.26:1AA Large
Secondary button8.75:1AAA
Muted text9.54:1AAA
Accent8.52:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 194.678);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.955 0.002 194.758);
  --muted-foreground: oklch(0.416 0.01 194.364);
  --popover: oklch(0.983 0.009 194.622);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.009 194.622);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.064 192.715);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.931 0 194.78);
  --secondary-foreground: oklch(0.429 0.002 194.7);
  --accent: oklch(0.89 0.007 194.634);
  --accent-foreground: oklch(0.382 0.015 194.07);
  --destructive: oklch(0.508 0.189 32.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.064 192.715);
  --chart-1: oklch(0.574 0.064 192.715);
  --chart-2: oklch(0.931 0 194.78);
  --chart-3: oklch(0.89 0.007 194.634);
  --chart-4: oklch(0.954 0 194.783);
  --chart-5: oklch(0.581 0.069 192.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.009 194.001);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.172 0.002 194.52);
  --muted-foreground: oklch(0.779 0.008 194.592);
  --popover: oklch(0.153 0.01 193.694);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.01 193.694);
  --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.574 0.064 192.715);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.2 0.009 193.989);
  --secondary-foreground: oklch(0.768 0.025 194.186);
  --accent: oklch(0.276 0.02 193.446);
  --accent-foreground: oklch(0.82 0.03 194.116);
  --destructive: oklch(0.644 0.231 32.535);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.064 192.715);
  --chart-1: oklch(0.574 0.064 192.715);
  --chart-2: oklch(0.2 0.009 193.989);
  --chart-3: oklch(0.276 0.02 193.446);
  --chart-4: oklch(0.236 0.011 193.9);
  --chart-5: oklch(0.581 0.069 192.57);
}