Yam is a shadcn/ui theme built around a light green primary color (#e6faee) with near-white accents (#e6eae8). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#e6faee) on a green-tinted background (#060e0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060e0ablack |
| Foreground | #010402black | #f8fcfamintcream |
| Card | #f7fdf9mintcream | #08110cblack |
| Card foreground | #000000black | #fbfdfcwhite |
| Popover | #fbfefcwhite | #060e0ablack |
| Popover foreground | #010402black | #f8fcfamintcream |
| Primary | #e6faeehoneydew | #e6faeehoneydew |
| Primary foreground | #0c3b20darkgreen | #0c3b20darkgreen |
| Secondary | #e6eae8lavender | #2a372fdarkslategray |
| Secondary foreground | #4a554edarkslategray | #c2d0c8silver |
| Muted | #e4f1eahoneydew | #0e1b13black |
| Muted foreground | #505351darkslategray | #acafaddarkgray |
| Accent | #e6eae8lavender | #2a372fdarkslategray |
| Accent foreground | #4a554edarkslategray | #c2d0c8silver |
| Destructive | #d5520bchocolate | #f4712atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6faeehoneydew | #e6faeehoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 11.56:1 | AAA |
| Secondary button | 6.39:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 6.39:1 | AA |
| Destructive | 4.16:1 | AA Large |
| Text on background | 18.87:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 11.56:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 7.21:1 | AAA |
Paste this into your globals.css to use Yam in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 160.916);
--foreground: oklch(0.1 0.018 160.924);
--muted: oklch(0.947 0.017 160.582);
--muted-foreground: oklch(0.439 0.005 160.733);
--popover: oklch(0.994 0.004 160.916);
--popover-foreground: oklch(0.1 0.018 160.924);
--card: oklch(0.988 0.008 160.816);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.966 0.026 160.369);
--primary-foreground: oklch(0.313 0.069 153.503);
--secondary: oklch(0.933 0.004 160.906);
--secondary-foreground: oklch(0.436 0.017 160.035);
--accent: oklch(0.933 0.004 160.906);
--accent-foreground: oklch(0.436 0.017 160.035);
--destructive: oklch(0.605 0.179 41.869);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.966 0.026 160.369);
--chart-1: oklch(0.966 0.026 160.369);
--chart-2: oklch(0.933 0.004 160.906);
--chart-3: oklch(0.933 0.004 160.906);
--chart-4: oklch(0.955 0.003 160.944);
--chart-5: oklch(0.967 0.027 160.339);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.016 159.794);
--foreground: oklch(0.987 0.005 160.889);
--muted: oklch(0.207 0.024 157.885);
--muted-foreground: oklch(0.751 0.005 160.87);
--popover: oklch(0.154 0.016 159.794);
--popover-foreground: oklch(0.987 0.005 160.889);
--card: oklch(0.168 0.018 158.405);
--card-foreground: oklch(0.994 0.003 160.952);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.966 0.026 160.369);
--primary-foreground: oklch(0.313 0.069 153.503);
--secondary: oklch(0.322 0.021 159.352);
--secondary-foreground: oklch(0.846 0.019 160.482);
--accent: oklch(0.322 0.021 159.352);
--accent-foreground: oklch(0.846 0.019 160.482);
--destructive: oklch(0.695 0.18 44.907);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.966 0.026 160.369);
--chart-1: oklch(0.966 0.026 160.369);
--chart-2: oklch(0.322 0.021 159.352);
--chart-3: oklch(0.322 0.021 159.352);
--chart-4: oklch(0.353 0.024 159.299);
--chart-5: oklch(0.967 0.027 160.339);
}