Brown is a shadcn/ui theme built around a vivid deep green primary color (#414a02) with muted light green accents (#c8caba). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep green primary (#414a02) on a green-tinted background (#0f1004).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #0f1004black |
| Foreground | #121306black | #fdfdfcwhite |
| Card | #fcfdf7snow | #121405black |
| Card foreground | #0e0f05black | #ffffffwhite |
| Popover | #fcfdf7snow | #121405black |
| Popover foreground | #0e0f05black | #ffffffwhite |
| Primary | #414a02darkolivegreen | #414a02darkolivegreen |
| Primary foreground | #dbf820yellow | #dbf820yellow |
| Secondary | #d5d5d2lightgrey | #202117black |
| Secondary foreground | #3c3d38darkslategray | #bec2a8silver |
| Muted | #f4f5efwhitesmoke | #0f100ablack |
| Muted foreground | #67685edimgray | #9fa197darkgray |
| Accent | #c8cabasilver | #404427darkslategray |
| Accent foreground | #2d2e23darkslategray | #d8dcc1lightgrey |
| Destructive | #ba4908chocolate | #eb5c0aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #414a02darkolivegreen | #414a02darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.50:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 5.18:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 7.90:1 | AAA |
| Secondary button | 8.90:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 7.19:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Brown in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 112.617);
--foreground: oklch(0.182 0.025 114.949);
--muted: oklch(0.968 0.008 112.694);
--muted-foreground: oklch(0.515 0.015 113.101);
--popover: oklch(0.991 0.008 112.691);
--popover-foreground: oklch(0.165 0.022 114.508);
--card: oklch(0.991 0.008 112.691);
--card-foreground: oklch(0.165 0.022 114.508);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.388 0.089 117.915);
--primary-foreground: oklch(0.927 0.21 118.034);
--secondary: oklch(0.873 0.005 112.645);
--secondary-foreground: oklch(0.358 0.008 112.96);
--accent: oklch(0.832 0.022 113.034);
--accent-foreground: oklch(0.297 0.019 113.709);
--destructive: oklch(0.55 0.16 43.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.388 0.089 117.915);
--chart-1: oklch(0.388 0.089 117.915);
--chart-2: oklch(0.873 0.005 112.645);
--chart-3: oklch(0.832 0.022 113.034);
--chart-4: oklch(0.896 0.004 112.625);
--chart-5: oklch(0.392 0.09 118.016);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.168 0.025 114.714);
--foreground: oklch(0.994 0.002 112.573);
--muted: oklch(0.168 0.012 113.847);
--muted-foreground: oklch(0.703 0.014 112.923);
--popover: oklch(0.185 0.029 115.17);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.185 0.029 115.17);
--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.388 0.089 117.915);
--primary-foreground: oklch(0.927 0.21 118.034);
--secondary: oklch(0.242 0.017 113.886);
--secondary-foreground: oklch(0.803 0.035 113.346);
--accent: oklch(0.375 0.046 114.848);
--accent-foreground: oklch(0.884 0.035 113.286);
--destructive: oklch(0.653 0.192 42.544);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.388 0.089 117.915);
--chart-1: oklch(0.388 0.089 117.915);
--chart-2: oklch(0.242 0.017 113.886);
--chart-3: oklch(0.375 0.046 114.848);
--chart-4: oklch(0.278 0.021 113.977);
--chart-5: oklch(0.392 0.09 118.016);
}