Leafy is a shadcn/ui theme built around a deep teal primary color (#244c39) with muted light teal accents (#ceded7). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the deep teal primary (#244c39) on a teal-tinted background (#05100b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #05100bblack |
| Foreground | #010905black | #f5faf8mintcream |
| Card | #f8fcfamintcream | #06140dblack |
| Card foreground | #010503black | #f8fcfamintcream |
| Popover | #fcfdfdwhite | #05100bblack |
| Popover foreground | #010905black | #f5faf8mintcream |
| Primary | #244c39darkslategray | #244c39darkslategray |
| Primary foreground | #c1e1d2lightgrey | #c1e1d2lightgrey |
| Secondary | #ceded7lightgrey | #1f2924darkslategray |
| Secondary foreground | #32493edarkslategray | #b3c6bdsilver |
| Muted | #e2e9e6gainsboro | #161d1ablack |
| Muted foreground | #40544bdarkslategray | #abbfb6silver |
| Accent | #ceded7lightgrey | #1f2924darkslategray |
| Accent foreground | #32493edarkslategray | #b3c6bdsilver |
| Destructive | #ca4f0cchocolate | #f3712btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #244c39darkslategray | #244c39darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 6.58:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 4.53:1 | AA |
| Text on background | 18.39:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 6.91:1 | AA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 8.40:1 | AAA |
| Destructive | 7.18:1 | AAA |
Paste this into your globals.css to use Leafy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 166.851);
--foreground: oklch(0.127 0.022 167.183);
--muted: oklch(0.928 0.009 166.646);
--muted-foreground: oklch(0.425 0.028 164.965);
--popover: oklch(0.993 0.002 166.851);
--popover-foreground: oklch(0.127 0.022 167.183);
--card: oklch(0.987 0.004 166.794);
--card-foreground: oklch(0.101 0.017 167.183);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.381 0.055 161.944);
--primary-foreground: oklch(0.883 0.04 165.627);
--secondary: oklch(0.887 0.019 166.303);
--secondary-foreground: oklch(0.382 0.034 164.16);
--accent: oklch(0.887 0.019 166.303);
--accent-foreground: oklch(0.382 0.034 164.16);
--destructive: oklch(0.584 0.171 42.142);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.381 0.055 161.944);
--chart-1: oklch(0.381 0.055 161.944);
--chart-2: oklch(0.887 0.019 166.303);
--chart-3: oklch(0.887 0.019 166.303);
--chart-4: oklch(0.908 0.016 166.433);
--chart-5: oklch(0.385 0.059 161.525);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.021 164.83);
--foreground: oklch(0.981 0.007 166.715);
--muted: oklch(0.223 0.012 165.302);
--muted-foreground: oklch(0.786 0.025 166.031);
--popover: oklch(0.158 0.021 164.83);
--popover-foreground: oklch(0.981 0.007 166.715);
--card: oklch(0.174 0.024 163.244);
--card-foreground: oklch(0.987 0.005 166.78);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.381 0.055 161.944);
--primary-foreground: oklch(0.883 0.04 165.627);
--secondary: oklch(0.268 0.016 165.121);
--secondary-foreground: oklch(0.81 0.024 166.093);
--accent: oklch(0.268 0.016 165.121);
--accent-foreground: oklch(0.81 0.024 166.093);
--destructive: oklch(0.694 0.178 45.031);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.381 0.055 161.944);
--chart-1: oklch(0.381 0.055 161.944);
--chart-2: oklch(0.268 0.016 165.121);
--chart-3: oklch(0.268 0.016 165.121);
--chart-4: oklch(0.302 0.019 165.027);
--chart-5: oklch(0.385 0.059 161.525);
}