Harmless for shadcn/ui

Harmless is a shadcn/ui theme built around a deep blue primary color (#0d3049) with deep indigo accents (#0d1249). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#0d3049) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#010304black
Foreground
#000000black
#fcfdfdwhite
Card
#f7fafdghostwhite
#010304black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f7fafdghostwhite
#010304black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#0d3049darkslategray
#0d3049darkslategray
Primary foreground
#9ccbedskyblue
#9ccbedskyblue
Secondary
#0d4944darkslategray
#0d4944darkslategray
Secondary foreground
#46ddd0turquoise
#46ddd0turquoise
Muted
#e6eaealavender
#151919black
Muted foreground
#444645darkslategray
#b9bbbbsilver
Accent
#0d1249midnightblue
#0d1249midnightblue
Accent foreground
#9ca3edlightsteelblue
#9ca3edlightsteelblue
Destructive
#ab3d12brown
#d94e17chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d3049darkslategray
#0d3049darkslategray

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.89:1AAA
Secondary button6.06:1AA
Muted text7.85:1AAA
Accent7.37:1AAA
Destructive6.16:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.89:1AAA
Secondary button6.06:1AA
Muted text9.19:1AAA
Accent7.37:1AAA
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(0.984 0.006 238.442);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.934 0.004 191.146);
  --muted-foreground: oklch(0.391 0.002 191.147);
  --popover: oklch(0.984 0.006 238.442);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.006 238.442);
  --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.299 0.06 243.647);
  --primary-foreground: oklch(0.821 0.069 239.739);
  --secondary: oklch(0.369 0.059 186.587);
  --secondary-foreground: oklch(0.816 0.126 186.915);
  --accent: oklch(0.225 0.1 271.358);
  --accent-foreground: oklch(0.737 0.107 279.422);
  --destructive: oklch(0.51 0.153 39.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.06 243.647);
  --chart-1: oklch(0.299 0.06 243.647);
  --chart-2: oklch(0.369 0.059 186.587);
  --chart-3: oklch(0.225 0.1 271.358);
  --chart-4: oklch(0.411 0.066 186.451);
  --chart-5: oklch(0.3 0.062 243.999);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.01 230.807);
  --foreground: oklch(0.992 0.001 238.373);
  --muted: oklch(0.209 0.006 190.583);
  --muted-foreground: oklch(0.79 0.002 191.207);
  --popover: oklch(0.091 0.01 230.807);
  --popover-foreground: oklch(0.992 0.001 238.373);
  --card: oklch(0.091 0.01 230.807);
  --card-foreground: oklch(0.992 0.001 238.373);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.299 0.06 243.647);
  --primary-foreground: oklch(0.821 0.069 239.739);
  --secondary: oklch(0.369 0.059 186.587);
  --secondary-foreground: oklch(0.816 0.126 186.915);
  --accent: oklch(0.225 0.1 271.358);
  --accent-foreground: oklch(0.737 0.107 279.422);
  --destructive: oklch(0.607 0.185 38.746);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.06 243.647);
  --chart-1: oklch(0.299 0.06 243.647);
  --chart-2: oklch(0.369 0.059 186.587);
  --chart-3: oklch(0.225 0.1 271.358);
  --chart-4: oklch(0.411 0.066 186.451);
  --chart-5: oklch(0.3 0.062 243.999);
}