Ayu Mirage Mod for shadcn/ui

Ayu Mirage Mod is a shadcn/ui theme built around a muted blue primary color (#74879a) with muted blue accents (#3e4a60). The light mode uses a blue-tinted background (#202631). Dark mode keeps the muted blue primary (#74879a) on a blue-tinted background (#202631).

Color palette

TokenLightDark
Background
#202631darkslategray
#202631darkslategray
Foreground
#d9d7celightgrey
#d9d7celightgrey
Card
#1c212bblack
#1c212bblack
Card foreground
#e4e3dcgainsboro
#e4e3dcgainsboro
Popover
#1a1f28black
#1a1f28black
Popover foreground
#efefeblinen
#efefeblinen
Primary
#74879alightslategray
#74879alightslategray
Primary foreground
#000000black
#000000black
Secondary
#3c4044darkslategray
#3c4044darkslategray
Secondary foreground
#d6d9dbgainsboro
#d6d9dbgainsboro
Muted
#2d3139darkslategray
#2d3139darkslategray
Muted foreground
#a9afbcdarkgray
#a9afbcdarkgray
Accent
#3e4a60darkslategray
#3e4a60darkslategray
Accent foreground
#e3e6edlavender
#e3e6edlavender
Destructive
#ff1e05red
#ff1e05red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#30343bdarkslategray
#30343bdarkslategray
Input
#363b44darkslategray
#363b44darkslategray
Ring
#74879alightslategray
#74879alightslategray

Contrast

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

Light mode
Text on background10.52:1AAA
Text on card12.50:1AAA
Primary button5.68:1AA
Secondary button7.39:1AAA
Muted text5.93:1AA
Accent7.17:1AAA
Destructive3.85:1AA Large
Dark mode
Text on background10.52:1AAA
Text on card12.50:1AAA
Primary button5.68:1AA
Secondary button7.39:1AAA
Muted text5.93:1AA
Accent7.17:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.268 0.023 264.074);
  --foreground: oklch(0.879 0.013 96.343);
  --muted: oklch(0.312 0.016 264.317);
  --muted-foreground: oklch(0.754 0.019 264.455);
  --popover: oklch(0.238 0.019 264.111);
  --popover-foreground: oklch(0.951 0.005 96.233);
  --card: oklch(0.248 0.02 264.098);
  --card-foreground: oklch(0.915 0.009 96.286);
  --border: oklch(0.323 0.015 264.34);
  --input: oklch(0.351 0.017 264.332);
  --primary: oklch(0.615 0.037 248.423);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.368 0.008 248.055);
  --secondary-foreground: oklch(0.883 0.004 247.869);
  --accent: oklch(0.407 0.04 263.975);
  --accent-foreground: oklch(0.926 0.009 264.518);
  --destructive: oklch(0.635 0.251 30.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.037 248.423);
  --chart-1: oklch(0.615 0.037 248.423);
  --chart-2: oklch(0.368 0.008 248.055);
  --chart-3: oklch(0.407 0.04 263.975);
  --chart-4: oklch(0.397 0.009 248.059);
  --chart-5: oklch(0.614 0.044 248.538);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.268 0.023 264.074);
  --foreground: oklch(0.879 0.013 96.343);
  --muted: oklch(0.312 0.016 264.317);
  --muted-foreground: oklch(0.754 0.019 264.455);
  --popover: oklch(0.238 0.019 264.111);
  --popover-foreground: oklch(0.951 0.005 96.233);
  --card: oklch(0.248 0.02 264.098);
  --card-foreground: oklch(0.915 0.009 96.286);
  --border: oklch(0.323 0.015 264.34);
  --input: oklch(0.351 0.017 264.332);
  --primary: oklch(0.615 0.037 248.423);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.368 0.008 248.055);
  --secondary-foreground: oklch(0.883 0.004 247.869);
  --accent: oklch(0.407 0.04 263.975);
  --accent-foreground: oklch(0.926 0.009 264.518);
  --destructive: oklch(0.635 0.251 30.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.615 0.037 248.423);
  --chart-1: oklch(0.615 0.037 248.423);
  --chart-2: oklch(0.368 0.008 248.055);
  --chart-3: oklch(0.407 0.04 263.975);
  --chart-4: oklch(0.397 0.009 248.059);
  --chart-5: oklch(0.614 0.044 248.538);
}