Knowledge is a shadcn/ui theme built around a muted red primary color (#a99a98) with muted cyan accents (#98a7a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#a99a98) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0504black |
| Foreground | #040201black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #0f0605black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0504black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #a99a98darkgray | #a99a98darkgray |
| Primary foreground | #080707black | #080707black |
| Secondary | #98a7a9darkgray | #98a7a9darkgray |
| Secondary foreground | #070808black | #070808black |
| Muted | #d0e4e7gainsboro | #182d2fdarkslategray |
| Muted foreground | #656767dimgray | #989a9adarkgray |
| Accent | #98a7a9darkgray | #98a7a9darkgray |
| Accent foreground | #070808black | #070808black |
| Destructive | #ad3700firebrick | #ff5b0forangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a99a98darkgray | #a99a98darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 4.32:1 | AA Large |
| Accent | 8.06:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 19.76:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.44:1 | AAA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Knowledge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.086 0.011 31);
--muted: oklch(0.905 0.022 206.314);
--muted-foreground: oklch(0.512 0.002 206.414);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.086 0.011 31);
--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.699 0.018 26.63);
--primary-foreground: oklch(0.131 0.003 27.069);
--secondary: oklch(0.718 0.017 206.318);
--secondary-foreground: oklch(0.134 0.003 205.87);
--accent: oklch(0.718 0.017 206.318);
--accent-foreground: oklch(0.134 0.003 205.87);
--destructive: oklch(0.506 0.163 38.783);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.018 26.63);
--chart-1: oklch(0.699 0.018 26.63);
--chart-2: oklch(0.718 0.017 206.318);
--chart-3: oklch(0.718 0.017 206.318);
--chart-4: oklch(0.741 0.016 206.329);
--chart-5: oklch(0.696 0.024 26.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.015 30.695);
--foreground: oklch(0.992 0.002 26.452);
--muted: oklch(0.28 0.027 206.439);
--muted-foreground: oklch(0.684 0.002 206.422);
--popover: oklch(0.125 0.015 30.695);
--popover-foreground: oklch(0.992 0.002 26.452);
--card: oklch(0.138 0.017 30.115);
--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.699 0.018 26.63);
--primary-foreground: oklch(0.131 0.003 27.069);
--secondary: oklch(0.718 0.017 206.318);
--secondary-foreground: oklch(0.134 0.003 205.87);
--accent: oklch(0.718 0.017 206.318);
--accent-foreground: oklch(0.134 0.003 205.87);
--destructive: oklch(0.683 0.212 39.528);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.699 0.018 26.63);
--chart-1: oklch(0.699 0.018 26.63);
--chart-2: oklch(0.718 0.017 206.318);
--chart-3: oklch(0.718 0.017 206.318);
--chart-4: oklch(0.741 0.016 206.329);
--chart-5: oklch(0.696 0.024 26.707);
}