Yew is a shadcn/ui theme built around a deep green primary color (#3e711e) with deep pink accents (#711e3e). The light mode uses a neutral background (#f9fdf6). Dark mode keeps the deep green primary (#3e711e) on a green-tinted background (#070b04).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fdf6mintcream | #070b04black |
| Foreground | #070c03black | #fcfdfcwhite |
| Card | #f6fdf2honeydew | #090f05black |
| Card foreground | #040802black | #ffffffwhite |
| Popover | #f6fdf2honeydew | #090f05black |
| Popover foreground | #040802black | #ffffffwhite |
| Primary | #3e711edarkolivegreen | #3e711edarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1e3e71midnightblue | #1e3e71midnightblue |
| Secondary foreground | #cfdcf2gainsboro | #cfdcf2gainsboro |
| Muted | #dde0e4gainsboro | #1b1e22black |
| Muted foreground | #51555ddimgray | #a2a7aedarkgray |
| Accent | #711e3ebrown | #711e3ebrown |
| Accent foreground | #f2cfdcmistyrose | #f2cfdcmistyrose |
| Destructive | #8e2606saddlebrown | #f65423orangered |
| Destructive foreground | #fdd5c9bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e711edarkolivegreen | #3e711edarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 19.40:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.40:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 5.87:1 | AA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 3.38:1 | AA Large |
Paste this into your globals.css to use Yew in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.01 133.056);
--foreground: oklch(0.145 0.026 131.573);
--muted: oklch(0.905 0.006 259.941);
--muted-foreground: oklch(0.449 0.014 259.942);
--popover: oklch(0.985 0.015 133.092);
--popover-foreground: oklch(0.127 0.022 131.357);
--card: oklch(0.985 0.015 133.092);
--card-foreground: oklch(0.127 0.022 131.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.494 0.126 135.886);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.368 0.096 259.5);
--secondary-foreground: oklch(0.892 0.034 259.935);
--accent: oklch(0.378 0.119 1.291);
--accent-foreground: oklch(0.887 0.043 352.943);
--destructive: oklch(0.431 0.145 35.419);
--destructive-foreground: oklch(0.904 0.048 37.596);
--ring: oklch(0.494 0.126 135.886);
--chart-1: oklch(0.494 0.126 135.886);
--chart-2: oklch(0.368 0.096 259.5);
--chart-3: oklch(0.378 0.119 1.291);
--chart-4: oklch(0.394 0.104 259.506);
--chart-5: oklch(0.5 0.131 136.064);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.021 131.749);
--foreground: oklch(0.993 0.002 132.998);
--muted: oklch(0.233 0.009 259.934);
--muted-foreground: oklch(0.727 0.012 259.946);
--popover: oklch(0.159 0.024 132.616);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.024 132.616);
--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.494 0.126 135.886);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.368 0.096 259.5);
--secondary-foreground: oklch(0.892 0.034 259.935);
--accent: oklch(0.378 0.119 1.291);
--accent-foreground: oklch(0.887 0.043 352.943);
--destructive: oklch(0.661 0.206 36.3);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.494 0.126 135.886);
--chart-1: oklch(0.494 0.126 135.886);
--chart-2: oklch(0.368 0.096 259.5);
--chart-3: oklch(0.378 0.119 1.291);
--chart-4: oklch(0.394 0.104 259.506);
--chart-5: oklch(0.5 0.131 136.064);
}