Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a muted light green primary color (#dce2d5) with muted light green accents (#d5e2d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#dce2d5) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#ffffffwhite
#050802black
Foreground
#0b1203black
#fcfdfcwhite
Card
#ffffffwhite
#050802black
Card foreground
#0b1203black
#fcfdfcwhite
Popover
#ffffffwhite
#050802black
Popover foreground
#0b1203black
#fcfdfcwhite
Primary
#dce2d5gainsboro
#dce2d5gainsboro
Primary foreground
#434f36darkslategray
#434f36darkslategray
Secondary
#e2e2d5gainsboro
#e2e2d5gainsboro
Secondary foreground
#4f4e36darkolivegreen
#4f4e36darkolivegreen
Muted
#e8e7cfantiquewhite
#302f17darkslategray
Muted foreground
#51514ddarkslategray
#b2b1aedarkgray
Accent
#d5e2d5gainsboro
#d5e2d5gainsboro
Accent foreground
#374f36darkslategray
#374f36darkslategray
Destructive
#cb5515chocolate
#d05716chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dce2d5gainsboro
#dce2d5gainsboro

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button6.58:1AA
Secondary button6.47:1AA
Muted text6.35:1AA
Accent6.71:1AA
Destructive4.32:1AA Large
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button6.58:1AA
Secondary button6.47:1AA
Muted text6.31:1AA
Accent6.71:1AA
Destructive4.16: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.168 0.034 127.779);
  --muted: oklch(0.922 0.032 105.399);
  --muted-foreground: oklch(0.432 0.005 105.007);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.168 0.034 127.779);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.168 0.034 127.779);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.904 0.019 127.377);
  --primary-foreground: oklch(0.409 0.043 128.492);
  --secondary: oklch(0.908 0.018 105.141);
  --secondary-foreground: oklch(0.418 0.038 106.27);
  --accent: oklch(0.899 0.023 144.452);
  --accent-foreground: oklch(0.4 0.051 143.75);
  --destructive: oklch(0.594 0.165 43.495);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.904 0.019 127.377);
  --chart-1: oklch(0.904 0.019 127.377);
  --chart-2: oklch(0.908 0.018 105.141);
  --chart-3: oklch(0.899 0.023 144.452);
  --chart-4: oklch(0.928 0.014 105.064);
  --chart-5: oklch(0.906 0.022 127.419);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.019 126.126);
  --foreground: oklch(0.993 0.001 127.123);
  --muted: oklch(0.301 0.039 106.81);
  --muted-foreground: oklch(0.761 0.004 104.907);
  --popover: oklch(0.127 0.019 126.126);
  --popover-foreground: oklch(0.993 0.001 127.123);
  --card: oklch(0.127 0.019 126.126);
  --card-foreground: oklch(0.993 0.001 127.123);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.904 0.019 127.377);
  --primary-foreground: oklch(0.409 0.043 128.492);
  --secondary: oklch(0.908 0.018 105.141);
  --secondary-foreground: oklch(0.418 0.038 106.27);
  --accent: oklch(0.899 0.023 144.452);
  --accent-foreground: oklch(0.4 0.051 143.75);
  --destructive: oklch(0.604 0.168 43.46);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.904 0.019 127.377);
  --chart-1: oklch(0.904 0.019 127.377);
  --chart-2: oklch(0.908 0.018 105.141);
  --chart-3: oklch(0.899 0.023 144.452);
  --chart-4: oklch(0.928 0.014 105.064);
  --chart-5: oklch(0.906 0.022 127.419);
}