Known is a shadcn/ui theme built around a vivid green primary color (#c4f35e) with vivid purple accents (#f35ec4). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid green primary (#c4f35e) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #030401black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #f9fbf3floralwhite | #060703black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f9fbf3floralwhite | #060703black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c4f35egreenyellow | #c4f35egreenyellow |
| Primary foreground | #141c02black | #141c02black |
| Secondary | #5ec4f3lightskyblue | #5ec4f3lightskyblue |
| Secondary foreground | #02141cblack | #02141cblack |
| Muted | #cfe0e8gainsboro | #172830darkslategray |
| Muted foreground | #48555bdarkslategray | #a4b1b7darkgray |
| Accent | #f35ec4hotpink | #f35ec4hotpink |
| Accent foreground | #1c0214black | #1c0214black |
| Destructive | #bf2903firebrick | #fb3909orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4f35egreenyellow | #c4f35egreenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 13.62:1 | AAA |
| Secondary button | 9.49:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 5.95:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 13.62:1 | AAA |
| Secondary button | 9.49:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Known in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 120.885);
--foreground: oklch(0 0 0);
--muted: oklch(0.896 0.021 227.168);
--muted-foreground: oklch(0.441 0.02 227.501);
--popover: oklch(0.985 0.011 120.945);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.011 120.945);
--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.902 0.182 124.864);
--primary-foreground: oklch(0.213 0.048 124.4);
--secondary: oklch(0.777 0.116 230.921);
--secondary-foreground: oklch(0.18 0.031 228.614);
--accent: oklch(0.704 0.212 342.158);
--accent-foreground: oklch(0.16 0.059 341.768);
--destructive: oklch(0.524 0.19 33.209);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.182 124.864);
--chart-1: oklch(0.902 0.182 124.864);
--chart-2: oklch(0.777 0.116 230.921);
--chart-3: oklch(0.704 0.212 342.158);
--chart-4: oklch(0.795 0.107 230.185);
--chart-5: oklch(0.908 0.187 124.993);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 120.58);
--foreground: oklch(0.994 0.002 120.8);
--muted: oklch(0.267 0.027 228.861);
--muted-foreground: oklch(0.752 0.017 227.16);
--popover: oklch(0.126 0.014 120.58);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.014 120.58);
--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.902 0.182 124.864);
--primary-foreground: oklch(0.213 0.048 124.4);
--secondary: oklch(0.777 0.116 230.921);
--secondary-foreground: oklch(0.18 0.031 228.614);
--accent: oklch(0.704 0.212 342.158);
--accent-foreground: oklch(0.16 0.059 341.768);
--destructive: oklch(0.644 0.233 33.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.182 124.864);
--chart-1: oklch(0.902 0.182 124.864);
--chart-2: oklch(0.777 0.116 230.921);
--chart-3: oklch(0.704 0.212 342.158);
--chart-4: oklch(0.795 0.107 230.185);
--chart-5: oklch(0.908 0.187 124.993);
}