Ayu One Dark Pro | Dark is a shadcn/ui theme built around a yellow primary color (#e6b451) with deep blue accents (#243247). The light mode uses a blue-tinted background (#0a0e14). Dark mode keeps the yellow primary (#e6b451) on a blue-tinted background (#0a0e14).
| Token | Light | Dark |
|---|---|---|
| Background | #0a0e14black | #0a0e14black |
| Foreground | #b3b1addarkgray | #b3b1addarkgray |
| Card | #070a0eblack | #070a0eblack |
| Card foreground | #bfbebasilver | #bfbebasilver |
| Popover | #05070ablack | #05070ablack |
| Popover foreground | #cccac7lightgrey | #cccac7lightgrey |
| Primary | #e6b451sandybrown | #e6b451sandybrown |
| Primary foreground | #040301black | #040301black |
| Secondary | #53462ddarkolivegreen | #53462ddarkolivegreen |
| Secondary foreground | #e4ddcdgainsboro | #e4ddcdgainsboro |
| Muted | #22252bdarkslategray | #22252bdarkslategray |
| Muted foreground | #9ba4b0darkgray | #9ba4b0darkgray |
| Accent | #243247darkslategray | #243247darkslategray |
| Accent foreground | #bfcbdflightsteelblue | #bfcbdflightsteelblue |
| Destructive | #f4261fcrimson | #f4261fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #161b23black | #161b23black |
| Input | #1b222cdarkslategray | #1b222cdarkslategray |
| Ring | #e6b451sandybrown | #e6b451sandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.01:1 | AAA |
| Text on card | 10.68:1 | AAA |
| Primary button | 10.84:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 4.06:1 | AA Large |
| Text on background | 9.01:1 | AAA |
| Text on card | 10.68:1 | AAA |
| Primary button | 10.84:1 | AAA |
| Secondary button | 6.79:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Ayu One Dark Pro | Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.164 0.014 258.354);
--foreground: oklch(0.761 0.006 84.572);
--muted: oklch(0.264 0.012 258.372);
--muted-foreground: oklch(0.715 0.021 258.365);
--popover: oklch(0.128 0.009 253.705);
--popover-foreground: oklch(0.84 0.004 84.564);
--card: oklch(0.141 0.01 255.609);
--card-foreground: oklch(0.801 0.005 84.568);
--border: oklch(0.219 0.017 258.358);
--input: oklch(0.25 0.021 258.353);
--primary: oklch(0.798 0.129 82.218);
--primary-foreground: oklch(0.1 0.015 92.325);
--secondary: oklch(0.401 0.043 84.052);
--secondary-foreground: oklch(0.898 0.022 84.593);
--accent: oklch(0.315 0.043 258.298);
--accent-foreground: oklch(0.839 0.03 258.369);
--destructive: oklch(0.621 0.237 28.753);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.129 82.218);
--chart-1: oklch(0.798 0.129 82.218);
--chart-2: oklch(0.401 0.043 84.052);
--chart-3: oklch(0.315 0.043 258.298);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.803 0.133 81.985);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.014 258.354);
--foreground: oklch(0.761 0.006 84.572);
--muted: oklch(0.264 0.012 258.372);
--muted-foreground: oklch(0.715 0.021 258.365);
--popover: oklch(0.128 0.009 253.705);
--popover-foreground: oklch(0.84 0.004 84.564);
--card: oklch(0.141 0.01 255.609);
--card-foreground: oklch(0.801 0.005 84.568);
--border: oklch(0.219 0.017 258.358);
--input: oklch(0.25 0.021 258.353);
--primary: oklch(0.798 0.129 82.218);
--primary-foreground: oklch(0.1 0.015 92.325);
--secondary: oklch(0.401 0.043 84.052);
--secondary-foreground: oklch(0.898 0.022 84.593);
--accent: oklch(0.315 0.043 258.298);
--accent-foreground: oklch(0.839 0.03 258.369);
--destructive: oklch(0.621 0.237 28.753);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.129 82.218);
--chart-1: oklch(0.798 0.129 82.218);
--chart-2: oklch(0.401 0.043 84.052);
--chart-3: oklch(0.315 0.043 258.298);
--chart-4: oklch(0.433 0.047 84.022);
--chart-5: oklch(0.803 0.133 81.985);
}