Ayu Mojave is a shadcn/ui theme built around a vivid yellow primary color (#ffcc66) with neutral gray accents (#4c4e57). The light mode uses a neutral background (#28292e). Dark mode keeps the vivid yellow primary (#ffcc66) on a neutral background (#28292e).
| Token | Light | Dark |
|---|---|---|
| Background | #28292edarkslategray | #28292edarkslategray |
| Foreground | #d9d7celightgrey | #d9d7celightgrey |
| Card | #242429darkslategray | #242429darkslategray |
| Card foreground | #e4e3dcgainsboro | #e4e3dcgainsboro |
| Popover | #212226black | #212226black |
| Popover foreground | #efefeblinen | #efefeblinen |
| Primary | #ffcc66sandybrown | #ffcc66sandybrown |
| Primary foreground | #332200black | #332200black |
| Secondary | #53462ddarkolivegreen | #53462ddarkolivegreen |
| Secondary foreground | #e4ddcdgainsboro | #e4ddcdgainsboro |
| Muted | #2f313cdarkslategray | #2f313cdarkslategray |
| Muted foreground | #acafbedarkgray | #acafbedarkgray |
| Accent | #4c4e57darkslategray | #4c4e57darkslategray |
| Accent foreground | #e9eaeclavender | #e9eaeclavender |
| Destructive | #f03619orangered | #f03619orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #383838darkslategray | #383838darkslategray |
| Input | #404040darkslategray | #404040darkslategray |
| Ring | #ffcc66sandybrown | #ffcc66sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.01:1 | AAA |
| Text on card | 11.96:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 3.99:1 | AA Large |
| Text on background | 10.01:1 | AAA |
| Text on card | 11.96:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 6.89:1 | AA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Ayu Mojave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.283 0.009 276.783);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.317 0.019 276.337);
--muted-foreground: oklch(0.757 0.021 276.856);
--popover: oklch(0.253 0.008 276.809);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.263 0.008 276.8);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--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.425 0.016 276.715);
--accent-foreground: oklch(0.936 0.003 277.212);
--destructive: oklch(0.623 0.225 31.551);
--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.425 0.016 276.715);
--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.283 0.009 276.783);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.317 0.019 276.337);
--muted-foreground: oklch(0.757 0.021 276.856);
--popover: oklch(0.253 0.008 276.809);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.263 0.008 276.8);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--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.425 0.016 276.715);
--accent-foreground: oklch(0.936 0.003 277.212);
--destructive: oklch(0.623 0.225 31.551);
--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.425 0.016 276.715);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.874 0.136 82.598);
}