Macaroon is a shadcn/ui theme built around a neutral gray primary color (#564d4f) with neutral gray accents (#4d4f56). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#564d4f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0c0406black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #080204black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0c0406black | #ffffffwhite |
| Primary | #564d4fdarkslategray | #564d4fdarkslategray |
| Primary foreground | #ece9ealinen | #ece9ealinen |
| Secondary | #4f564ddarkslategray | #4f564ddarkslategray |
| Secondary foreground | #eaece9linen | #eaece9linen |
| Muted | #d9e7d4gainsboro | #1d2b18black |
| Muted foreground | #4c4e4bdarkslategray | #b2b4b1darkgray |
| Accent | #4d4f56darkslategray | #4d4f56darkslategray |
| Accent foreground | #e9eaeclavender | #e9eaeclavender |
| Destructive | #cb4c15chocolate | #e9672fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #564d4fdarkslategray | #564d4fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 4.58:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.78:1 | AA |
| Secondary button | 6.33:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Macaroon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.02 358.815);
--muted: oklch(0.914 0.03 137.267);
--muted-foreground: oklch(0.421 0.006 137.221);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.02 358.815);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.017 358.635);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.43 0.014 359.674);
--primary-foreground: oklch(0.937 0.003 358.868);
--secondary: oklch(0.445 0.018 137.288);
--secondary-foreground: oklch(0.94 0.004 137.199);
--accent: oklch(0.429 0.012 269.864);
--accent-foreground: oklch(0.937 0.003 270.099);
--destructive: oklch(0.582 0.173 39.899);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.43 0.014 359.674);
--chart-1: oklch(0.43 0.014 359.674);
--chart-2: oklch(0.445 0.018 137.288);
--chart-3: oklch(0.429 0.012 269.864);
--chart-4: oklch(0.474 0.02 137.289);
--chart-5: oklch(0.426 0.021 0.129);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.269 0.039 137.637);
--muted-foreground: oklch(0.767 0.005 137.204);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.43 0.014 359.674);
--primary-foreground: oklch(0.937 0.003 358.868);
--secondary: oklch(0.445 0.018 137.288);
--secondary-foreground: oklch(0.94 0.004 137.199);
--accent: oklch(0.429 0.012 269.864);
--accent-foreground: oklch(0.937 0.003 270.099);
--destructive: oklch(0.666 0.175 41.58);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.43 0.014 359.674);
--chart-1: oklch(0.43 0.014 359.674);
--chart-2: oklch(0.445 0.018 137.288);
--chart-3: oklch(0.429 0.012 269.864);
--chart-4: oklch(0.474 0.02 137.289);
--chart-5: oklch(0.426 0.021 0.129);
}