Purring Japanese Indigo for shadcn/ui

Purring Japanese Indigo is a shadcn/ui theme built around a muted deep cyan primary color (#294347) with muted light cyan accents (#bbc7c9). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted deep cyan primary (#294347) on a cyan-tinted background (#040a0c).

Color palette

TokenLightDark
Background
#fbfefewhite
#040a0cblack
Foreground
#040e10black
#f4f9famintcream
Card
#fbfefewhite
#040a0cblack
Card foreground
#040e10black
#f4f9famintcream
Popover
#fbfefewhite
#040a0cblack
Popover foreground
#040e10black
#f4f9famintcream
Primary
#294347darkslategray
#294347darkslategray
Primary foreground
#c5daddlightgrey
#c5daddlightgrey
Secondary
#d4d8d8lightgrey
#1b2628darkslategray
Secondary foreground
#3a3f40darkslategray
#acc4c8silver
Muted
#d3e6e9gainsboro
#16292cdarkslategray
Muted foreground
#364649darkslategray
#b6c6c9silver
Accent
#bbc7c9silver
#283f43darkslategray
Accent foreground
#242c2ddarkslategray
#c2d7dblightgrey
Destructive
#a63208firebrick
#f55f29tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e9ebeclavender
#222526darkslategray
Input
#e9ebeclavender
#222526darkslategray
Ring
#294347darkslategray
#294347darkslategray

Contrast

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

Light mode
Text on background19.19:1AAA
Text on card19.19:1AAA
Primary button7.29:1AAA
Secondary button7.42:1AAA
Muted text7.62:1AAA
Accent8.19:1AAA
Destructive6.83:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button7.29:1AAA
Secondary button8.50:1AAA
Muted text8.57:1AAA
Accent7.46:1AAA
Destructive6.55:1AA

CSS variables

Paste this into your globals.css to use Purring Japanese Indigo in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 209.461);
  --foreground: oklch(0.155 0.016 208.425);
  --muted: oklch(0.911 0.021 209.43);
  --muted-foreground: oklch(0.383 0.021 209.497);
  --popover: oklch(0.994 0.003 209.461);
  --popover-foreground: oklch(0.155 0.016 208.425);
  --card: oklch(0.994 0.003 209.461);
  --card-foreground: oklch(0.155 0.016 208.425);
  --border: oklch(0.94 0.002 209.462);
  --input: oklch(0.94 0.002 209.462);
  --primary: oklch(0.363 0.032 209.792);
  --primary-foreground: oklch(0.873 0.023 209.429);
  --secondary: oklch(0.879 0.004 209.457);
  --secondary-foreground: oklch(0.364 0.007 209.432);
  --accent: oklch(0.82 0.013 209.435);
  --accent-foreground: oklch(0.286 0.011 209.441);
  --destructive: oklch(0.487 0.158 36.924);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.363 0.032 209.792);
  --chart-1: oklch(0.363 0.032 209.792);
  --chart-2: oklch(0.879 0.004 209.457);
  --chart-3: oklch(0.82 0.013 209.435);
  --chart-4: oklch(0.902 0.003 209.459);
  --chart-5: oklch(0.366 0.035 209.904);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.014 206.912);
  --foreground: oklch(0.98 0.005 209.454);
  --muted: oklch(0.266 0.026 209.899);
  --muted-foreground: oklch(0.815 0.018 209.43);
  --popover: oklch(0.139 0.014 206.912);
  --popover-foreground: oklch(0.98 0.005 209.454);
  --card: oklch(0.139 0.014 206.912);
  --card-foreground: oklch(0.98 0.005 209.454);
  --border: oklch(0.262 0.005 209.431);
  --input: oklch(0.262 0.005 209.431);
  --primary: oklch(0.363 0.032 209.792);
  --primary-foreground: oklch(0.873 0.023 209.429);
  --secondary: oklch(0.258 0.016 209.535);
  --secondary-foreground: oklch(0.803 0.026 209.433);
  --accent: oklch(0.35 0.029 209.718);
  --accent-foreground: oklch(0.865 0.023 209.429);
  --destructive: oklch(0.673 0.195 38.659);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.363 0.032 209.792);
  --chart-1: oklch(0.363 0.032 209.792);
  --chart-2: oklch(0.258 0.016 209.535);
  --chart-3: oklch(0.35 0.029 209.718);
  --chart-4: oklch(0.292 0.019 209.556);
  --chart-5: oklch(0.366 0.035 209.904);
}