Kōyō for shadcn/ui

Kōyō is a shadcn/ui theme built around a vivid blue primary color (#6699ff) with near-white accents (#e6e6e6). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid blue primary (#6699ff) on a neutral background (#252525).

Color palette

TokenLightDark
Background
#fafafasnow
#252525darkslategray
Foreground
#2e405cdarkslategray
#eff2f7whitesmoke
Card
#f2f2f2whitesmoke
#2b2b2bdarkslategray
Card foreground
#2e405cdarkslategray
#eff2f7whitesmoke
Popover
#fafafasnow
#252525darkslategray
Popover foreground
#2e405cdarkslategray
#eff2f7whitesmoke
Primary
#6699ffcornflowerblue
#6699ffcornflowerblue
Primary foreground
#f2f2f3whitesmoke
#0c0d0dblack
Secondary
#e6e6e6gainsboro
#4c4c4cdarkslategray
Secondary foreground
#2e405cdarkslategray
#eff2f7whitesmoke
Muted
#e6e6e6gainsboro
#333333darkslategray
Muted foreground
#444f60darkslategray
#b6bfccsilver
Accent
#e6e6e6gainsboro
#4c4c4cdarkslategray
Accent foreground
#2e405cdarkslategray
#eff2f7whitesmoke
Destructive
#d85c5cindianred
#d85c5cindianred
Destructive foreground
#f2f2f3whitesmoke
#0c0d0dblack
Border
#e4e4e4gainsboro
#3f3f3fdarkslategray
Input
#e4e4e4gainsboro
#3f3f3fdarkslategray
Ring
#6699ffcornflowerblue
#6699ffcornflowerblue

Contrast

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

Light mode
Text on background10.03:1AAA
Text on card9.38:1AAA
Primary button2.48:1Fail
Secondary button8.39:1AAA
Muted text6.61:1AA
Accent8.39:1AAA
Destructive3.35:1AA Large
Dark mode
Text on background13.61:1AAA
Text on card12.55:1AAA
Primary button7.01:1AAA
Secondary button7.65:1AAA
Muted text6.80:1AA
Accent7.65:1AAA
Destructive5.19:1AA

CSS variables

Paste this into your globals.css to use Kōyō in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0 170.538);
  --foreground: oklch(0.369 0.054 259.003);
  --muted: oklch(0.923 0 153.435);
  --muted-foreground: oklch(0.424 0.032 259.147);
  --popover: oklch(0.985 0 264.549);
  --popover-foreground: oklch(0.369 0.054 259.003);
  --card: oklch(0.962 0 180);
  --card-foreground: oklch(0.369 0.054 259.003);
  --border: oklch(0.917 0 172.875);
  --input: oklch(0.919 0 172.875);
  --primary: oklch(0.694 0.16 262.859);
  --primary-foreground: oklch(0.961 0.001 264.547);
  --secondary: oklch(0.925 0 180);
  --secondary-foreground: oklch(0.369 0.054 259.003);
  --accent: oklch(0.925 0 180);
  --accent-foreground: oklch(0.369 0.054 259.003);
  --destructive: oklch(0.631 0.157 22.644);
  --destructive-foreground: oklch(0.961 0.001 264.547);
  --ring: oklch(0.694 0.16 262.859);
  --chart-1: oklch(0.694 0.16 262.859);
  --chart-2: oklch(0.925 0 180);
  --chart-3: oklch(0.925 0 180);
  --chart-4: oklch(0.948 0 167.471);
  --chart-5: oklch(0.693 0.165 262.802);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.266 0 180);
  --foreground: oklch(0.961 0.007 259.174);
  --muted: oklch(0.321 0 180);
  --muted-foreground: oklch(0.801 0.021 259.189);
  --popover: oklch(0.264 0 180);
  --popover-foreground: oklch(0.961 0.007 259.174);
  --card: oklch(0.29 0 180);
  --card-foreground: oklch(0.961 0.007 259.174);
  --border: oklch(0.368 0 180);
  --input: oklch(0.367 0 180);
  --primary: oklch(0.694 0.16 262.859);
  --primary-foreground: oklch(0.157 0.002 264.51);
  --secondary: oklch(0.417 0 180);
  --secondary-foreground: oklch(0.961 0.007 259.174);
  --accent: oklch(0.417 0 180);
  --accent-foreground: oklch(0.961 0.007 259.174);
  --destructive: oklch(0.632 0.157 22.638);
  --destructive-foreground: oklch(0.157 0.002 264.51);
  --ring: oklch(0.694 0.16 262.859);
  --chart-1: oklch(0.694 0.16 262.859);
  --chart-2: oklch(0.417 0 180);
  --chart-3: oklch(0.417 0 180);
  --chart-4: oklch(0.445 0 180);
  --chart-5: oklch(0.693 0.165 262.802);
}