Ayu Light for shadcn/ui

Ayu Light is a shadcn/ui theme built around a vivid orange primary color (#ffaa33) with muted light blue accents (#ccd4db). The light mode uses a neutral background (#f9fafb). Dark mode keeps the vivid orange primary (#ffaa33) on a neutral background (#f9fafb).

Color palette

TokenLightDark
Background
#f9fafbghostwhite
#f9fafbghostwhite
Foreground
#5c6166dimgray
#5c6166dimgray
Card
#f3f5f7whitesmoke
#f3f5f7whitesmoke
Card foreground
#505458darkslategray
#505458darkslategray
Popover
#f0f2f4whitesmoke
#f0f2f4whitesmoke
Popover foreground
#44474bdarkslategray
#44474bdarkslategray
Primary
#ffaa33goldenrod
#ffaa33goldenrod
Primary foreground
#000000black
#000000black
Secondary
#53432ddarkolivegreen
#53432ddarkolivegreen
Secondary foreground
#e4dbcdgainsboro
#e4dbcdgainsboro
Muted
#e2e6e9gainsboro
#e2e6e9gainsboro
Muted foreground
#434d56darkslategray
#434d56darkslategray
Accent
#ccd4dblightgrey
#ccd4dblightgrey
Accent foreground
#313b45darkslategray
#313b45darkslategray
Destructive
#9a1a0efirebrick
#9a1a0efirebrick
Destructive foreground
#fce1demistyrose
#fce1demistyrose
Border
#ecedeewhitesmoke
#ecedeewhitesmoke
Input
#e4e6e7gainsboro
#e4e6e7gainsboro
Ring
#ffaa33goldenrod
#ffaa33goldenrod

Contrast

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

Light mode
Text on background5.98:1AA
Text on card6.97:1AA
Primary button11.04:1AAA
Secondary button6.94:1AA
Muted text6.85:1AA
Accent7.58:1AAA
Destructive6.71:1AA
Dark mode
Text on background5.98:1AA
Text on card6.97:1AA
Primary button11.04:1AAA
Secondary button6.94:1AA
Muted text6.85:1AA
Accent7.58:1AAA
Destructive6.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.001 247.837);
  --foreground: oklch(0.49 0.01 248.029);
  --muted: oklch(0.922 0.005 247.882);
  --muted-foreground: oklch(0.414 0.019 248.296);
  --popover: oklch(0.961 0.004 247.862);
  --popover-foreground: oklch(0.397 0.008 248.02);
  --card: oklch(0.969 0.003 247.854);
  --card-foreground: oklch(0.444 0.009 248.025);
  --border: oklch(0.946 0.002 247.845);
  --input: oklch(0.923 0.003 247.857);
  --primary: oklch(0.803 0.159 69.809);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.393 0.041 75.44);
  --secondary-foreground: oklch(0.894 0.021 76.527);
  --accent: oklch(0.865 0.013 247.977);
  --accent-foreground: oklch(0.346 0.022 248.464);
  --destructive: oklch(0.444 0.164 30.025);
  --destructive-foreground: oklch(0.931 0.03 23.925);
  --ring: oklch(0.803 0.159 69.809);
  --chart-1: oklch(0.803 0.159 69.809);
  --chart-2: oklch(0.393 0.041 75.44);
  --chart-3: oklch(0.865 0.013 247.977);
  --chart-4: oklch(0.425 0.045 75.398);
  --chart-5: oklch(0.807 0.162 69.396);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.984 0.001 247.837);
  --foreground: oklch(0.49 0.01 248.029);
  --muted: oklch(0.922 0.005 247.882);
  --muted-foreground: oklch(0.414 0.019 248.296);
  --popover: oklch(0.961 0.004 247.862);
  --popover-foreground: oklch(0.397 0.008 248.02);
  --card: oklch(0.969 0.003 247.854);
  --card-foreground: oklch(0.444 0.009 248.025);
  --border: oklch(0.946 0.002 247.845);
  --input: oklch(0.923 0.003 247.857);
  --primary: oklch(0.803 0.159 69.809);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.393 0.041 75.44);
  --secondary-foreground: oklch(0.894 0.021 76.527);
  --accent: oklch(0.865 0.013 247.977);
  --accent-foreground: oklch(0.346 0.022 248.464);
  --destructive: oklch(0.444 0.164 30.025);
  --destructive-foreground: oklch(0.931 0.03 23.925);
  --ring: oklch(0.803 0.159 69.809);
  --chart-1: oklch(0.803 0.159 69.809);
  --chart-2: oklch(0.393 0.041 75.44);
  --chart-3: oklch(0.865 0.013 247.977);
  --chart-4: oklch(0.425 0.045 75.398);
  --chart-5: oklch(0.807 0.162 69.396);
}