Base16 Dark Marrakesh is a shadcn/ui theme built around a yellow primary color (#948e47) with vivid deep yellow accents (#694907). The light mode uses a yellow-tinted background (#221702). Dark mode keeps the yellow primary (#948e47) on a yellow-tinted background (#221702).
| Token | Light | Dark |
|---|---|---|
| Background | #221702black | #221702black |
| Foreground | #948e47olivedrab | #948e47olivedrab |
| Card | #181002black | #181002black |
| Card foreground | #a59e50darkkhaki | #a59e50darkkhaki |
| Popover | #130d01black | #130d01black |
| Popover foreground | #b1aa5ddarkkhaki | #b1aa5ddarkkhaki |
| Primary | #948e47olivedrab | #948e47olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #504d30darkolivegreen | #504d30darkolivegreen |
| Secondary foreground | #e2e1cfgainsboro | #e2e1cfgainsboro |
| Muted | #2b2822darkslategray | #2b2822darkslategray |
| Muted foreground | #b0a99bdarkgray | #b0a99bdarkgray |
| Accent | #694907saddlebrown | #694907saddlebrown |
| Accent foreground | #f9dfa9navajowhite | #f9dfa9navajowhite |
| Destructive | #ee3317orangered | #ee3317orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #362707black | #362707black |
| Input | #443008darkolivegreen | #443008darkolivegreen |
| Ring | #948e47olivedrab | #948e47olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 5.22:1 | AA |
| Text on card | 6.81:1 | AA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 6.33:1 | AA |
| Destructive | 4.11:1 | AA Large |
| Text on background | 5.22:1 | AA |
| Text on card | 6.81:1 | AA |
| Primary button | 6.19:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.31:1 | AA |
| Accent | 6.33:1 | AA |
| Destructive | 4.11:1 | AA Large |
Paste this into your globals.css to use Base16 Dark Marrakesh in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.213 0.04 83.797);
--foreground: oklch(0.636 0.093 104.037);
--muted: oklch(0.277 0.012 84.58);
--muted-foreground: oklch(0.738 0.022 84.593);
--popover: oklch(0.164 0.03 88.785);
--popover-foreground: oklch(0.727 0.099 103.974);
--card: oklch(0.18 0.033 86.652);
--card-foreground: oklch(0.689 0.101 104.043);
--border: oklch(0.283 0.051 81.014);
--input: oklch(0.325 0.06 80.255);
--primary: oklch(0.636 0.093 104.037);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.415 0.045 103.717);
--secondary-foreground: oklch(0.905 0.023 102.625);
--accent: oklch(0.429 0.086 77.71);
--accent-foreground: oklch(0.912 0.075 84.367);
--destructive: oklch(0.616 0.224 31.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.636 0.093 104.037);
--chart-1: oklch(0.636 0.093 104.037);
--chart-2: oklch(0.415 0.045 103.717);
--chart-3: oklch(0.429 0.086 77.71);
--chart-4: oklch(0.448 0.049 103.734);
--chart-5: oklch(0.644 0.099 104.078);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.213 0.04 83.797);
--foreground: oklch(0.636 0.093 104.037);
--muted: oklch(0.277 0.012 84.58);
--muted-foreground: oklch(0.738 0.022 84.593);
--popover: oklch(0.164 0.03 88.785);
--popover-foreground: oklch(0.727 0.099 103.974);
--card: oklch(0.18 0.033 86.652);
--card-foreground: oklch(0.689 0.101 104.043);
--border: oklch(0.283 0.051 81.014);
--input: oklch(0.325 0.06 80.255);
--primary: oklch(0.636 0.093 104.037);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.415 0.045 103.717);
--secondary-foreground: oklch(0.905 0.023 102.625);
--accent: oklch(0.429 0.086 77.71);
--accent-foreground: oklch(0.912 0.075 84.367);
--destructive: oklch(0.616 0.224 31.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.636 0.093 104.037);
--chart-1: oklch(0.636 0.093 104.037);
--chart-2: oklch(0.415 0.045 103.717);
--chart-3: oklch(0.429 0.086 77.71);
--chart-4: oklch(0.448 0.049 103.734);
--chart-5: oklch(0.644 0.099 104.078);
}