Yarmulke is a shadcn/ui theme built around a muted yellow primary color (#9e9c57) with neutral gray accents (#e6e6e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#9e9c57) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #161504black | #fdfdfcwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #161504black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #161504black | #fdfdfcwhite |
| Primary | #9e9c57darkkhaki | #9e9c57darkkhaki |
| Primary foreground | #1a1a0eblack | #1a1a0eblack |
| Secondary | #e6e6e5gainsboro | #22211cblack |
| Secondary foreground | #4f4f4adarkslategray | #bfbeb0silver |
| Muted | #f1f0e0beige | #1f1f0eblack |
| Muted foreground | #4c4c38darkolivegreen | #c7c6b3silver |
| Accent | #e6e6e5gainsboro | #22211cblack |
| Accent foreground | #4f4f4adarkslategray | #bfbeb0silver |
| Destructive | #781e02maroon | #e13805orangered |
| Destructive foreground | #fdc1aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9e9c57darkkhaki | #9e9c57darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.37:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 7.61:1 | AAA |
| Accent | 6.60:1 | AA |
| Destructive | 6.76:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 9.64:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Yarmulke in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.192 0.032 107.415);
--muted: oklch(0.951 0.022 105.2);
--muted-foreground: oklch(0.41 0.031 106.027);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.192 0.032 107.415);
--card: oklch(1 0 180);
--card-foreground: oklch(0.192 0.032 107.415);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.678 0.091 106.851);
--primary-foreground: oklch(0.214 0.021 106.371);
--secondary: oklch(0.925 0.002 104.845);
--secondary-foreground: oklch(0.425 0.007 105.101);
--accent: oklch(0.925 0.002 104.845);
--accent-foreground: oklch(0.425 0.007 105.101);
--destructive: oklch(0.381 0.129 35.685);
--destructive-foreground: oklch(0.861 0.074 37.601);
--ring: oklch(0.678 0.091 106.851);
--chart-1: oklch(0.678 0.091 106.851);
--chart-2: oklch(0.925 0.002 104.845);
--chart-3: oklch(0.925 0.002 104.845);
--chart-4: oklch(0.948 0.001 104.833);
--chart-5: oklch(0.688 0.098 106.962);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 104.819);
--muted: oklch(0.234 0.029 106.705);
--muted-foreground: oklch(0.822 0.026 105.353);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 104.819);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 104.819);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.678 0.091 106.851);
--primary-foreground: oklch(0.214 0.021 106.371);
--secondary: oklch(0.248 0.011 105.546);
--secondary-foreground: oklch(0.799 0.019 105.218);
--accent: oklch(0.248 0.011 105.546);
--accent-foreground: oklch(0.799 0.019 105.218);
--destructive: oklch(0.597 0.211 34.33);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.678 0.091 106.851);
--chart-1: oklch(0.678 0.091 106.851);
--chart-2: oklch(0.248 0.011 105.546);
--chart-3: oklch(0.248 0.011 105.546);
--chart-4: oklch(0.282 0.013 105.59);
--chart-5: oklch(0.688 0.098 106.962);
}