Knowledgeable is a shadcn/ui theme built around a green primary color (#7bbc67) with purple accents (#a867bc). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the green primary (#7bbc67) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfbsnow | #020401black |
| Foreground | #000000black | #f9fcf8mintcream |
| Card | #f9fcf8mintcream | #040802black |
| Card foreground | #000000black | #fcfdfbsnow |
| Popover | #fcfdfbsnow | #020401black |
| Popover foreground | #000000black | #f9fcf8mintcream |
| Primary | #7bbc67darkseagreen | #7bbc67darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #a867bcmediumorchid | #a867bcmediumorchid |
| Secondary foreground | #000000black | #000000black |
| Muted | #ddd8dfgainsboro | #252027darkslategray |
| Muted foreground | #5f5c60dimgray | #a29fa3darkgray |
| Accent | #a867bcmediumorchid | #a867bcmediumorchid |
| Accent foreground | #000000black | #000000black |
| Destructive | #c9130dfirebrick | #d8150efirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7bbc67darkseagreen | #7bbc67darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 9.23:1 | AAA |
| Secondary button | 5.31:1 | AA |
| Muted text | 4.69:1 | AA |
| Accent | 5.31:1 | AA |
| Destructive | 5.84:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 9.23:1 | AAA |
| Secondary button | 5.31:1 | AA |
| Muted text | 6.07:1 | AA |
| Accent | 5.31:1 | AA |
| Destructive | 5.22:1 | AA |
Paste this into your globals.css to use Knowledgeable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 138.333);
--foreground: oklch(0 0 0);
--muted: oklch(0.888 0.01 318.319);
--muted-foreground: oklch(0.48 0.007 318.316);
--popover: oklch(0.994 0.003 138.333);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 138.337);
--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.731 0.135 138.701);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.617 0.143 317.98);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.617 0.143 317.98);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.531 0.21 29.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.135 138.701);
--chart-1: oklch(0.731 0.135 138.701);
--chart-2: oklch(0.617 0.143 317.98);
--chart-3: oklch(0.617 0.143 317.98);
--chart-4: oklch(0.643 0.132 318.045);
--chart-5: oklch(0.738 0.144 138.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.016 136.773);
--foreground: oklch(0.987 0.006 138.336);
--muted: oklch(0.254 0.014 318.276);
--muted-foreground: oklch(0.705 0.006 318.321);
--popover: oklch(0.098 0.016 136.773);
--popover-foreground: oklch(0.987 0.006 138.336);
--card: oklch(0.123 0.02 136.773);
--card-foreground: oklch(0.994 0.003 138.333);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.731 0.135 138.701);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.617 0.143 317.98);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.617 0.143 317.98);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.559 0.221 29.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.135 138.701);
--chart-1: oklch(0.731 0.135 138.701);
--chart-2: oklch(0.617 0.143 317.98);
--chart-3: oklch(0.617 0.143 317.98);
--chart-4: oklch(0.643 0.132 318.045);
--chart-5: oklch(0.738 0.144 138.749);
}