View is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#dbc7c7). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-black primary (#000000) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #070303black |
| Foreground | #100505black | #ffffffwhite |
| Card | #fdfcfcsnow | #070303black |
| Card foreground | #100505black | #ffffffwhite |
| Popover | #fdfcfcsnow | #070303black |
| Popover foreground | #100505black | #ffffffwhite |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #e9e2e2gainsboro | #2c2121black |
| Secondary foreground | #574242darkslategray | #c9b6b6silver |
| Muted | #e0dcdcgainsboro | #231f1fblack |
| Muted foreground | #5d4b4bdarkolivegreen | #b4a2a2darkgray |
| Accent | #dbc7c7lightgrey | #442c2cdarkslategray |
| Accent foreground | #442c2cdarkslategray | #dbc7c7lightgrey |
| Destructive | #9c1d11firebrick | #ea5143tomato |
| Destructive foreground | #fce6e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.26:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 20.49:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use View in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.189);
--foreground: oklch(0.133 0.022 20.498);
--muted: oklch(0.898 0.004 17.225);
--muted-foreground: oklch(0.432 0.025 18.171);
--popover: oklch(0.991 0.002 17.189);
--popover-foreground: oklch(0.133 0.022 20.498);
--card: oklch(0.991 0.002 17.189);
--card-foreground: oklch(0.133 0.022 20.498);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.918 0.008 17.298);
--secondary-foreground: oklch(0.401 0.03 18.473);
--accent: oklch(0.846 0.023 17.61);
--accent-foreground: oklch(0.322 0.037 19.276);
--destructive: oklch(0.45 0.164 29.961);
--destructive-foreground: oklch(0.941 0.025 23.855);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.918 0.008 17.298);
--chart-3: oklch(0.846 0.023 17.61);
--chart-4: oklch(0.943 0.005 17.253);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.011 18.982);
--foreground: oklch(1 0 180);
--muted: oklch(0.245 0.005 17.504);
--muted-foreground: oklch(0.727 0.022 17.662);
--popover: oklch(0.108 0.011 18.982);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.011 18.982);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.259 0.018 18.364);
--secondary-foreground: oklch(0.791 0.022 17.625);
--accent: oklch(0.322 0.037 19.276);
--accent-foreground: oklch(0.846 0.023 17.61);
--destructive: oklch(0.642 0.192 28.716);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.259 0.018 18.364);
--chart-3: oklch(0.322 0.037 19.276);
--chart-4: oklch(0.289 0.021 18.429);
--chart-5: oklch(0 0 0);
}