Knuckle is a shadcn/ui theme built around a vivid purple primary color (#d82deb) with vivid teal accents (#2debd8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid purple primary (#d82deb) on a purple-tinted background (#0a040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0a040bblack |
| Foreground | #000000black | #fbf9fbsnow |
| Card | #fcf7fcsnow | #0e060fblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fcf7fcsnow | #0e060fblack |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #d82debmediumorchid | #d82debmediumorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ebd82dgold | #ebd82dgold |
| Secondary foreground | #464007darkolivegreen | #464007darkolivegreen |
| Muted | #e2e0cfgainsboro | #302e1ddarkslategray |
| Muted foreground | #6b6852dimgray | #adaa94darkgray |
| Accent | #2debd8turquoise | #2debd8turquoise |
| Accent foreground | #074640darkslategray | #074640darkslategray |
| Destructive | #ca2e16firebrick | #dc3318orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d82debmediumorchid | #d82debmediumorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 3.80:1 | AA Large |
| Secondary button | 7.23:1 | AAA |
| Muted text | 4.25:1 | AA Large |
| Accent | 7.17:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 3.80:1 | AA Large |
| Secondary button | 7.23:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.63:1 | AA |
Paste this into your globals.css to use Knuckle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.643);
--foreground: oklch(0 0 0);
--muted: oklch(0.905 0.023 101.681);
--muted-foreground: oklch(0.514 0.033 102.227);
--popover: oklch(0.982 0.008 322.66);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.008 322.66);
--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.646 0.279 323.404);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.873 0.173 102.506);
--secondary-foreground: oklch(0.366 0.072 102.573);
--accent: oklch(0.85 0.143 184.219);
--accent-foreground: oklch(0.356 0.06 184.314);
--destructive: oklch(0.549 0.195 31.608);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.646 0.279 323.404);
--chart-1: oklch(0.646 0.279 323.404);
--chart-2: oklch(0.873 0.173 102.506);
--chart-3: oklch(0.85 0.143 184.219);
--chart-4: oklch(0.88 0.169 102.727);
--chart-5: oklch(0.65 0.285 323.361);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.022 323.895);
--foreground: oklch(0.984 0.004 322.643);
--muted: oklch(0.298 0.029 102.606);
--muted-foreground: oklch(0.735 0.031 101.92);
--popover: oklch(0.139 0.025 323.546);
--popover-foreground: oklch(0.992 0.002 322.635);
--card: oklch(0.139 0.025 323.546);
--card-foreground: oklch(0.992 0.002 322.635);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.646 0.279 323.404);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.873 0.173 102.506);
--secondary-foreground: oklch(0.366 0.072 102.573);
--accent: oklch(0.85 0.143 184.219);
--accent-foreground: oklch(0.356 0.06 184.314);
--destructive: oklch(0.586 0.209 31.594);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.646 0.279 323.404);
--chart-1: oklch(0.646 0.279 323.404);
--chart-2: oklch(0.873 0.173 102.506);
--chart-3: oklch(0.85 0.143 184.219);
--chart-4: oklch(0.88 0.169 102.727);
--chart-5: oklch(0.65 0.285 323.361);
}