Well-informed is a shadcn/ui theme built around a neutral gray primary color (#726e77) with neutral gray accents (#776e77). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#726e77) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050208black |
| Foreground | #020104black | #f7f6f9whitesmoke |
| Card | #ffffffwhite | #050208black |
| Card foreground | #020104black | #f7f6f9whitesmoke |
| Popover | #ffffffwhite | #050208black |
| Popover foreground | #020104black | #f7f6f9whitesmoke |
| Primary | #726e77dimgray | #726e77dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6e6e77dimgray | #6e6e77dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d8d8e9gainsboro | #161627black |
| Muted foreground | #3d3d52darkslategray | #adaec2darkgray |
| Accent | #776e77dimgray | #776e77dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #ba3e0dfirebrick | #f27340tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #726e77dimgray | #726e77dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.81:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 5.01:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 4.89:1 | AA |
| Destructive | 5.55:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 4.96:1 | AA |
| Secondary button | 5.01:1 | AA |
| Muted text | 8.13:1 | AAA |
| Accent | 4.89:1 | AA |
| Destructive | 7.27:1 | AAA |
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.079 0.02 308.819);
--muted: oklch(0.887 0.023 284.333);
--muted-foreground: oklch(0.37 0.035 282.975);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.079 0.02 308.819);
--card: oklch(1 0 180);
--card-foreground: oklch(0.079 0.02 308.819);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.546 0.015 306.777);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.014 284.354);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.55 0.018 324.821);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.536 0.168 38.175);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.546 0.015 306.777);
--chart-1: oklch(0.546 0.015 306.777);
--chart-2: oklch(0.543 0.014 284.354);
--chart-3: oklch(0.55 0.018 324.821);
--chart-4: oklch(0.568 0.014 284.351);
--chart-5: oklch(0.539 0.026 306.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.021 308.454);
--foreground: oklch(0.974 0.005 307.052);
--muted: oklch(0.21 0.034 281.565);
--muted-foreground: oklch(0.756 0.029 284.098);
--popover: oklch(0.102 0.021 308.454);
--popover-foreground: oklch(0.974 0.005 307.052);
--card: oklch(0.102 0.021 308.454);
--card-foreground: oklch(0.974 0.005 307.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.546 0.015 306.777);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.543 0.014 284.354);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.55 0.018 324.821);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.697 0.17 41.052);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.546 0.015 306.777);
--chart-1: oklch(0.546 0.015 306.777);
--chart-2: oklch(0.543 0.014 284.354);
--chart-3: oklch(0.55 0.018 324.821);
--chart-4: oklch(0.568 0.014 284.351);
--chart-5: oklch(0.539 0.026 306.518);
}