Kosher is a shadcn/ui theme built around a muted deep yellow primary color (#535336) with muted deep purple accents (#533653). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the muted deep yellow primary (#535336) on a yellow-tinted background (#0f0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf6snow | #0f0f05black |
| Foreground | #0d0c03black | #fdfdfcwhite |
| Card | #fdfdf6snow | #0f0f05black |
| Card foreground | #0d0c03black | #fdfdfcwhite |
| Popover | #fdfdf6snow | #0f0f05black |
| Popover foreground | #0d0c03black | #fdfdfcwhite |
| Primary | #535336darkolivegreen | #535336darkolivegreen |
| Primary foreground | #e5e5d7gainsboro | #e5e5d7gainsboro |
| Secondary | #365353darkslategray | #365353darkslategray |
| Secondary foreground | #d7e5e5gainsboro | #d7e5e5gainsboro |
| Muted | #dee3e3gainsboro | #1c2121black |
| Muted foreground | #3b4e4edarkslategray | #b1c4c3silver |
| Accent | #533653darkslategray | #533653darkslategray |
| Accent foreground | #e5d7e5gainsboro | #e5d7e5gainsboro |
| Destructive | #b42d04firebrick | #fa420aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #535336darkolivegreen | #535336darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 6.41:1 | AA |
| Muted text | 8.93:1 | AAA |
| Accent | 7.49:1 | AAA |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Kosher in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 105.779);
--foreground: oklch(0.152 0.023 108.174);
--muted: oklch(0.912 0.006 195.86);
--muted-foreground: oklch(0.409 0.024 194.981);
--popover: oklch(0.993 0.009 105.779);
--popover-foreground: oklch(0.152 0.023 108.174);
--card: oklch(0.993 0.009 105.779);
--card-foreground: oklch(0.152 0.023 108.174);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.434 0.044 107.263);
--primary-foreground: oklch(0.917 0.018 105.967);
--secondary: oklch(0.42 0.034 194.596);
--secondary-foreground: oklch(0.911 0.015 195.69);
--accent: oklch(0.379 0.061 326.128);
--accent-foreground: oklch(0.894 0.024 325.284);
--destructive: oklch(0.507 0.177 34.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.434 0.044 107.263);
--chart-1: oklch(0.434 0.044 107.263);
--chart-2: oklch(0.42 0.034 194.596);
--chart-3: oklch(0.379 0.061 326.128);
--chart-4: oklch(0.452 0.038 194.578);
--chart-5: oklch(0.441 0.049 107.426);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.021 107.679);
--foreground: oklch(0.995 0.002 105.661);
--muted: oklch(0.244 0.008 195.407);
--muted-foreground: oklch(0.805 0.021 195.523);
--popover: oklch(0.165 0.021 107.679);
--popover-foreground: oklch(0.995 0.002 105.661);
--card: oklch(0.165 0.021 107.679);
--card-foreground: oklch(0.995 0.002 105.661);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.434 0.044 107.263);
--primary-foreground: oklch(0.917 0.018 105.967);
--secondary: oklch(0.42 0.034 194.596);
--secondary-foreground: oklch(0.911 0.015 195.69);
--accent: oklch(0.379 0.061 326.128);
--accent-foreground: oklch(0.894 0.024 325.284);
--destructive: oklch(0.649 0.226 34.574);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.434 0.044 107.263);
--chart-1: oklch(0.434 0.044 107.263);
--chart-2: oklch(0.42 0.034 194.596);
--chart-3: oklch(0.379 0.061 326.128);
--chart-4: oklch(0.452 0.038 194.578);
--chart-5: oklch(0.441 0.049 107.426);
}