Yolk is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fefbfb). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#080303).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #080303black |
| Foreground | #160404black | #f9f6f6whitesmoke |
| Card | #fcf8f8snow | #0b0404black |
| Card foreground | #120303black | #fbf9f9snow |
| Popover | #fefbfbsnow | #080303black |
| Popover foreground | #160404black | #f9f6f6whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #e2dadagainsboro | #251d1dblack |
| Muted foreground | #6f5858dimgray | #a79090rosybrown |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #a83b10saddlebrown | #ed6d3btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Yolk in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.197);
--foreground: oklch(0.141 0.037 23.114);
--muted: oklch(0.894 0.009 17.32);
--muted-foreground: oklch(0.483 0.032 18.306);
--popover: oklch(0.991 0.002 17.197);
--popover-foreground: oklch(0.141 0.037 23.114);
--card: oklch(0.982 0.005 17.237);
--card-foreground: oklch(0.128 0.033 22.808);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.502 0.152 38.822);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.016 20.039);
--foreground: oklch(0.975 0.003 17.211);
--muted: oklch(0.241 0.012 18.051);
--muted-foreground: oklch(0.674 0.029 17.888);
--popover: oklch(0.105 0.016 20.039);
--popover-foreground: oklch(0.975 0.003 17.211);
--card: oklch(0.121 0.018 20.056);
--card-foreground: oklch(0.983 0.002 17.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.682 0.17 40.894);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}