#1A5319 is a shadcn/ui theme built around a deep green primary color (#1a5219) with muted light green accents (#c1d3c0). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#1a5219) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040c04black | #ffffffwhite |
| Card | #f8fcf8mintcream | #030303black |
| Card foreground | #020802black | #ffffffwhite |
| Popover | #fcfdfcwhite | #000000black |
| Popover foreground | #040c04black | #ffffffwhite |
| Primary | #1a5219darkgreen | #1a5219darkgreen |
| Primary foreground | #b5e9b4silver | #b5e9b4silver |
| Secondary | #dee3degainsboro | #161e15black |
| Secondary foreground | #414e41darkslategray | #a7bfa6darkgray |
| Muted | #d9e3d9gainsboro | #1c261cblack |
| Muted foreground | #4c624bdarkolivegreen | #9db49ddarkgray |
| Accent | #c1d3c0silver | #273f27darkslategray |
| Accent foreground | #283928darkslategray | #c0d8c0silver |
| Destructive | #dc2800orangered | #f85935tomato |
| Destructive foreground | #fff7f5floralwhite | #000000black |
| Border | #e5ebe5gainsboro | #1b231bblack |
| Input | #e5ebe5gainsboro | #1b231bblack |
| Ring | #1a5219darkgreen | #1a5219darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 6.75:1 | AA |
| Muted text | 5.04:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.57:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.70:1 | AA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 7.01:1 | AAA |
| Accent | 7.54:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use #1A5319 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.14 0.026 143.526);
--muted: oklch(0.905 0.017 144.968);
--muted-foreground: oklch(0.471 0.045 144.407);
--popover: oklch(0.993 0.003 145.081);
--popover-foreground: oklch(0.14 0.026 143.526);
--card: oklch(0.986 0.005 145.062);
--card-foreground: oklch(0.122 0.023 143.529);
--border: oklch(0.934 0.01 145.024);
--input: oklch(0.934 0.01 145.024);
--primary: oklch(0.389 0.107 142.944);
--primary-foreground: oklch(0.884 0.089 144.366);
--secondary: oklch(0.911 0.009 145.028);
--secondary-foreground: oklch(0.408 0.027 144.631);
--accent: oklch(0.847 0.032 144.836);
--accent-foreground: oklch(0.324 0.036 144.288);
--destructive: oklch(0.576 0.217 32.304);
--destructive-foreground: oklch(0.981 0.009 32.662);
--ring: oklch(0.389 0.107 142.944);
--chart-1: oklch(0.389 0.107 142.944);
--chart-2: oklch(0.911 0.009 145.028);
--chart-3: oklch(0.847 0.032 144.836);
--chart-4: oklch(0.933 0.007 145.048);
--chart-5: oklch(0.394 0.111 142.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.256 0.023 144.446);
--muted-foreground: oklch(0.745 0.04 144.714);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.244 0.019 144.545);
--input: oklch(0.244 0.019 144.545);
--primary: oklch(0.389 0.107 142.944);
--primary-foreground: oklch(0.884 0.089 144.366);
--secondary: oklch(0.222 0.02 144.459);
--secondary-foreground: oklch(0.779 0.043 144.703);
--accent: oklch(0.341 0.052 143.965);
--accent-foreground: oklch(0.858 0.042 144.749);
--destructive: oklch(0.671 0.201 34.097);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.389 0.107 142.944);
--chart-1: oklch(0.389 0.107 142.944);
--chart-2: oklch(0.222 0.02 144.459);
--chart-3: oklch(0.341 0.052 143.965);
--chart-4: oklch(0.257 0.024 144.403);
--chart-5: oklch(0.394 0.111 142.878);
}