Yeast is a shadcn/ui theme built around a muted green primary color (#9ab27b) with muted violet accents (#937bb2). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted green primary (#9ab27b) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #080b04black |
| Foreground | #060802black | #ffffffwhite |
| Card | #fafcf8snow | #080b04black |
| Card foreground | #060802black | #ffffffwhite |
| Popover | #fafcf8snow | #080b04black |
| Popover foreground | #060802black | #ffffffwhite |
| Primary | #9ab27bdarkseagreen | #9ab27bdarkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #937bb2lightslategray | #937bb2lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #d8d2dfgainsboro | #25202ddarkslategray |
| Muted foreground | #3e3649darkslategray | #beb6c9silver |
| Accent | #937bb2lightslategray | #937bb2lightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #d60e0ared | #e00e0bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9ab27bdarkseagreen | #9ab27bdarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 5.72:1 | AA |
| Destructive | 5.33:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 5.72:1 | AA |
| Destructive | 4.95:1 | AA |
Paste this into your globals.css to use Yeast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 125.805);
--foreground: oklch(0.128 0.02 124.844);
--muted: oklch(0.873 0.019 305.455);
--muted-foreground: oklch(0.35 0.034 304.424);
--popover: oklch(0.988 0.005 125.805);
--popover-foreground: oklch(0.128 0.02 124.844);
--card: oklch(0.988 0.005 125.805);
--card-foreground: oklch(0.128 0.02 124.844);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.731 0.079 127.29);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.626 0.084 303.917);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.626 0.084 303.917);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.554 0.223 29.04);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.079 127.29);
--chart-1: oklch(0.731 0.079 127.29);
--chart-2: oklch(0.626 0.084 303.917);
--chart-3: oklch(0.626 0.084 303.917);
--chart-4: oklch(0.654 0.077 304.147);
--chart-5: oklch(0.737 0.088 127.461);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.018 125.125);
--foreground: oklch(1 0 180);
--muted: oklch(0.255 0.025 304.407);
--muted-foreground: oklch(0.788 0.028 305.264);
--popover: oklch(0.144 0.018 125.125);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.018 125.125);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.731 0.079 127.29);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.626 0.084 303.917);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.626 0.084 303.917);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.573 0.23 29.055);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.079 127.29);
--chart-1: oklch(0.731 0.079 127.29);
--chart-2: oklch(0.626 0.084 303.917);
--chart-3: oklch(0.626 0.084 303.917);
--chart-4: oklch(0.654 0.077 304.147);
--chart-5: oklch(0.737 0.088 127.461);
}