Ayu Adapta is a shadcn/ui theme built around a vivid yellow primary color (#ffcc66) with muted blue accents (#495f69). The light mode uses a blue-tinted background (#2a363c). Dark mode keeps the vivid yellow primary (#ffcc66) on a blue-tinted background (#2a363c).
| Token | Light | Dark |
|---|---|---|
| Background | #2a363cdarkslategray | #2a363cdarkslategray |
| Foreground | #d9d7celightgrey | #d9d7celightgrey |
| Card | #263136darkslategray | #263136darkslategray |
| Card foreground | #e4e3dcgainsboro | #e4e3dcgainsboro |
| Popover | #242e33darkslategray | #242e33darkslategray |
| Popover foreground | #efefeblinen | #efefeblinen |
| Primary | #ffcc66sandybrown | #ffcc66sandybrown |
| Primary foreground | #332200black | #332200black |
| Secondary | #53462ddarkolivegreen | #53462ddarkolivegreen |
| Secondary foreground | #e4ddcdgainsboro | #e4ddcdgainsboro |
| Muted | #364045darkslategray | #364045darkslategray |
| Muted foreground | #b5bfc5silver | #b5bfc5silver |
| Accent | #495f69dimgray | #495f69dimgray |
| Accent foreground | #f0f3f5whitesmoke | #f0f3f5whitesmoke |
| Destructive | #db2a0aorangered | #db2a0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b4145darkslategray | #3b4145darkslategray |
| Input | #42494ddarkslategray | #42494ddarkslategray |
| Ring | #ffcc66sandybrown | #ffcc66sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.60:1 | AAA |
| Text on card | 10.40:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 4.82:1 | AA |
| Text on background | 8.60:1 | AAA |
| Text on card | 10.40:1 | AAA |
| Primary button | 10.28:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 5.70:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 4.82:1 | AA |
Paste this into your globals.css to use Ayu Adapta in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.325 0.02 229.73);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.363 0.015 229.387);
--muted-foreground: oklch(0.799 0.014 228.986);
--popover: oklch(0.293 0.017 229.687);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.304 0.018 229.703);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.372 0.011 229.159);
--input: oklch(0.401 0.012 229.168);
--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.471 0.031 229.853);
--accent-foreground: oklch(0.962 0.004 228.803);
--destructive: oklch(0.576 0.215 31.722);
--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.471 0.031 229.853);
--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.325 0.02 229.73);
--foreground: oklch(0.879 0.013 96.343);
--muted: oklch(0.363 0.015 229.387);
--muted-foreground: oklch(0.799 0.014 228.986);
--popover: oklch(0.293 0.017 229.687);
--popover-foreground: oklch(0.951 0.005 96.233);
--card: oklch(0.304 0.018 229.703);
--card-foreground: oklch(0.915 0.009 96.286);
--border: oklch(0.372 0.011 229.159);
--input: oklch(0.401 0.012 229.168);
--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.471 0.031 229.853);
--accent-foreground: oklch(0.962 0.004 228.803);
--destructive: oklch(0.576 0.215 31.722);
--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.471 0.031 229.853);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.874 0.136 82.598);
}