Yin is a shadcn/ui theme built around a muted light teal primary color (#d3dfdc) with neutral gray accents (#ccd1d0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#d3dfdc) on a teal-tinted background (#04100d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04100dblack |
| Foreground | #020806black | #f5faf9mintcream |
| Card | #ffffffwhite | #04100dblack |
| Card foreground | #020806black | #f5faf9mintcream |
| Popover | #ffffffwhite | #04100dblack |
| Popover foreground | #020806black | #f5faf9mintcream |
| Primary | #d3dfdcgainsboro | #d3dfdcgainsboro |
| Primary foreground | #364a45darkslategray | #364a45darkslategray |
| Secondary | #ccd1d0lightgrey | #1f2826darkslategray |
| Secondary foreground | #333837darkslategray | #b5c5c0silver |
| Muted | #ecefeewhitesmoke | #101313black |
| Muted foreground | #536560dimgray | #9aaca7darkgray |
| Accent | #ccd1d0lightgrey | #1f2826darkslategray |
| Accent foreground | #333837darkslategray | #b5c5c0silver |
| Destructive | #c12110firebrick | #d42511firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3dfdcgainsboro | #d3dfdcgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 5.32:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 18.34:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 8.42:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 5.15:1 | AA |
Paste this into your globals.css to use Yin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.014 178.883);
--muted: oklch(0.949 0.004 178.674);
--muted-foreground: oklch(0.49 0.024 177.323);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.014 178.883);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.014 178.883);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.014 178.332);
--primary-foreground: oklch(0.39 0.027 176.593);
--secondary: oklch(0.856 0.006 178.596);
--secondary-foreground: oklch(0.336 0.008 178.11);
--accent: oklch(0.856 0.006 178.596);
--accent-foreground: oklch(0.336 0.008 178.11);
--destructive: oklch(0.524 0.196 30.516);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.014 178.332);
--chart-1: oklch(0.893 0.014 178.332);
--chart-2: oklch(0.856 0.006 178.596);
--chart-3: oklch(0.856 0.006 178.596);
--chart-4: oklch(0.88 0.005 178.631);
--chart-5: oklch(0.895 0.016 178.247);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.02 176.23);
--foreground: oklch(0.981 0.006 178.603);
--muted: oklch(0.185 0.005 177.929);
--muted-foreground: oklch(0.73 0.022 177.906);
--popover: oklch(0.16 0.02 176.23);
--popover-foreground: oklch(0.981 0.006 178.603);
--card: oklch(0.16 0.02 176.23);
--card-foreground: oklch(0.981 0.006 178.603);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.014 178.332);
--primary-foreground: oklch(0.39 0.027 176.593);
--secondary: oklch(0.268 0.013 177.333);
--secondary-foreground: oklch(0.809 0.018 178.117);
--accent: oklch(0.268 0.013 177.333);
--accent-foreground: oklch(0.809 0.018 178.117);
--destructive: oklch(0.561 0.211 30.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.014 178.332);
--chart-1: oklch(0.893 0.014 178.332);
--chart-2: oklch(0.268 0.013 177.333);
--chart-3: oklch(0.268 0.013 177.333);
--chart-4: oklch(0.301 0.015 177.259);
--chart-5: oklch(0.895 0.016 178.247);
}