Viow Darker is a shadcn/ui theme built around a neutral gray primary color (#cccccc) with muted blue accents (#434b56). The light mode uses a blue-tinted background (#21252b). Dark mode keeps the neutral gray primary (#cccccc) on a blue-tinted background (#21252b).
| Token | Light | Dark |
|---|---|---|
| Background | #21252bdarkslategray | #21252bdarkslategray |
| Foreground | #d4d1c9lightgrey | #d4d1c9lightgrey |
| Card | #1d2025black | #1d2025black |
| Card foreground | #dfddd7gainsboro | #dfddd7gainsboro |
| Popover | #1b1e23black | #1b1e23black |
| Popover foreground | #ebe9e6linen | #ebe9e6linen |
| Primary | #cccccclightgrey | #cccccclightgrey |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2b2f36darkslategray | #2b2f36darkslategray |
| Muted foreground | #a6aeb9darkgray | #a6aeb9darkgray |
| Accent | #434b56darkslategray | #434b56darkslategray |
| Accent foreground | #e2e5e9gainsboro | #e2e5e9gainsboro |
| Destructive | #ec1c09red | #ec1c09red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #313335darkslategray | #313335darkslategray |
| Input | #393a3cdarkslategray | #393a3cdarkslategray |
| Ring | #cccccclightgrey | #cccccclightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.05:1 | AAA |
| Text on card | 11.99:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 10.05:1 | AAA |
| Text on card | 11.99:1 | AAA |
| Primary button | 7.86:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.98:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Viow Darker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.264 0.013 258.372);
--foreground: oklch(0.861 0.011 90.216);
--muted: oklch(0.305 0.014 258.372);
--muted-foreground: oklch(0.749 0.018 258.36);
--popover: oklch(0.233 0.01 258.372);
--popover-foreground: oklch(0.935 0.005 90.163);
--card: oklch(0.243 0.011 258.372);
--card-foreground: oklch(0.898 0.008 90.189);
--border: oklch(0.319 0.004 258.34);
--input: oklch(0.349 0.004 258.341);
--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.408 0.023 258.372);
--accent-foreground: oklch(0.921 0.006 258.329);
--destructive: oklch(0.6 0.236 30.033);
--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.408 0.023 258.372);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.843 0.003 17.225);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.264 0.013 258.372);
--foreground: oklch(0.861 0.011 90.216);
--muted: oklch(0.305 0.014 258.372);
--muted-foreground: oklch(0.749 0.018 258.36);
--popover: oklch(0.233 0.01 258.372);
--popover-foreground: oklch(0.935 0.005 90.163);
--card: oklch(0.243 0.011 258.372);
--card-foreground: oklch(0.898 0.008 90.189);
--border: oklch(0.319 0.004 258.34);
--input: oklch(0.349 0.004 258.341);
--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.408 0.023 258.372);
--accent-foreground: oklch(0.921 0.006 258.329);
--destructive: oklch(0.6 0.236 30.033);
--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.408 0.023 258.372);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.843 0.003 17.225);
}