Viow Mars is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted deep pink accents (#422934). The light mode uses a pink-tinted background (#130c0f). Dark mode keeps the neutral gray primary (#cccccc) on a pink-tinted background (#130c0f).
| Token | Light | Dark |
|---|---|---|
| Background | #130c0fblack | #130c0fblack |
| Foreground | #d4d1c9lightgrey | #d4d1c9lightgrey |
| Card | #0d080ablack | #0d080ablack |
| Card foreground | #dfddd7gainsboro | #dfddd7gainsboro |
| Popover | #090607black | #090607black |
| Popover foreground | #ebe9e6linen | #ebe9e6linen |
| Primary | #cccccclightgrey | #cccccclightgrey |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2b2226darkslategray | #2b2226darkslategray |
| Muted foreground | #b09ba4darkgray | #b09ba4darkgray |
| Accent | #422934darkslategray | #422934darkslategray |
| Accent foreground | #dac3cdthistle | #dac3cdthistle |
| Destructive | #ec4e32tomato | #ec4e32tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #20181cblack | #20181cblack |
| Input | #281f23black | #281f23black |
| Ring | #cccccclightgrey | #cccccclightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.67:1 | AAA |
| Text on card | 14.65:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.69:1 | AA Large |
| Text on background | 12.67:1 | AAA |
| Text on card | 14.65:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.95:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Viow Mars in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.164 0.014 350.9);
--foreground: oklch(0.861 0.011 90.216);
--muted: oklch(0.263 0.016 350.316);
--muted-foreground: oklch(0.711 0.028 349.805);
--popover: oklch(0.128 0.009 348.609);
--popover-foreground: oklch(0.935 0.005 90.163);
--card: oklch(0.141 0.01 349.524);
--card-foreground: oklch(0.898 0.008 90.189);
--border: oklch(0.221 0.013 350.295);
--input: oklch(0.252 0.016 350.416);
--primary: oklch(0.845 0 164.055);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.316 0.04 352.042);
--accent-foreground: oklch(0.84 0.028 349.642);
--destructive: oklch(0.639 0.199 32.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0 164.055);
--chart-1: oklch(0.845 0 164.055);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.316 0.04 352.042);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.843 0.003 17.225);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.014 350.9);
--foreground: oklch(0.861 0.011 90.216);
--muted: oklch(0.263 0.016 350.316);
--muted-foreground: oklch(0.711 0.028 349.805);
--popover: oklch(0.128 0.009 348.609);
--popover-foreground: oklch(0.935 0.005 90.163);
--card: oklch(0.141 0.01 349.524);
--card-foreground: oklch(0.898 0.008 90.189);
--border: oklch(0.221 0.013 350.295);
--input: oklch(0.252 0.016 350.416);
--primary: oklch(0.845 0 164.055);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.316 0.04 352.042);
--accent-foreground: oklch(0.84 0.028 349.642);
--destructive: oklch(0.639 0.199 32.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0 164.055);
--chart-1: oklch(0.845 0 164.055);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.316 0.04 352.042);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.843 0.003 17.225);
}