Political is a shadcn/ui theme built around a deep orange primary color (#6c2f13) with deep violet accents (#2f136c). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the deep orange primary (#6c2f13) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #000000black |
| Foreground | #040201black | #ffffffwhite |
| Card | #fdfcfcsnow | #000000black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #fdfcfcsnow | #000000black |
| Popover foreground | #040201black | #ffffffwhite |
| Primary | #6c2f13saddlebrown | #6c2f13saddlebrown |
| Primary foreground | #f4cfbepeachpuff | #f4cfbepeachpuff |
| Secondary | #136c2fforestgreen | #136c2fforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff0efwhitesmoke | #0f100fblack |
| Muted foreground | #455e4ddarkslategray | #a1baa9darkgray |
| Accent | #2f136cmidnightblue | #2f136cmidnightblue |
| Accent foreground | #cfbef4thistle | #cfbef4thistle |
| Destructive | #b92609firebrick | #f54f2etomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6c2f13saddlebrown | #6c2f13saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.22:1 | AA |
| Accent | 8.58:1 | AAA |
| Destructive | 6.27:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 9.18:1 | AAA |
| Accent | 8.58:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Political in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 46.84);
--foreground: oklch(0.091 0.009 53.933);
--muted: oklch(0.955 0.002 156.516);
--muted-foreground: oklch(0.456 0.04 154.683);
--popover: oklch(0.992 0.002 46.84);
--popover-foreground: oklch(0.091 0.009 53.933);
--card: oklch(0.992 0.002 46.84);
--card-foreground: oklch(0.091 0.009 53.933);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.386 0.096 43.246);
--primary-foreground: oklch(0.881 0.047 46.326);
--secondary: oklch(0.468 0.124 148.683);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.296 0.141 289.077);
--accent-foreground: oklch(0.833 0.076 299.246);
--destructive: oklch(0.511 0.186 32.373);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.096 43.246);
--chart-1: oklch(0.386 0.096 43.246);
--chart-2: oklch(0.468 0.124 148.683);
--chart-3: oklch(0.296 0.141 289.077);
--chart-4: oklch(0.507 0.136 148.554);
--chart-5: oklch(0.387 0.099 42.922);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.171 0.003 156.179);
--muted-foreground: oklch(0.764 0.036 155.605);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.386 0.096 43.246);
--primary-foreground: oklch(0.881 0.047 46.326);
--secondary: oklch(0.468 0.124 148.683);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.296 0.141 289.077);
--accent-foreground: oklch(0.833 0.076 299.246);
--destructive: oklch(0.655 0.208 33.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.386 0.096 43.246);
--chart-1: oklch(0.386 0.096 43.246);
--chart-2: oklch(0.468 0.124 148.683);
--chart-3: oklch(0.296 0.141 289.077);
--chart-4: oklch(0.507 0.136 148.554);
--chart-5: oklch(0.387 0.099 42.922);
}