Brown is a shadcn/ui theme built around a light green primary color (#f2f7ed) with light green accents (#edf7ed). The light mode uses a neutral background (#fafcf8). Dark mode keeps the light green primary (#f2f7ed) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #030401black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f7fbf4whitesmoke | #050703black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafcf8snow | #030401black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f2f7edwhitesmoke | #f2f7edwhitesmoke |
| Primary foreground | #273517darkslategray | #273517darkslategray |
| Secondary | #f7f7edseashell | #f7f7edseashell |
| Secondary foreground | #353517darkslategray | #353517darkslategray |
| Muted | #e1e1dagainsboro | #25251eblack |
| Muted foreground | #444441darkslategray | #bebebbsilver |
| Accent | #edf7edhoneydew | #edf7edhoneydew |
| Accent foreground | #183517darkgreen | #183517darkgreen |
| Destructive | #cb4e0bchocolate | #e9590corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2f7edwhitesmoke | #f2f7edwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 11.65:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 12.28:1 | AAA |
| Destructive | 4.51:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 12.03:1 | AAA |
| Secondary button | 11.65:1 | AAA |
| Muted text | 8.30:1 | AAA |
| Accent | 12.28:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Brown in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 127.868);
--foreground: oklch(0 0 0);
--muted: oklch(0.909 0.01 105.804);
--muted-foreground: oklch(0.384 0.004 105.817);
--popover: oklch(0.989 0.007 127.868);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.01 127.908);
--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.97 0.014 127.96);
--primary-foreground: oklch(0.308 0.053 130.182);
--secondary: oklch(0.974 0.013 105.851);
--secondary-foreground: oklch(0.32 0.046 107.878);
--accent: oklch(0.967 0.017 144.979);
--accent-foreground: oklch(0.298 0.063 143.475);
--destructive: oklch(0.585 0.173 41.957);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.014 127.96);
--chart-1: oklch(0.97 0.014 127.96);
--chart-2: oklch(0.974 0.013 105.851);
--chart-3: oklch(0.967 0.017 144.979);
--chart-4: oklch(0.99 0.005 105.709);
--chart-5: oklch(0.971 0.015 127.973);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.013 126.909);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.013 106.467);
--muted-foreground: oklch(0.801 0.004 105.697);
--popover: oklch(0.099 0.013 126.909);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.016 126.909);
--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.97 0.014 127.96);
--primary-foreground: oklch(0.308 0.053 130.182);
--secondary: oklch(0.974 0.013 105.851);
--secondary-foreground: oklch(0.32 0.046 107.878);
--accent: oklch(0.967 0.017 144.979);
--accent-foreground: oklch(0.298 0.063 143.475);
--destructive: oklch(0.645 0.192 41.712);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.97 0.014 127.96);
--chart-1: oklch(0.97 0.014 127.96);
--chart-2: oklch(0.974 0.013 105.851);
--chart-3: oklch(0.967 0.017 144.979);
--chart-4: oklch(0.99 0.005 105.709);
--chart-5: oklch(0.971 0.015 127.973);
}