Yak is a shadcn/ui theme built around a muted purple primary color (#a2679f) with muted teal accents (#679fa2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#a2679f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #160315black | #fbf9fbsnow |
| Card | #ffffffwhite | #000000black |
| Card foreground | #160315black | #fbf9fbsnow |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #160315black | #fbf9fbsnow |
| Primary | #a2679frosybrown | #a2679frosybrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9fa267darkkhaki | #9fa267darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e4e4d7gainsboro | #27281bblack |
| Muted foreground | #44453bdarkslategray | #c4c4basilver |
| Accent | #679fa2cadetblue | #679fa2cadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #7f0e06maroon | #f53b2eorangered |
| Destructive foreground | #fcbfbblightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2679frosybrown | #a2679frosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 4.21:1 | AA Large |
| Secondary button | 7.83:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 4.21:1 | AA Large |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Yak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.051 329.576);
--muted: oklch(0.916 0.018 109.065);
--muted-foreground: oklch(0.386 0.017 109.499);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.051 329.576);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.051 329.576);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.597 0.107 328.562);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.696 0.08 110.738);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.665 0.059 200.063);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.381 0.146 29.814);
--destructive-foreground: oklch(0.859 0.07 23.311);
--ring: oklch(0.597 0.107 328.562);
--chart-1: oklch(0.597 0.107 328.562);
--chart-2: oklch(0.696 0.08 110.738);
--chart-3: oklch(0.665 0.059 200.063);
--chart-4: oklch(0.715 0.075 110.567);
--chart-5: oklch(0.597 0.12 328.73);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.004 327.078);
--muted: oklch(0.271 0.023 110.244);
--muted-foreground: oklch(0.818 0.014 109.025);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.004 327.078);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.004 327.078);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.597 0.107 328.562);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.696 0.08 110.738);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.665 0.059 200.063);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.637 0.224 29.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.107 328.562);
--chart-1: oklch(0.597 0.107 328.562);
--chart-2: oklch(0.696 0.08 110.738);
--chart-3: oklch(0.665 0.059 200.063);
--chart-4: oklch(0.715 0.075 110.567);
--chart-5: oklch(0.597 0.12 328.73);
}