Knowing is a shadcn/ui theme built around an indigo primary color (#7e71c6) with muted light indigo accents (#c2bfd4). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the indigo primary (#7e71c6) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #030208black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f8f7fdghostwhite | #030208black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f8f7fdghostwhite | #030208black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #7e71c6mediumpurple | #7e71c6mediumpurple |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e0dfe7gainsboro | #201f23black |
| Secondary foreground | #434054darkslategray | #b7b6besilver |
| Muted | #edecf3lavender | #0d0c13black |
| Muted foreground | #5b5969dimgray | #9996a6darkgray |
| Accent | #c2bfd4silver | #2f2d39darkslategray |
| Accent foreground | #2a273adarkslategray | #c8c6d2lightgrey |
| Destructive | #b90c09firebrick | #db0e0ared |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7e71c6mediumpurple | #7e71c6mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.73:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 7.56:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.29:1 | AA |
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 4.15:1 | AA Large |
| Secondary button | 8.14:1 | AAA |
| Muted text | 6.73:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.14:1 | AA |
Paste this into your globals.css to use Knowing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.007 293.168);
--foreground: oklch(0 0 0);
--muted: oklch(0.947 0.009 293.135);
--muted-foreground: oklch(0.472 0.025 292.301);
--popover: oklch(0.979 0.007 293.168);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.007 293.168);
--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.597 0.128 288.804);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.907 0.011 293.085);
--secondary-foreground: oklch(0.382 0.035 291.518);
--accent: oklch(0.814 0.028 292.644);
--accent-foreground: oklch(0.285 0.034 290.988);
--destructive: oklch(0.497 0.199 28.99);
--destructive-foreground: oklch(0.978 0.01 18.516);
--ring: oklch(0.597 0.128 288.804);
--chart-1: oklch(0.597 0.128 288.804);
--chart-2: oklch(0.907 0.011 293.085);
--chart-3: oklch(0.814 0.028 292.644);
--chart-4: oklch(0.933 0.008 293.151);
--chart-5: oklch(0.592 0.137 288.386);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.022 291.411);
--foreground: oklch(0.991 0.001 293.284);
--muted: oklch(0.159 0.014 291.657);
--muted-foreground: oklch(0.681 0.023 292.676);
--popover: oklch(0.096 0.022 291.411);
--popover-foreground: oklch(0.991 0.001 293.284);
--card: oklch(0.096 0.022 291.411);
--card-foreground: oklch(0.991 0.001 293.284);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.597 0.128 288.804);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.242 0.008 292.718);
--secondary-foreground: oklch(0.78 0.012 293.025);
--accent: oklch(0.304 0.022 291.914);
--accent-foreground: oklch(0.831 0.017 292.92);
--destructive: oklch(0.564 0.226 29.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.597 0.128 288.804);
--chart-1: oklch(0.597 0.128 288.804);
--chart-2: oklch(0.242 0.008 292.718);
--chart-3: oklch(0.304 0.022 291.914);
--chart-4: oklch(0.273 0.009 292.681);
--chart-5: oklch(0.592 0.137 288.386);
}