Harmonious for shadcn/ui

Harmonious is a shadcn/ui theme built around a vivid deep blue primary color (#032e63) with vivid deep green accents (#2e6303). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#032e63) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#ffffffwhite
#020508black
Foreground
#000000black
#f9fafbghostwhite
Card
#fcfcfcsnow
#04070cblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfcsnow
#04070cblack
Popover foreground
#000000black
#fcfcfdwhite
Primary
#032e63midnightblue
#032e63midnightblue
Primary foreground
#9cc7fclightskyblue
#9cc7fclightskyblue
Secondary
#63032emaroon
#63032emaroon
Secondary foreground
#fc9cc7lightpink
#fc9cc7lightpink
Muted
#ece4e8linen
#1b1317black
Muted foreground
#4c3e44darkslategray
#c1b3b9silver
Accent
#2e6303darkgreen
#2e6303darkgreen
Accent foreground
#c7fc9cpalegoldenrod
#c7fc9cpalegoldenrod
Destructive
#ad2000firebrick
#eb2b00orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#032e63midnightblue
#032e63midnightblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.59:1AAA
Secondary button6.75:1AA
Muted text8.10:1AAA
Accent6.10:1AA
Destructive7.02:1AAA
Dark mode
Text on background19.55:1AAA
Text on card19.67:1AAA
Primary button7.59:1AAA
Secondary button6.75:1AA
Muted text9.03:1AAA
Accent6.10:1AA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.009 348.079);
  --muted-foreground: oklch(0.38 0.021 349.3);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.31 0.105 256.681);
  --primary-foreground: oklch(0.818 0.089 253.793);
  --secondary: oklch(0.325 0.128 2.673);
  --secondary-foreground: oklch(0.802 0.126 351.83);
  --accent: oklch(0.447 0.131 136.007);
  --accent-foreground: oklch(0.934 0.136 132.005);
  --destructive: oklch(0.484 0.18 32.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.105 256.681);
  --chart-1: oklch(0.31 0.105 256.681);
  --chart-2: oklch(0.325 0.128 2.673);
  --chart-3: oklch(0.447 0.131 136.007);
  --chart-4: oklch(0.358 0.142 3.268);
  --chart-5: oklch(0.31 0.107 256.757);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.012 245.543);
  --foreground: oklch(0.984 0.001 253.228);
  --muted: oklch(0.199 0.014 349.592);
  --muted-foreground: oklch(0.781 0.018 348.427);
  --popover: oklch(0.127 0.014 245.962);
  --popover-foreground: oklch(0.992 0.001 253.223);
  --card: oklch(0.127 0.014 245.962);
  --card-foreground: oklch(0.992 0.001 253.223);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.31 0.105 256.681);
  --primary-foreground: oklch(0.818 0.089 253.793);
  --secondary: oklch(0.325 0.128 2.673);
  --secondary-foreground: oklch(0.802 0.126 351.83);
  --accent: oklch(0.447 0.131 136.007);
  --accent-foreground: oklch(0.934 0.136 132.005);
  --destructive: oklch(0.605 0.228 32.21);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.31 0.105 256.681);
  --chart-1: oklch(0.31 0.105 256.681);
  --chart-2: oklch(0.325 0.128 2.673);
  --chart-3: oklch(0.447 0.131 136.007);
  --chart-4: oklch(0.358 0.142 3.268);
  --chart-5: oklch(0.31 0.107 256.757);
}