Local is a shadcn/ui theme built around a muted deep green primary color (#363b21) with muted deep green accents (#293b21). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#363b21) on a green-tinted background (#0a0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0a0c03black |
| Foreground | #070803black | #f9f9f5whitesmoke |
| Card | #fbfcf8snow | #0e1004black |
| Card foreground | #030401black | #fbfbf9snow |
| Popover | #fbfcf8snow | #0e1004black |
| Popover foreground | #030401black | #fbfbf9snow |
| Primary | #363b21darkslategray | #363b21darkslategray |
| Primary foreground | #d1d7b7lightgrey | #d1d7b7lightgrey |
| Secondary | #3b3321darkslategray | #3b3321darkslategray |
| Secondary foreground | #d7cdb7silver | #d7cdb7silver |
| Muted | #e5e2dcgainsboro | #23201ablack |
| Muted foreground | #5b5549darkolivegreen | #b6b1a4darkgray |
| Accent | #293b21darkslategray | #293b21darkslategray |
| Accent foreground | #c1d7b7silver | #c1d7b7silver |
| Destructive | #c9290dfirebrick | #f03514orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #363b21darkslategray | #363b21darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 18.63:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Local in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 114.879);
--foreground: oklch(0.128 0.016 115.444);
--muted: oklch(0.914 0.009 86.043);
--muted-foreground: oklch(0.451 0.021 86.093);
--popover: oklch(0.99 0.006 114.935);
--popover-foreground: oklch(0.102 0.013 115.444);
--card: oklch(0.99 0.006 114.935);
--card-foreground: oklch(0.102 0.013 115.444);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.339 0.042 117.181);
--primary-foreground: oklch(0.865 0.043 115.733);
--secondary: oklch(0.323 0.031 85.815);
--secondary-foreground: oklch(0.85 0.031 86.095);
--accent: oklch(0.328 0.049 136.214);
--accent-foreground: oklch(0.853 0.049 135.682);
--destructive: oklch(0.544 0.199 31.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.339 0.042 117.181);
--chart-1: oklch(0.339 0.042 117.181);
--chart-2: oklch(0.323 0.031 85.815);
--chart-3: oklch(0.328 0.049 136.214);
--chart-4: oklch(0.357 0.035 85.783);
--chart-5: oklch(0.344 0.046 117.391);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.021 115.904);
--foreground: oklch(0.981 0.005 114.923);
--muted: oklch(0.246 0.012 86.088);
--muted-foreground: oklch(0.761 0.018 86.081);
--popover: oklch(0.166 0.025 116.826);
--popover-foreground: oklch(0.988 0.004 114.89);
--card: oklch(0.166 0.025 116.826);
--card-foreground: oklch(0.988 0.004 114.89);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.339 0.042 117.181);
--primary-foreground: oklch(0.865 0.043 115.733);
--secondary: oklch(0.323 0.031 85.815);
--secondary-foreground: oklch(0.85 0.031 86.095);
--accent: oklch(0.328 0.049 136.214);
--accent-foreground: oklch(0.853 0.049 135.682);
--destructive: oklch(0.622 0.225 31.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.339 0.042 117.181);
--chart-1: oklch(0.339 0.042 117.181);
--chart-2: oklch(0.323 0.031 85.815);
--chart-3: oklch(0.328 0.049 136.214);
--chart-4: oklch(0.357 0.035 85.783);
--chart-5: oklch(0.344 0.046 117.391);
}