Ayu One Dark for shadcn/ui

Ayu One Dark is a shadcn/ui theme built around a muted deep blue primary color (#0f141a) with muted deep blue accents (#2c3b49). The light mode uses a blue-tinted background (#0f141a). Dark mode keeps the muted deep blue primary (#0f141a) on a blue-tinted background (#0f141a).

Color palette

TokenLightDark
Background
#0f141ablack
#0f141ablack
Foreground
#bfbab0silver
#bfbab0silver
Card
#0b0f13black
#0b0f13black
Card foreground
#cac6besilver
#cac6besilver
Popover
#0a0d10black
#0a0d10black
Popover foreground
#d6d3cdlightgrey
#d6d3cdlightgrey
Primary
#0f141ablack
#0f141ablack
Primary foreground
#99adc2darkgray
#99adc2darkgray
Secondary
#b6bfc9silver
#b6bfc9silver
Secondary foreground
#21262cdarkslategray
#21262cdarkslategray
Muted
#22262bdarkslategray
#22262bdarkslategray
Muted foreground
#9ba6b0darkgray
#9ba6b0darkgray
Accent
#2c3b49darkslategray
#2c3b49darkslategray
Accent foreground
#c9d4delightgrey
#c9d4delightgrey
Destructive
#e91c1ccrimson
#e91c1ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#1c2126black
#1c2126black
Input
#23292fdarkslategray
#23292fdarkslategray
Ring
#0f141ablack
#0f141ablack

Contrast

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

Light mode
Text on background9.54:1AAA
Text on card11.26:1AAA
Primary button8.00:1AAA
Secondary button8.19:1AAA
Muted text6.13:1AA
Accent7.65:1AAA
Destructive4.53:1AA
Dark mode
Text on background9.54:1AAA
Text on card11.26:1AAA
Primary button8.00:1AAA
Secondary button8.19:1AAA
Muted text6.13:1AA
Accent7.65:1AAA
Destructive4.53:1AA

CSS variables

Paste this into your globals.css to use Ayu One Dark in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.19 0.013 248.516);
  --foreground: oklch(0.79 0.014 84.587);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.156 0.009 248.347);
  --popover-foreground: oklch(0.866 0.009 84.576);
  --card: oklch(0.167 0.01 248.432);
  --card-foreground: oklch(0.828 0.012 84.582);
  --border: oklch(0.246 0.012 248.315);
  --input: oklch(0.277 0.014 248.343);
  --primary: oklch(0.19 0.013 248.516);
  --primary-foreground: oklch(0.74 0.037 248.331);
  --secondary: oklch(0.801 0.017 248.043);
  --secondary-foreground: oklch(0.266 0.014 248.335);
  --accent: oklch(0.344 0.032 248.785);
  --accent-foreground: oklch(0.864 0.019 248.049);
  --destructive: oklch(0.594 0.232 28.174);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.19 0.013 248.516);
  --chart-1: oklch(0.19 0.013 248.516);
  --chart-2: oklch(0.801 0.017 248.043);
  --chart-3: oklch(0.344 0.032 248.785);
  --chart-4: oklch(0.825 0.015 248.01);
  --chart-5: oklch(0.19 0.015 248.603);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.19 0.013 248.516);
  --foreground: oklch(0.79 0.014 84.587);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.156 0.009 248.347);
  --popover-foreground: oklch(0.866 0.009 84.576);
  --card: oklch(0.167 0.01 248.432);
  --card-foreground: oklch(0.828 0.012 84.582);
  --border: oklch(0.246 0.012 248.315);
  --input: oklch(0.277 0.014 248.343);
  --primary: oklch(0.19 0.013 248.516);
  --primary-foreground: oklch(0.74 0.037 248.331);
  --secondary: oklch(0.801 0.017 248.043);
  --secondary-foreground: oklch(0.266 0.014 248.335);
  --accent: oklch(0.344 0.032 248.785);
  --accent-foreground: oklch(0.864 0.019 248.049);
  --destructive: oklch(0.594 0.232 28.174);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.19 0.013 248.516);
  --chart-1: oklch(0.19 0.013 248.516);
  --chart-2: oklch(0.801 0.017 248.043);
  --chart-3: oklch(0.344 0.032 248.785);
  --chart-4: oklch(0.825 0.015 248.01);
  --chart-5: oklch(0.19 0.015 248.603);
}