Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a vivid deep pink primary color (#880231) with vivid deep teal accents (#028859). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#880231) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0407black
Foreground
#040102black
#fcf8f9snow
Card
#fcfcfcsnow
#0f0609black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#0b0407black
Popover foreground
#040102black
#fcf8f9snow
Primary
#880231darkred
#880231darkred
Primary foreground
#febed4pink
#febed4pink
Secondary
#028859teal
#028859teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5e7e1gainsboro
#182a24black
Muted foreground
#4f5f59dimgray
#a0b0abdarkgray
Accent
#028859teal
#028859teal
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9d180cfirebrick
#ef3a2acrimson
Destructive foreground
#fde0demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#880231darkred
#880231darkred

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button6.46:1AA
Secondary button4.51:1AA
Muted text5.24:1AA
Accent4.51:1AA
Destructive6.60:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.55:1AAA
Primary button6.46:1AA
Secondary button4.51:1AA
Muted text6.65:1AA
Accent4.51:1AA
Destructive3.95: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.08 0.022 353.016);
  --muted: oklch(0.912 0.021 172.896);
  --muted-foreground: oklch(0.469 0.021 172.194);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.022 353.016);
  --card: oklch(0.992 0 161.565);
  --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.4 0.158 11.644);
  --primary-foreground: oklch(0.865 0.079 356.072);
  --secondary: oklch(0.552 0.124 160.32);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.124 160.32);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.447 0.168 30.071);
  --destructive-foreground: oklch(0.93 0.031 23.939);
  --ring: oklch(0.4 0.158 11.644);
  --chart-1: oklch(0.4 0.158 11.644);
  --chart-2: oklch(0.552 0.124 160.32);
  --chart-3: oklch(0.552 0.124 160.32);
  --chart-4: oklch(0.596 0.134 160.112);
  --chart-5: oklch(0.403 0.161 12.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.016 353.373);
  --foreground: oklch(0.983 0.004 353.685);
  --muted: oklch(0.267 0.027 170.22);
  --muted-foreground: oklch(0.744 0.019 172.809);
  --popover: oklch(0.124 0.016 353.373);
  --popover-foreground: oklch(0.983 0.004 353.685);
  --card: oklch(0.137 0.019 354.72);
  --card-foreground: oklch(0.991 0.002 353.629);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.4 0.158 11.644);
  --primary-foreground: oklch(0.865 0.079 356.072);
  --secondary: oklch(0.552 0.124 160.32);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.552 0.124 160.32);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.625 0.219 29.751);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.4 0.158 11.644);
  --chart-1: oklch(0.4 0.158 11.644);
  --chart-2: oklch(0.552 0.124 160.32);
  --chart-3: oklch(0.552 0.124 160.32);
  --chart-4: oklch(0.596 0.134 160.112);
  --chart-5: oklch(0.403 0.161 12.21);
}