skillr v2 is a shadcn/ui theme built around a muted deep violet primary color (#181424) with muted light violet accents (#d4d2da). The light mode uses a neutral background (#f9f7fd). Dark mode switches to a muted deep red primary (#241416) on a red-tinted background (#0a0506).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #0a0506black |
| Foreground | #05030dblack | #fdfbfcsnow |
| Card | #f9f7fdghostwhite | #0a0506black |
| Card foreground | #05030dblack | #fdfbfcsnow |
| Popover | #f9f7fdghostwhite | #0a0506black |
| Popover foreground | #05030dblack | #fdfbfcsnow |
| Primary | #181424black | #241416black |
| Primary foreground | #aba0cadarkgray | #caa0a6rosybrown |
| Secondary | #d4d2dalightgrey | #181616black |
| Secondary foreground | #3a3743darkslategray | #b4acaddarkgray |
| Muted | #eeebf4lavender | #140b0cblack |
| Muted foreground | #4f4c57darkslategray | #b3a8a9darkgray |
| Accent | #d4d2dalightgrey | #181616black |
| Accent foreground | #3a3743darkslategray | #b4acaddarkgray |
| Destructive | #640a02maroon | #ff3050crimson |
| Destructive foreground | #fda39blightsalmon | #ffffffwhite |
| Border | #e1dfe7gainsboro | #231a1cblack |
| Input | #e1dfe7gainsboro | #231a1cblack |
| Ring | #181424black | #241416black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.13:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use skillr v2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.008 298.426);
--foreground: oklch(0.108 0.03 298.039);
--muted: oklch(0.946 0.012 298.351);
--muted-foreground: oklch(0.423 0.019 297.776);
--popover: oklch(0.979 0.008 298.426);
--popover-foreground: oklch(0.108 0.03 298.039);
--card: oklch(0.979 0.008 298.426);
--card-foreground: oklch(0.108 0.03 298.039);
--border: oklch(0.908 0.011 298.358);
--input: oklch(0.908 0.011 298.358);
--primary: oklch(0.205 0.032 295.665);
--primary-foreground: oklch(0.729 0.063 297.044);
--secondary: oklch(0.868 0.011 298.338);
--secondary-foreground: oklch(0.345 0.022 297.469);
--accent: oklch(0.868 0.011 298.338);
--accent-foreground: oklch(0.345 0.022 297.469);
--destructive: oklch(0.324 0.124 30.924);
--destructive-foreground: oklch(0.803 0.109 25.422);
--ring: oklch(0.205 0.032 295.665);
--chart-1: oklch(0.205 0.032 295.665);
--chart-2: oklch(0.868 0.011 298.338);
--chart-3: oklch(0.868 0.011 298.338);
--chart-4: oklch(0.893 0.009 298.387);
--chart-5: oklch(0.203 0.036 295.299);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 6.981);
--foreground: oklch(0.991 0.002 6.648);
--muted: oklch(0.162 0.015 8.938);
--muted-foreground: oklch(0.741 0.013 7.049);
--popover: oklch(0.125 0.011 6.981);
--popover-foreground: oklch(0.991 0.002 6.648);
--card: oklch(0.125 0.011 6.981);
--card-foreground: oklch(0.991 0.002 6.648);
--border: oklch(0.23 0.014 8.085);
--input: oklch(0.23 0.014 8.085);
--primary: oklch(0.214 0.027 9.798);
--primary-foreground: oklch(0.746 0.052 8.316);
--secondary: oklch(0.202 0.004 7.058);
--secondary-foreground: oklch(0.751 0.009 6.903);
--accent: oklch(0.202 0.004 7.058);
--accent-foreground: oklch(0.751 0.009 6.903);
--destructive: oklch(0.651 0.237 19.636);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.027 9.798);
--chart-1: oklch(0.214 0.027 9.798);
--chart-2: oklch(0.202 0.004 7.058);
--chart-3: oklch(0.202 0.004 7.058);
--chart-4: oklch(0.235 0.005 7.107);
--chart-5: oklch(0.213 0.03 10.179);
}