County is a shadcn/ui theme built around a deep violet primary color (#160920) with deep green accents (#132009). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the deep violet primary (#160920) on a violet-tinted background (#08050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08050bblack |
| Foreground | #030104black | #fdfcfdwhite |
| Card | #faf7fdghostwhite | #0b060eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfbfewhite | #08050bblack |
| Popover foreground | #030104black | #fdfcfdwhite |
| Primary | #160920black | #160920black |
| Primary foreground | #b380dbmediumpurple | #b380dbmediumpurple |
| Secondary | #132009black | #132009black |
| Secondary foreground | #71bf36yellowgreen | #71bf36yellowgreen |
| Muted | #e2e9ddgainsboro | #1b2216black |
| Muted foreground | #5c6d50dimgray | #9faf92darkseagreen |
| Accent | #132009black | #132009black |
| Accent foreground | #71bf36yellowgreen | #71bf36yellowgreen |
| Destructive | #641c02maroon | #fa4605orangered |
| Destructive foreground | #fdb59bburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160920black | #160920black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 4.50:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 19.82:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.42:1 | AA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use County in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 311.047);
--foreground: oklch(0.081 0.019 312.943);
--muted: oklch(0.926 0.018 131.257);
--muted-foreground: oklch(0.511 0.047 131.952);
--popover: oklch(0.99 0.004 311.047);
--popover-foreground: oklch(0.081 0.019 312.943);
--card: oklch(0.98 0.008 311.01);
--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.173 0.048 308.357);
--primary-foreground: oklch(0.685 0.14 309.206);
--secondary: oklch(0.224 0.044 133.319);
--secondary-foreground: oklch(0.727 0.185 134.629);
--accent: oklch(0.224 0.044 133.319);
--accent-foreground: oklch(0.727 0.185 134.629);
--destructive: oklch(0.34 0.109 38.076);
--destructive-foreground: oklch(0.835 0.092 40.823);
--ring: oklch(0.173 0.048 308.357);
--chart-1: oklch(0.173 0.048 308.357);
--chart-2: oklch(0.224 0.044 133.319);
--chart-3: oklch(0.224 0.044 133.319);
--chart-4: oklch(0.268 0.057 133.642);
--chart-5: oklch(0.172 0.051 308.199);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 312.252);
--foreground: oklch(0.992 0.002 311.071);
--muted: oklch(0.242 0.025 132.059);
--muted-foreground: oklch(0.733 0.044 131.625);
--popover: oklch(0.122 0.018 312.252);
--popover-foreground: oklch(0.992 0.002 311.071);
--card: oklch(0.135 0.021 310.968);
--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.173 0.048 308.357);
--primary-foreground: oklch(0.685 0.14 309.206);
--secondary: oklch(0.224 0.044 133.319);
--secondary-foreground: oklch(0.727 0.185 134.629);
--accent: oklch(0.224 0.044 133.319);
--accent-foreground: oklch(0.727 0.185 134.629);
--destructive: oklch(0.653 0.223 35.683);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.173 0.048 308.357);
--chart-1: oklch(0.173 0.048 308.357);
--chart-2: oklch(0.224 0.044 133.319);
--chart-3: oklch(0.224 0.044 133.319);
--chart-4: oklch(0.268 0.057 133.642);
--chart-5: oklch(0.172 0.051 308.199);
}