Vittorio is a shadcn/ui theme built around a muted blue primary color (#445479) with muted deep blue accents (#283248). The light mode uses a blue-tinted background (#0d1017). Dark mode keeps the muted blue primary (#445479) on a blue-tinted background (#0d1017).
| Token | Light | Dark |
|---|---|---|
| Background | #0d1017black | #0d1017black |
| Foreground | #bfbdb5silver | #bfbdb5silver |
| Card | #090b10black | #090b10black |
| Card foreground | #cbc9c3silver | #cbc9c3silver |
| Popover | #07090dblack | #07090dblack |
| Popover foreground | #d7d5d1lightgrey | #d7d5d1lightgrey |
| Primary | #445479darkslateblue | #445479darkslateblue |
| Primary foreground | #f5f6f9whitesmoke | #f5f6f9whitesmoke |
| Secondary | #b4bbcbsilver | #b4bbcbsilver |
| Secondary foreground | #1f232ddarkslategray | #1f232ddarkslategray |
| Muted | #22242bdarkslategray | #22242bdarkslategray |
| Muted foreground | #9ba1b0darkgray | #9ba1b0darkgray |
| Accent | #283248darkslategray | #283248darkslategray |
| Accent foreground | #c4ccdelightgrey | #c4ccdelightgrey |
| Destructive | #fe1010red | #fe1010red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #191c24black | #191c24black |
| Input | #1f232ddarkslategray | #1f232ddarkslategray |
| Ring | #445479darkslateblue | #445479darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.12:1 | AAA |
| Text on card | 11.86:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.96:1 | AA Large |
| Text on background | 10.12:1 | AAA |
| Text on card | 11.86:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 5.97:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Vittorio in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.173 0.015 266.68);
--foreground: oklch(0.798 0.011 94.007);
--muted: oklch(0.262 0.013 267.07);
--muted-foreground: oklch(0.71 0.023 267.202);
--popover: oklch(0.14 0.009 264.969);
--popover-foreground: oklch(0.874 0.007 93.946);
--card: oklch(0.151 0.011 266.677);
--card-foreground: oklch(0.836 0.009 93.975);
--border: oklch(0.228 0.016 266.88);
--input: oklch(0.258 0.019 266.832);
--primary: oklch(0.448 0.064 266.08);
--primary-foreground: oklch(0.974 0.004 267.395);
--secondary: oklch(0.791 0.024 267.218);
--secondary-foreground: oklch(0.258 0.019 266.832);
--accent: oklch(0.318 0.042 266.224);
--accent-foreground: oklch(0.845 0.026 267.211);
--destructive: oklch(0.629 0.253 28.799);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.064 266.08);
--chart-1: oklch(0.448 0.064 266.08);
--chart-2: oklch(0.791 0.024 267.218);
--chart-3: oklch(0.318 0.042 266.224);
--chart-4: oklch(0.816 0.021 267.254);
--chart-5: oklch(0.445 0.071 265.884);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.173 0.015 266.68);
--foreground: oklch(0.798 0.011 94.007);
--muted: oklch(0.262 0.013 267.07);
--muted-foreground: oklch(0.71 0.023 267.202);
--popover: oklch(0.14 0.009 264.969);
--popover-foreground: oklch(0.874 0.007 93.946);
--card: oklch(0.151 0.011 266.677);
--card-foreground: oklch(0.836 0.009 93.975);
--border: oklch(0.228 0.016 266.88);
--input: oklch(0.258 0.019 266.832);
--primary: oklch(0.448 0.064 266.08);
--primary-foreground: oklch(0.974 0.004 267.395);
--secondary: oklch(0.791 0.024 267.218);
--secondary-foreground: oklch(0.258 0.019 266.832);
--accent: oklch(0.318 0.042 266.224);
--accent-foreground: oklch(0.845 0.026 267.211);
--destructive: oklch(0.629 0.253 28.799);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.064 266.08);
--chart-1: oklch(0.448 0.064 266.08);
--chart-2: oklch(0.791 0.024 267.218);
--chart-3: oklch(0.318 0.042 266.224);
--chart-4: oklch(0.816 0.021 267.254);
--chart-5: oklch(0.445 0.071 265.884);
}