Government is a shadcn/ui theme built around a neutral gray primary color (#3c4344) with muted light teal accents (#d7e5e5). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#3c4344) on a teal-tinted background (#041010).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #041010black |
| Foreground | #000000black | #f4fafamintcream |
| Card | #ffffffwhite | #041010black |
| Card foreground | #000000black | #f4fafamintcream |
| Popover | #ffffffwhite | #041010black |
| Popover foreground | #000000black | #f4fafamintcream |
| Primary | #3c4344darkslategray | #3c4344darkslategray |
| Primary foreground | #d6dbdbgainsboro | #d6dbdbgainsboro |
| Secondary | #e8eeeelavender | #1e2525black |
| Secondary foreground | #1a2323black | #b3c1c2silver |
| Muted | #d4e8e8gainsboro | #172b2bdarkslategray |
| Muted foreground | #5a7272dimgray | #8da5a5darkgray |
| Accent | #d7e5e5gainsboro | #253737darkslategray |
| Accent foreground | #365353darkslategray | #bcd2d2lightsteelblue |
| Destructive | #8b0f04darkred | #ea1906red |
| Destructive foreground | #fdc8c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c4344darkslategray | #3c4344darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 13.62:1 | AAA |
| Muted text | 4.03:1 | AA Large |
| Accent | 6.42:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.33:1 | AAA |
| Text on card | 18.33:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 8.44:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Government in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.915 0.021 198.019);
--muted-foreground: oklch(0.532 0.028 197.618);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.378 0.01 197.979);
--primary-foreground: oklch(0.888 0.005 198.279);
--secondary: oklch(0.943 0.006 198.26);
--secondary-foreground: oklch(0.248 0.013 197.633);
--accent: oklch(0.91 0.015 198.124);
--accent-foreground: oklch(0.419 0.034 197.276);
--destructive: oklch(0.407 0.158 30.327);
--destructive-foreground: oklch(0.879 0.061 24.4);
--ring: oklch(0.378 0.01 197.979);
--chart-1: oklch(0.378 0.01 197.979);
--chart-2: oklch(0.943 0.006 198.26);
--chart-3: oklch(0.91 0.015 198.124);
--chart-4: oklch(0.965 0.004 198.3);
--chart-5: oklch(0.382 0.015 197.812);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.018 196.805);
--foreground: oklch(0.981 0.006 198.27);
--muted: oklch(0.273 0.026 197.111);
--muted-foreground: oklch(0.703 0.027 197.815);
--popover: oklch(0.16 0.018 196.805);
--popover-foreground: oklch(0.981 0.006 198.27);
--card: oklch(0.16 0.018 196.805);
--card-foreground: oklch(0.981 0.006 198.27);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.378 0.01 197.979);
--primary-foreground: oklch(0.888 0.005 198.279);
--secondary: oklch(0.256 0.01 197.789);
--secondary-foreground: oklch(0.801 0.016 198.062);
--accent: oklch(0.32 0.023 197.371);
--accent-foreground: oklch(0.847 0.024 197.954);
--destructive: oklch(0.594 0.235 30.025);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.378 0.01 197.979);
--chart-1: oklch(0.378 0.01 197.979);
--chart-2: oklch(0.256 0.01 197.789);
--chart-3: oklch(0.32 0.023 197.371);
--chart-4: oklch(0.289 0.012 197.76);
--chart-5: oklch(0.382 0.015 197.812);
}