βui - Ayu Dark is a shadcn/ui theme built around a light yellow primary color (#e7e2d0) with muted deep blue accents (#2b394a). The light mode uses a blue-tinted background (#0f141a). Dark mode keeps the light yellow primary (#e7e2d0) on a blue-tinted background (#0f141a).
| Token | Light | Dark |
|---|---|---|
| Background | #0f141ablack | #0f141ablack |
| Foreground | #e7e2d0gainsboro | #e7e2d0gainsboro |
| Card | #0b0f13black | #0b0f13black |
| Card foreground | #efece1beige | #efece1beige |
| Popover | #090c10black | #090c10black |
| Popover foreground | #f8f7f2whitesmoke | #f8f7f2whitesmoke |
| Primary | #e7e2d0gainsboro | #e7e2d0gainsboro |
| Primary foreground | #584e2ddarkolivegreen | #584e2ddarkolivegreen |
| Secondary | #4e4832darkolivegreen | #4e4832darkolivegreen |
| Secondary foreground | #e1ded0gainsboro | #e1ded0gainsboro |
| Muted | #22262bdarkslategray | #22262bdarkslategray |
| Muted foreground | #9ba5b0darkgray | #9ba5b0darkgray |
| Accent | #2b394adarkslategray | #2b394adarkslategray |
| Accent foreground | #c8d2dflightgrey | #c8d2dflightgrey |
| Destructive | #e62200red | #e62200red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1c2127black | #1c2127black |
| Input | #222830darkslategray | #222830darkslategray |
| Ring | #e7e2d0gainsboro | #e7e2d0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 14.27:1 | AAA |
| Text on card | 16.26:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 6.10:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 4.58:1 | AA |
| Text on background | 14.27:1 | AAA |
| Text on card | 16.26:1 | AAA |
| Primary button | 6.35:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 6.10:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use βui - Ayu Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.188 0.015 253.642);
--foreground: oklch(0.911 0.024 94.136);
--muted: oklch(0.266 0.011 253.469);
--muted-foreground: oklch(0.717 0.02 253.396);
--popover: oklch(0.155 0.01 253.466);
--popover-foreground: oklch(0.975 0.007 93.942);
--card: oklch(0.166 0.011 253.597);
--card-foreground: oklch(0.943 0.016 94.039);
--border: oklch(0.244 0.014 253.546);
--input: oklch(0.274 0.017 253.563);
--primary: oklch(0.911 0.024 94.136);
--primary-foreground: oklch(0.426 0.051 94.431);
--secondary: oklch(0.4 0.035 94.489);
--secondary-foreground: oklch(0.898 0.018 94.073);
--accent: oklch(0.34 0.036 253.782);
--accent-foreground: oklch(0.861 0.021 253.375);
--destructive: oklch(0.591 0.228 31.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.911 0.024 94.136);
--chart-1: oklch(0.911 0.024 94.136);
--chart-2: oklch(0.4 0.035 94.489);
--chart-3: oklch(0.34 0.036 253.782);
--chart-4: oklch(0.432 0.039 94.491);
--chart-5: oklch(0.913 0.027 94.157);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.188 0.015 253.642);
--foreground: oklch(0.911 0.024 94.136);
--muted: oklch(0.266 0.011 253.469);
--muted-foreground: oklch(0.717 0.02 253.396);
--popover: oklch(0.155 0.01 253.466);
--popover-foreground: oklch(0.975 0.007 93.942);
--card: oklch(0.166 0.011 253.597);
--card-foreground: oklch(0.943 0.016 94.039);
--border: oklch(0.244 0.014 253.546);
--input: oklch(0.274 0.017 253.563);
--primary: oklch(0.911 0.024 94.136);
--primary-foreground: oklch(0.426 0.051 94.431);
--secondary: oklch(0.4 0.035 94.489);
--secondary-foreground: oklch(0.898 0.018 94.073);
--accent: oklch(0.34 0.036 253.782);
--accent-foreground: oklch(0.861 0.021 253.375);
--destructive: oklch(0.591 0.228 31.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.911 0.024 94.136);
--chart-1: oklch(0.911 0.024 94.136);
--chart-2: oklch(0.4 0.035 94.489);
--chart-3: oklch(0.34 0.036 253.782);
--chart-4: oklch(0.432 0.039 94.491);
--chart-5: oklch(0.913 0.027 94.157);
}