Yarmulke is a shadcn/ui theme built around a light green primary color (#e4ead1) with muted light green accents (#e3e6db). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e4ead1) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #ffffffwhite | #030401black |
| Card foreground | #030401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #e4ead1gainsboro | #e4ead1gainsboro |
| Primary foreground | #15190bblack | #15190bblack |
| Secondary | #e3e6dbgainsboro | #151612black |
| Secondary foreground | #4d543bdarkolivegreen | #b1b6a5darkgray |
| Muted | #ebeee3beige | #1a1c11black |
| Muted foreground | #4d4e4bdarkslategray | #b3b4b1darkgray |
| Accent | #e3e6dbgainsboro | #151612black |
| Accent foreground | #4d543bdarkolivegreen | #b1b6a5darkgray |
| Destructive | #e15505orangered | #fa6814orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4ead1gainsboro | #e4ead1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 14.48:1 | AAA |
| Secondary button | 6.26:1 | AA |
| Muted text | 7.10:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 3.80:1 | AA Large |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 14.48:1 | AAA |
| Secondary button | 8.71:1 | AAA |
| Muted text | 8.25:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 7.08:1 | AAA |
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.101 0.013 118.644);
--muted: oklch(0.943 0.015 118.843);
--muted-foreground: oklch(0.422 0.005 118.776);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.013 118.644);
--card: oklch(1 0 180);
--card-foreground: oklch(0.101 0.013 118.644);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.927 0.034 119.212);
--primary-foreground: oklch(0.203 0.026 120.897);
--secondary: oklch(0.919 0.015 118.852);
--secondary-foreground: oklch(0.433 0.041 120.273);
--accent: oklch(0.919 0.015 118.852);
--accent-foreground: oklch(0.433 0.041 120.273);
--destructive: oklch(0.628 0.188 41.931);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.927 0.034 119.212);
--chart-1: oklch(0.927 0.034 119.212);
--chart-2: oklch(0.919 0.015 118.852);
--chart-3: oklch(0.919 0.015 118.852);
--chart-4: oklch(0.94 0.011 118.775);
--chart-5: oklch(0.929 0.037 119.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.012 118.639);
--foreground: oklch(0.993 0.001 118.587);
--muted: oklch(0.222 0.021 120.257);
--muted-foreground: oklch(0.768 0.004 118.666);
--popover: oklch(0.101 0.012 118.639);
--popover-foreground: oklch(0.993 0.001 118.587);
--card: oklch(0.101 0.012 118.639);
--card-foreground: oklch(0.993 0.001 118.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.927 0.034 119.212);
--primary-foreground: oklch(0.203 0.026 120.897);
--secondary: oklch(0.199 0.008 119.28);
--secondary-foreground: oklch(0.767 0.023 119.097);
--accent: oklch(0.199 0.008 119.28);
--accent-foreground: oklch(0.767 0.023 119.097);
--destructive: oklch(0.692 0.196 43.733);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.927 0.034 119.212);
--chart-1: oklch(0.927 0.034 119.212);
--chart-2: oklch(0.199 0.008 119.28);
--chart-3: oklch(0.199 0.008 119.28);
--chart-4: oklch(0.235 0.011 119.365);
--chart-5: oklch(0.929 0.037 119.261);
}