Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a vivid light teal primary color (#bffce2) with muted light teal accents (#bdd6cb). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid light teal primary (#bffce2) on a teal-tinted background (#060e0b).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#060e0bblack
Foreground
#000000black
#ffffffwhite
Card
#f7fdfamintcream
#060e0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfamintcream
#060e0bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#bffce2paleturquoise
#bffce2paleturquoise
Primary foreground
#012214black
#012214black
Secondary
#d0ddd7lightgrey
#2c3531darkslategray
Secondary foreground
#33473fdarkslategray
#c5cecalightgrey
Muted
#d3dfdagainsboro
#202c27darkslategray
Muted foreground
#51615adimgray
#9eaea7darkgray
Accent
#bdd6cblightgrey
#3b5449darkslategray
Accent foreground
#253c32darkslategray
#dbe6e1gainsboro
Destructive
#712504maroon
#f87035tomato
Destructive foreground
#fcc4abpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bffce2paleturquoise
#bffce2paleturquoise

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button14.74:1AAA
Secondary button7.08:1AAA
Muted text4.77:1AA
Accent7.71:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button14.74:1AAA
Secondary button7.87:1AAA
Muted text6.22:1AA
Accent6.42:1AA
Destructive7.32:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 168.55);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.892 0.015 168.258);
  --muted-foreground: oklch(0.478 0.023 167.339);
  --popover: oklch(0.988 0.006 168.55);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 168.55);
  --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.944 0.071 166.417);
  --primary-foreground: oklch(0.224 0.048 160.925);
  --secondary: oklch(0.885 0.016 168.22);
  --secondary-foreground: oklch(0.378 0.029 166.401);
  --accent: oklch(0.855 0.031 167.664);
  --accent-foreground: oklch(0.334 0.034 165.402);
  --destructive: oklch(0.377 0.115 39.708);
  --destructive-foreground: oklch(0.863 0.073 44.314);
  --ring: oklch(0.944 0.071 166.417);
  --chart-1: oklch(0.944 0.071 166.417);
  --chart-2: oklch(0.885 0.016 168.22);
  --chart-3: oklch(0.855 0.031 167.664);
  --chart-4: oklch(0.907 0.013 168.33);
  --chart-5: oklch(0.945 0.073 166.342);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.015 167.126);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.281 0.019 166.636);
  --muted-foreground: oklch(0.736 0.021 167.932);
  --popover: oklch(0.154 0.015 167.126);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.015 167.126);
  --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.944 0.071 166.417);
  --primary-foreground: oklch(0.224 0.048 160.925);
  --secondary: oklch(0.319 0.014 167.482);
  --secondary-foreground: oklch(0.844 0.012 168.332);
  --accent: oklch(0.422 0.036 166.039);
  --accent-foreground: oklch(0.915 0.013 168.319);
  --destructive: oklch(0.7 0.181 41.719);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.944 0.071 166.417);
  --chart-1: oklch(0.944 0.071 166.417);
  --chart-2: oklch(0.319 0.014 167.482);
  --chart-3: oklch(0.422 0.036 166.039);
  --chart-4: oklch(0.35 0.015 167.443);
  --chart-5: oklch(0.945 0.073 166.342);
}