Soy is a shadcn/ui theme built around a muted deep yellow primary color (#312f26) with muted light yellow accents (#dddcd4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#312f26) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080702black |
| Foreground | #040301black | #fbfaf9snow |
| Card | #fcfcfcsnow | #0c0a04black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080702black |
| Popover foreground | #040301black | #fbfaf9snow |
| Primary | #312f26darkslategray | #312f26darkslategray |
| Primary foreground | #ccc9bdsilver | #ccc9bdsilver |
| Secondary | #e7e6e4gainsboro | #32312fdarkslategray |
| Secondary foreground | #504e49darkslategray | #cbcac8lightgrey |
| Muted | #ebe8dbantiquewhite | #242114black |
| Muted foreground | #5a5a58dimgray | #a7a6a5darkgray |
| Accent | #dddcd4gainsboro | #48463cdarkslategray |
| Accent foreground | #474438darkslategray | #dfddd8gainsboro |
| Destructive | #b41108firebrick | #f42015red |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #312f26darkslategray | #312f26darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 6.66:1 | AA |
| Muted text | 5.61:1 | AA |
| Accent | 7.07:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Soy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.012 99.118);
--muted: oklch(0.929 0.017 95.243);
--muted-foreground: oklch(0.467 0.002 95.093);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.012 99.118);
--card: oklch(0.992 0 161.565);
--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.303 0.016 95.56);
--primary-foreground: oklch(0.835 0.017 95.264);
--secondary: oklch(0.925 0.002 95.063);
--secondary-foreground: oklch(0.425 0.008 95.25);
--accent: oklch(0.892 0.01 95.165);
--accent-foreground: oklch(0.387 0.02 95.561);
--destructive: oklch(0.49 0.193 29.464);
--destructive-foreground: oklch(0.969 0.014 21.08);
--ring: oklch(0.303 0.016 95.56);
--chart-1: oklch(0.303 0.016 95.56);
--chart-2: oklch(0.925 0.002 95.063);
--chart-3: oklch(0.892 0.01 95.165);
--chart-4: oklch(0.948 0.002 95.053);
--chart-5: oklch(0.307 0.019 95.638);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.015 99.182);
--foreground: oklch(0.986 0.002 95.056);
--muted: oklch(0.246 0.023 95.773);
--muted-foreground: oklch(0.726 0.002 95.068);
--popover: oklch(0.126 0.015 99.182);
--popover-foreground: oklch(0.986 0.002 95.056);
--card: oklch(0.145 0.017 98.71);
--card-foreground: oklch(0.993 0.001 95.045);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.303 0.016 95.56);
--primary-foreground: oklch(0.835 0.017 95.264);
--secondary: oklch(0.314 0.004 95.186);
--secondary-foreground: oklch(0.84 0.004 95.085);
--accent: oklch(0.393 0.016 95.46);
--accent-foreground: oklch(0.898 0.007 95.126);
--destructive: oklch(0.617 0.24 29.375);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.303 0.016 95.56);
--chart-1: oklch(0.303 0.016 95.56);
--chart-2: oklch(0.314 0.004 95.186);
--chart-3: oklch(0.393 0.016 95.46);
--chart-4: oklch(0.345 0.005 95.191);
--chart-5: oklch(0.307 0.019 95.638);
}