Answer is a shadcn/ui theme built around a neutral gray primary color (#353536) with neutral gray accents (#353536). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#353536) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020203black |
| Foreground | #020612black | #f5f6fawhitesmoke |
| Card | #fbfcfewhite | #020203black |
| Card foreground | #020612black | #f5f6fawhitesmoke |
| Popover | #fbfcfewhite | #020203black |
| Popover foreground | #020612black | #f5f6fawhitesmoke |
| Primary | #353536darkslategray | #353536darkslategray |
| Primary foreground | #cececflightgrey | #cececflightgrey |
| Secondary | #353636darkslategray | #353636darkslategray |
| Secondary foreground | #cecfcflightgrey | #cecfcflightgrey |
| Muted | #cee2e9gainsboro | #162a31darkslategray |
| Muted foreground | #404f54darkslategray | #abbabfsilver |
| Accent | #353536darkslategray | #353536darkslategray |
| Accent foreground | #cececflightgrey | #cececflightgrey |
| Destructive | #b03703firebrick | #f64c04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #353536darkslategray | #353536darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Answer in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 271.384);
--foreground: oklch(0.125 0.031 261.231);
--muted: oklch(0.9 0.023 219.726);
--muted-foreground: oklch(0.417 0.021 220.051);
--popover: oklch(0.991 0.003 271.384);
--popover-foreground: oklch(0.125 0.031 261.231);
--card: oklch(0.991 0.003 271.384);
--card-foreground: oklch(0.125 0.031 261.231);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.33 0.001 271.368);
--primary-foreground: oklch(0.852 0.001 271.398);
--secondary: oklch(0.331 0.001 219.534);
--secondary-foreground: oklch(0.853 0.001 219.515);
--accent: oklch(0.33 0.002 297.723);
--accent-foreground: oklch(0.852 0.001 297.797);
--destructive: oklch(0.51 0.165 38.054);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.001 271.368);
--chart-1: oklch(0.33 0.001 271.368);
--chart-2: oklch(0.331 0.001 219.534);
--chart-3: oklch(0.33 0.002 297.723);
--chart-4: oklch(0.361 0.001 219.535);
--chart-5: oklch(0.327 0.006 271.236);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.007 267.355);
--foreground: oklch(0.974 0.005 271.365);
--muted: oklch(0.272 0.028 221.256);
--muted-foreground: oklch(0.779 0.019 219.71);
--popover: oklch(0.086 0.007 267.355);
--popover-foreground: oklch(0.974 0.005 271.365);
--card: oklch(0.086 0.007 267.355);
--card-foreground: oklch(0.974 0.005 271.365);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.33 0.001 271.368);
--primary-foreground: oklch(0.852 0.001 271.398);
--secondary: oklch(0.331 0.001 219.534);
--secondary-foreground: oklch(0.853 0.001 219.515);
--accent: oklch(0.33 0.002 297.723);
--accent-foreground: oklch(0.852 0.001 297.797);
--destructive: oklch(0.653 0.216 37.32);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.001 271.368);
--chart-1: oklch(0.33 0.001 271.368);
--chart-2: oklch(0.331 0.001 219.534);
--chart-3: oklch(0.33 0.002 297.723);
--chart-4: oklch(0.361 0.001 219.535);
--chart-5: oklch(0.327 0.006 271.236);
}