Ayu One for shadcn/ui

Ayu One is a shadcn/ui theme built around a vivid yellow primary color (#ffcc66) with muted blue accents (#49515f). The light mode uses a blue-tinted background (#282c34). Dark mode keeps the vivid yellow primary (#ffcc66) on a blue-tinted background (#282c34).

Color palette

TokenLightDark
Background
#282c34darkslategray
#282c34darkslategray
Foreground
#d9d7celightgrey
#d9d7celightgrey
Card
#23272edarkslategray
#23272edarkslategray
Card foreground
#e4e3dcgainsboro
#e4e3dcgainsboro
Popover
#21252bdarkslategray
#21252bdarkslategray
Popover foreground
#efefeblinen
#efefeblinen
Primary
#ffcc66sandybrown
#ffcc66sandybrown
Primary foreground
#332200black
#332200black
Secondary
#53462ddarkolivegreen
#53462ddarkolivegreen
Secondary foreground
#e4ddcdgainsboro
#e4ddcdgainsboro
Muted
#31363fdarkslategray
#31363fdarkslategray
Muted foreground
#afb5c0silver
#afb5c0silver
Accent
#49515fdarkslategray
#49515fdarkslategray
Accent foreground
#ebeceflavender
#ebeceflavender
Destructive
#ed3b35crimson
#ed3b35crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#393a3cdarkslategray
#393a3cdarkslategray
Input
#404244darkslategray
#404244darkslategray
Ring
#ffcc66sandybrown
#ffcc66sandybrown

Contrast

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

Light mode
Text on background9.71:1AAA
Text on card11.62:1AAA
Primary button10.28:1AAA
Secondary button6.79:1AA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.96:1AA Large
Dark mode
Text on background9.71:1AAA
Text on card11.62:1AAA
Primary button10.28:1AAA
Secondary button6.79:1AA
Muted text5.89:1AA
Accent6.80:1AA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.879 0.013 96.343);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.951 0.005 96.233);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.915 0.009 96.286);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.871 0.133 82.737);
  --primary-foreground: oklch(0.266 0.055 80.868);
  --secondary: oklch(0.401 0.043 84.052);
  --secondary-foreground: oklch(0.898 0.022 84.593);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.625 0.215 27.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.133 82.737);
  --chart-1: oklch(0.871 0.133 82.737);
  --chart-2: oklch(0.401 0.043 84.052);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.433 0.047 84.022);
  --chart-5: oklch(0.874 0.136 82.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.292 0.016 264.298);
  --foreground: oklch(0.879 0.013 96.343);
  --muted: oklch(0.332 0.017 264.31);
  --muted-foreground: oklch(0.771 0.017 264.466);
  --popover: oklch(0.262 0.013 264.313);
  --popover-foreground: oklch(0.951 0.005 96.233);
  --card: oklch(0.272 0.014 264.308);
  --card-foreground: oklch(0.915 0.009 96.286);
  --border: oklch(0.348 0.004 264.509);
  --input: oklch(0.377 0.005 264.508);
  --primary: oklch(0.871 0.133 82.737);
  --primary-foreground: oklch(0.266 0.055 80.868);
  --secondary: oklch(0.401 0.043 84.052);
  --secondary-foreground: oklch(0.898 0.022 84.593);
  --accent: oklch(0.432 0.026 264.255);
  --accent-foreground: oklch(0.944 0.004 264.536);
  --destructive: oklch(0.625 0.215 27.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.133 82.737);
  --chart-1: oklch(0.871 0.133 82.737);
  --chart-2: oklch(0.401 0.043 84.052);
  --chart-3: oklch(0.432 0.026 264.255);
  --chart-4: oklch(0.433 0.047 84.022);
  --chart-5: oklch(0.874 0.136 82.598);
}