Well-informed is a shadcn/ui theme built around a yellow primary color (#b59736) with blue accents (#3654b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#b59736) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040301black | #fbfbf9snow |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040301black | #fbfbf9snow |
| Primary | #b59736peru | #b59736peru |
| Primary foreground | #181407black | #181407black |
| Secondary | #3654b5steelblue | #3654b5steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d0d4e1lightgrey | #1e222fdarkslategray |
| Muted foreground | #585b65dimgray | #9a9da7darkgray |
| Accent | #3654b5steelblue | #3654b5steelblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #67130amaroon | #ec4432tomato |
| Destructive foreground | #f7b3ablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b59736peru | #b59736peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 4.58:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 6.83:1 | AA |
| Muted text | 5.86:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Well-informed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.014 97.9);
--muted: oklch(0.872 0.018 272.431);
--muted-foreground: oklch(0.471 0.017 272.258);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.101 0.014 97.9);
--card: oklch(0.992 0 161.565);
--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.686 0.119 91.767);
--primary-foreground: oklch(0.191 0.024 93.344);
--secondary: oklch(0.478 0.158 267.356);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.478 0.158 267.356);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.336 0.118 30.425);
--destructive-foreground: oklch(0.828 0.081 26.091);
--ring: oklch(0.686 0.119 91.767);
--chart-1: oklch(0.686 0.119 91.767);
--chart-2: oklch(0.478 0.158 267.356);
--chart-3: oklch(0.478 0.158 267.356);
--chart-4: oklch(0.5 0.166 267.315);
--chart-5: oklch(0.693 0.123 91.516);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.003 92.686);
--muted: oklch(0.253 0.025 271.38);
--muted-foreground: oklch(0.697 0.015 272.422);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.003 92.686);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.001 92.671);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.686 0.119 91.767);
--primary-foreground: oklch(0.191 0.024 93.344);
--secondary: oklch(0.478 0.158 267.356);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.478 0.158 267.356);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.63 0.207 30.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.686 0.119 91.767);
--chart-1: oklch(0.686 0.119 91.767);
--chart-2: oklch(0.478 0.158 267.356);
--chart-3: oklch(0.478 0.158 267.356);
--chart-4: oklch(0.5 0.166 267.315);
--chart-5: oklch(0.693 0.123 91.516);
}