Knowledgeable is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted light red accents (#d7c6c6). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#cccccc) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #030202black |
| Foreground | #140505black | #fdfcfcsnow |
| Card | #faf5f5whitesmoke | #070303black |
| Card foreground | #100404black | #ffffffwhite |
| Popover | #faf5f5whitesmoke | #070303black |
| Popover foreground | #100404black | #ffffffwhite |
| Primary | #cccccclightgrey | #cccccclightgrey |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #d7c6c6lightgrey | #161212black |
| Secondary foreground | #3f2c2cdarkslategray | #b6a5a5darkgray |
| Muted | #ecd5d5gainsboro | #2a1313black |
| Muted foreground | #6a6262dimgray | #9d9595darkgray |
| Accent | #d7c6c6lightgrey | #161212black |
| Accent foreground | #3f2c2cdarkslategray | #b6a5a5darkgray |
| Destructive | #c13e01firebrick | #f44e01orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cccccclightgrey | #cccccclightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 4.24:1 | AA Large |
| Accent | 7.96:1 | AAA |
| Destructive | 5.32:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Knowledgeable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 17.226);
--foreground: oklch(0.144 0.029 21.284);
--muted: oklch(0.891 0.026 17.648);
--muted-foreground: oklch(0.503 0.01 17.504);
--popover: oklch(0.973 0.006 17.261);
--popover-foreground: oklch(0.132 0.025 21.016);
--card: oklch(0.973 0.006 17.261);
--card-foreground: oklch(0.132 0.025 21.016);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.845 0 164.055);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.841 0.019 17.527);
--secondary-foreground: oklch(0.316 0.027 18.691);
--accent: oklch(0.841 0.019 17.527);
--accent-foreground: oklch(0.316 0.027 18.691);
--destructive: oklch(0.547 0.176 38.582);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0 164.055);
--chart-1: oklch(0.845 0 164.055);
--chart-2: oklch(0.841 0.019 17.527);
--chart-3: oklch(0.841 0.019 17.527);
--chart-4: oklch(0.867 0.015 17.455);
--chart-5: oklch(0.843 0.003 17.225);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.008 18.916);
--foreground: oklch(0.991 0.001 17.181);
--muted: oklch(0.221 0.038 20.638);
--muted-foreground: oklch(0.677 0.01 17.395);
--popover: oklch(0.109 0.011 18.916);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.011 18.916);
--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.845 0 164.055);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.189 0.007 17.763);
--secondary-foreground: oklch(0.737 0.019 17.592);
--accent: oklch(0.189 0.007 17.763);
--accent-foreground: oklch(0.737 0.019 17.592);
--destructive: oklch(0.65 0.212 38.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0 164.055);
--chart-1: oklch(0.845 0 164.055);
--chart-2: oklch(0.189 0.007 17.763);
--chart-3: oklch(0.189 0.007 17.763);
--chart-4: oklch(0.221 0.009 17.846);
--chart-5: oklch(0.843 0.003 17.225);
}