Ayu Mirage is a shadcn/ui theme built around a vivid yellow primary color (#ffcc66) with muted blue accents (#3c465d). The light mode uses a blue-tinted background (#1e232f). Dark mode keeps the vivid yellow primary (#ffcc66) on a blue-tinted background (#1e232f).
| Token | Light | Dark |
|---|---|---|
| Background | #1e232fdarkslategray | #1e232fdarkslategray |
| Foreground | #cccac2silver | #cccac2silver |
| Card | #1a1e28black | #1a1e28black |
| Card foreground | #d8d6d0lightgrey | #d8d6d0lightgrey |
| Popover | #181c25black | #181c25black |
| Popover foreground | #e3e2degainsboro | #e3e2degainsboro |
| Primary | #ffcc66sandybrown | #ffcc66sandybrown |
| Primary foreground | #332200black | #332200black |
| Secondary | #53462ddarkolivegreen | #53462ddarkolivegreen |
| Secondary foreground | #e4ddcdgainsboro | #e4ddcdgainsboro |
| Muted | #2b2e36darkslategray | #2b2e36darkslategray |
| Muted foreground | #a6acb9darkgray | #a6acb9darkgray |
| Accent | #3c465ddarkslategray | #3c465ddarkslategray |
| Accent foreground | #e0e3eblavender | #e0e3eblavender |
| Destructive | #f05338tomato | #f05338tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2d3139darkslategray | #2d3139darkslategray |
| Input | #343842darkslategray | #343842darkslategray |
| Ring | #ffcc66sandybrown | #ffcc66sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.58:1 | AAA |
| Text on card | 11.44:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 3.49:1 | AA Large |
| Text on background | 9.58:1 | AAA |
| Text on card | 11.44:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.95:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Ayu Mirage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.256 0.024 266.653);
--foreground: oklch(0.838 0.011 95.189);
--muted: oklch(0.302 0.016 267.044);
--muted-foreground: oklch(0.745 0.02 267.243);
--popover: oklch(0.226 0.019 266.717);
--popover-foreground: oklch(0.913 0.006 95.112);
--card: oklch(0.236 0.021 266.694);
--card-foreground: oklch(0.876 0.009 95.149);
--border: oklch(0.311 0.016 267.039);
--input: oklch(0.34 0.018 267.025);
--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.394 0.042 266.49);
--accent-foreground: oklch(0.916 0.011 267.346);
--destructive: oklch(0.653 0.197 32.334);
--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.394 0.042 266.49);
--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.256 0.024 266.653);
--foreground: oklch(0.838 0.011 95.189);
--muted: oklch(0.302 0.016 267.044);
--muted-foreground: oklch(0.745 0.02 267.243);
--popover: oklch(0.226 0.019 266.717);
--popover-foreground: oklch(0.913 0.006 95.112);
--card: oklch(0.236 0.021 266.694);
--card-foreground: oklch(0.876 0.009 95.149);
--border: oklch(0.311 0.016 267.039);
--input: oklch(0.34 0.018 267.025);
--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.394 0.042 266.49);
--accent-foreground: oklch(0.916 0.011 267.346);
--destructive: oklch(0.653 0.197 32.334);
--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.394 0.042 266.49);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.874 0.136 82.598);
}