Espalier is a shadcn/ui theme built around a vivid teal primary color (#1fecef) with muted red accents (#bbafaf). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#1fecef) on a teal-tinted background (#050f0f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #050f0fblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbfefewhite | #050f0fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefewhite | #050f0fblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1fecefaqua | #1fecefaqua |
| Primary foreground | #043d3edarkslategray | #043d3edarkslategray |
| Secondary | #cccccclightgrey | #202222black |
| Secondary foreground | #333333darkslategray | #b9bbbcsilver |
| Muted | #f5ebeblinen | #0a1414black |
| Muted foreground | #594646darkolivegreen | #a6b9b9darkgray |
| Accent | #bbafafdarkgray | #2d3434darkslategray |
| Accent foreground | #1e1a1ablack | #c5cecelightgrey |
| Destructive | #ce3309firebrick | #f54514orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1fecefaqua | #1fecefaqua |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.68:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 5.12:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.20:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.12:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Espalier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 198.316);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.011 17.344);
--muted-foreground: oklch(0.413 0.026 18.265);
--popover: oklch(0.994 0.003 198.316);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 198.316);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.142 196.769);
--primary-foreground: oklch(0.328 0.054 196.677);
--secondary: oklch(0.845 0 164.055);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(0.764 0.014 17.455);
--accent-foreground: oklch(0.222 0.007 17.698);
--destructive: oklch(0.559 0.196 34.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.142 196.769);
--chart-1: oklch(0.857 0.142 196.769);
--chart-2: oklch(0.845 0 164.055);
--chart-3: oklch(0.764 0.014 17.455);
--chart-4: oklch(0.869 0 165.964);
--chart-5: oklch(0.866 0.145 196.79);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.016 196.971);
--foreground: oklch(1 0 180);
--muted: oklch(0.182 0.014 197.309);
--muted-foreground: oklch(0.772 0.021 197.974);
--popover: oklch(0.158 0.016 196.971);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.016 196.971);
--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.857 0.142 196.769);
--primary-foreground: oklch(0.328 0.054 196.677);
--secondary: oklch(0.25 0.002 198.246);
--secondary-foreground: oklch(0.791 0.003 198.305);
--accent: oklch(0.319 0.01 197.889);
--accent-foreground: oklch(0.844 0.009 198.199);
--destructive: oklch(0.644 0.219 34.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.142 196.769);
--chart-1: oklch(0.857 0.142 196.769);
--chart-2: oklch(0.25 0.002 198.246);
--chart-3: oklch(0.319 0.01 197.889);
--chart-4: oklch(0.282 0.002 198.239);
--chart-5: oklch(0.866 0.145 196.79);
}