Knowing is a shadcn/ui theme built around a neutral gray primary color (#66696b) with neutral gray accents (#696b66). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the neutral gray primary (#66696b) on a neutral background (#020608).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #020608black |
| Foreground | #020608black | #ffffffwhite |
| Card | #fbfdfewhite | #020608black |
| Card foreground | #020608black | #ffffffwhite |
| Popover | #fbfdfewhite | #020608black |
| Popover foreground | #020608black | #ffffffwhite |
| Primary | #66696bdimgray | #66696bdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6b6669dimgray | #6b6669dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #efdce9mistyrose | #23101dblack |
| Muted foreground | #705c6adimgray | #a38f9drosybrown |
| Accent | #696b66dimgray | #696b66dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d15315chocolate | #e35b16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #66696bdimgray | #66696bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 5.60:1 | AA |
| Muted text | 4.68:1 | AA |
| Accent | 5.40:1 | AA |
| Destructive | 4.22:1 | AA Large |
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 5.60:1 | AA |
| Muted text | 5.99:1 | AA |
| Accent | 5.40:1 | AA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Knowing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 225.011);
--foreground: oklch(0.118 0.012 219.484);
--muted: oklch(0.913 0.028 336.445);
--muted-foreground: oklch(0.499 0.034 337.102);
--popover: oklch(0.993 0.003 225.011);
--popover-foreground: oklch(0.118 0.012 219.484);
--card: oklch(0.993 0.003 225.011);
--card-foreground: oklch(0.118 0.012 219.484);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.52 0.004 225.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.517 0.007 336.118);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.524 0.007 120.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.601 0.172 42.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.52 0.004 225.072);
--chart-1: oklch(0.52 0.004 225.072);
--chart-2: oklch(0.517 0.007 336.118);
--chart-3: oklch(0.524 0.007 120.251);
--chart-4: oklch(0.543 0.007 336.12);
--chart-5: oklch(0.521 0.01 225.217);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.012 219.57);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.041 339.301);
--muted-foreground: oklch(0.672 0.032 336.729);
--popover: oklch(0.118 0.012 219.57);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.012 219.57);
--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.52 0.004 225.072);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.517 0.007 336.118);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.524 0.007 120.251);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.184 41.914);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.52 0.004 225.072);
--chart-1: oklch(0.52 0.004 225.072);
--chart-2: oklch(0.517 0.007 336.118);
--chart-3: oklch(0.524 0.007 120.251);
--chart-4: oklch(0.543 0.007 336.12);
--chart-5: oklch(0.521 0.01 225.217);
}