Brown is a shadcn/ui theme built around a teal primary color (#4db392) with yellow accents (#b3924d). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#4db392) on a teal-tinted background (#050a09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #050a09black |
| Foreground | #04100cblack | #f9fbfamintcream |
| Card | #f6fdfbmintcream | #070e0cblack |
| Card foreground | #030c09black | #fcfdfdwhite |
| Popover | #f6fdfbmintcream | #070e0cblack |
| Popover foreground | #030c09black | #fcfdfdwhite |
| Primary | #4db392cadetblue | #4db392cadetblue |
| Primary foreground | #0f241dblack | #0f241dblack |
| Secondary | #924db3darkorchid | #924db3darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eeeceewhitesmoke | #121113black |
| Muted foreground | #564f59dimgray | #ada6b0darkgray |
| Accent | #b3924dperu | #b3924dperu |
| Accent foreground | #000000black | #000000black |
| Destructive | #731e0dmaroon | #eb6347tomato |
| Destructive foreground | #f7c4balightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4db392cadetblue | #4db392cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 5.35:1 | AA |
| Muted text | 6.71:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 6.30:1 | AA |
| Secondary button | 5.35:1 | AA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 6.38:1 | AA |
Paste this into your globals.css to use Brown in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 175.502);
--foreground: oklch(0.159 0.02 173.143);
--muted: oklch(0.945 0.004 315.411);
--muted-foreground: oklch(0.438 0.019 315.25);
--popover: oklch(0.989 0.008 175.387);
--popover-foreground: oklch(0.143 0.017 175.328);
--card: oklch(0.989 0.008 175.387);
--card-foreground: oklch(0.143 0.017 175.328);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.696 0.107 169.447);
--primary-foreground: oklch(0.239 0.03 171.164);
--secondary: oklch(0.546 0.165 313.806);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.676 0.097 84.821);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.371 0.122 33.101);
--destructive-foreground: oklch(0.864 0.06 31.347);
--ring: oklch(0.696 0.107 169.447);
--chart-1: oklch(0.696 0.107 169.447);
--chart-2: oklch(0.546 0.165 313.806);
--chart-3: oklch(0.676 0.097 84.821);
--chart-4: oklch(0.572 0.156 314.048);
--chart-5: oklch(0.705 0.113 168.998);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 175.755);
--foreground: oklch(0.986 0.002 175.557);
--muted: oklch(0.179 0.006 315.293);
--muted-foreground: oklch(0.733 0.016 315.334);
--popover: oklch(0.154 0.013 173.991);
--popover-foreground: oklch(0.993 0.001 175.587);
--card: oklch(0.154 0.013 173.991);
--card-foreground: oklch(0.993 0.001 175.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.696 0.107 169.447);
--primary-foreground: oklch(0.239 0.03 171.164);
--secondary: oklch(0.546 0.165 313.806);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.676 0.097 84.821);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.665 0.174 33.074);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.696 0.107 169.447);
--chart-1: oklch(0.696 0.107 169.447);
--chart-2: oklch(0.546 0.165 313.806);
--chart-3: oklch(0.676 0.097 84.821);
--chart-4: oklch(0.572 0.156 314.048);
--chart-5: oklch(0.705 0.113 168.998);
}