Vitesse Dark is a shadcn/ui theme built around a muted light yellow primary color (#cfcbbf) with neutral gray accents (#383838). The light mode uses a neutral background (#121212). Dark mode keeps the muted light yellow primary (#cfcbbf) on a neutral background (#121212).
| Token | Light | Dark |
|---|---|---|
| Background | #121212black | #121212black |
| Foreground | #cfcbbfsilver | #cfcbbfsilver |
| Card | #0d0d0dblack | #0d0d0dblack |
| Card foreground | #dad7celightgrey | #dad7celightgrey |
| Popover | #0a0a0ablack | #0a0a0ablack |
| Popover foreground | #e5e3dcgainsboro | #e5e3dcgainsboro |
| Primary | #cfcbbfsilver | #cfcbbfsilver |
| Primary foreground | #343127darkslategray | #343127darkslategray |
| Secondary | #42413ddarkslategray | #42413ddarkslategray |
| Secondary foreground | #dadad7gainsboro | #dadad7gainsboro |
| Muted | #2b2222darkslategray | #2b2222darkslategray |
| Muted foreground | #b09b9brosybrown | #b09b9brosybrown |
| Accent | #383838darkslategray | #383838darkslategray |
| Accent foreground | #d1d1d1lightgrey | #d1d1d1lightgrey |
| Destructive | #eb2019crimson | #eb2019crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #1f1f1fblack | #1f1f1fblack |
| Input | #262626darkslategray | #262626darkslategray |
| Ring | #cfcbbfsilver | #cfcbbfsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.56:1 | AAA |
| Text on card | 13.52:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 4.41:1 | AA Large |
| Text on background | 11.56:1 | AAA |
| Text on card | 13.52:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Vitesse Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.182 0 164.055);
--foreground: oklch(0.841 0.017 91.572);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.146 0 180);
--popover-foreground: oklch(0.914 0.009 91.493);
--card: oklch(0.158 0 169.695);
--card-foreground: oklch(0.878 0.013 91.532);
--border: oklch(0.238 0 161.565);
--input: oklch(0.27 0 180);
--primary: oklch(0.841 0.017 91.572);
--primary-foreground: oklch(0.314 0.017 91.77);
--secondary: oklch(0.375 0.007 91.556);
--secondary-foreground: oklch(0.887 0.003 91.441);
--accent: oklch(0.341 0 158.199);
--accent-foreground: oklch(0.861 0 180);
--destructive: oklch(0.6 0.232 28.913);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.017 91.572);
--chart-1: oklch(0.841 0.017 91.572);
--chart-2: oklch(0.375 0.007 91.556);
--chart-3: oklch(0.341 0 158.199);
--chart-4: oklch(0.405 0.007 91.559);
--chart-5: oklch(0.844 0.02 91.602);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.182 0 164.055);
--foreground: oklch(0.841 0.017 91.572);
--muted: oklch(0.261 0.014 18.092);
--muted-foreground: oklch(0.708 0.025 17.766);
--popover: oklch(0.146 0 180);
--popover-foreground: oklch(0.914 0.009 91.493);
--card: oklch(0.158 0 169.695);
--card-foreground: oklch(0.878 0.013 91.532);
--border: oklch(0.238 0 161.565);
--input: oklch(0.27 0 180);
--primary: oklch(0.841 0.017 91.572);
--primary-foreground: oklch(0.314 0.017 91.77);
--secondary: oklch(0.375 0.007 91.556);
--secondary-foreground: oklch(0.887 0.003 91.441);
--accent: oklch(0.341 0 158.199);
--accent-foreground: oklch(0.861 0 180);
--destructive: oklch(0.6 0.232 28.913);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.841 0.017 91.572);
--chart-1: oklch(0.841 0.017 91.572);
--chart-2: oklch(0.375 0.007 91.556);
--chart-3: oklch(0.341 0 158.199);
--chart-4: oklch(0.405 0.007 91.559);
--chart-5: oklch(0.844 0.02 91.602);
}