Lawn is a shadcn/ui theme built around a near-white primary color (#f8fcf9) with near-white accents (#fcf8fb). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the near-white primary (#f8fcf9) on a green-tinted background (#050a06).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #050a06black |
| Foreground | #030c05black | #f5faf6whitesmoke |
| Card | #f4faf6whitesmoke | #070d08black |
| Card foreground | #020803black | #f8fcf9mintcream |
| Popover | #f4faf6whitesmoke | #070d08black |
| Popover foreground | #020803black | #f8fcf9mintcream |
| Primary | #f8fcf9mintcream | #f8fcf9mintcream |
| Primary foreground | #1a4223darkslategray | #1a4223darkslategray |
| Secondary | #fcf8fbsnow | #fcf8fbsnow |
| Secondary foreground | #8b3777rebeccapurple | #8b3777rebeccapurple |
| Muted | #efe1eclavender | #1e101bblack |
| Muted foreground | #654e5fdimgray | #b19aacdarkgray |
| Accent | #fcf8fbsnow | #fcf8fbsnow |
| Accent foreground | #8b3777rebeccapurple | #8b3777rebeccapurple |
| Destructive | #7a300bsaddlebrown | #e15814chocolate |
| Destructive foreground | #f9d1bdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8fcf9mintcream | #f8fcf9mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 10.97:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 5.92:1 | AA |
| Accent | 6.84:1 | AA |
| Destructive | 6.61:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 10.97:1 | AAA |
| Secondary button | 6.84:1 | AA |
| Muted text | 7.06:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Lawn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 153.145);
--foreground: oklch(0.142 0.025 152.286);
--muted: oklch(0.924 0.021 333.606);
--muted-foreground: oklch(0.453 0.041 334.641);
--popover: oklch(0.98 0.009 153.095);
--popover-foreground: oklch(0.123 0.021 152.449);
--card: oklch(0.98 0.009 153.095);
--card-foreground: oklch(0.123 0.021 152.449);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.006 153.135);
--primary-foreground: oklch(0.34 0.069 149.116);
--secondary: oklch(0.983 0.006 333.346);
--secondary-foreground: oklch(0.475 0.138 337.619);
--accent: oklch(0.983 0.006 333.346);
--accent-foreground: oklch(0.475 0.138 337.619);
--destructive: oklch(0.408 0.113 42.717);
--destructive-foreground: oklch(0.891 0.053 48.107);
--ring: oklch(0.987 0.006 153.135);
--chart-1: oklch(0.987 0.006 153.135);
--chart-2: oklch(0.983 0.006 333.346);
--chart-3: oklch(0.983 0.006 333.346);
--chart-4: oklch(1.009 0.003 153.189);
--chart-5: oklch(0.987 0.007 153.127);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.013 152.819);
--foreground: oklch(0.98 0.008 153.107);
--muted: oklch(0.197 0.031 335.597);
--muted-foreground: oklch(0.713 0.037 334.053);
--popover: oklch(0.152 0.015 152.332);
--popover-foreground: oklch(0.987 0.005 153.152);
--card: oklch(0.152 0.015 152.332);
--card-foreground: oklch(0.987 0.005 153.152);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.987 0.006 153.135);
--primary-foreground: oklch(0.34 0.069 149.116);
--secondary: oklch(0.983 0.006 333.346);
--secondary-foreground: oklch(0.475 0.138 337.619);
--accent: oklch(0.983 0.006 333.346);
--accent-foreground: oklch(0.475 0.138 337.619);
--destructive: oklch(0.633 0.185 41.603);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.987 0.006 153.135);
--chart-1: oklch(0.987 0.006 153.135);
--chart-2: oklch(0.983 0.006 333.346);
--chart-3: oklch(0.983 0.006 333.346);
--chart-4: oklch(1.009 0.003 153.189);
--chart-5: oklch(0.987 0.007 153.127);
}