Vast is a shadcn/ui theme built around a near-black primary color (#0d0c0d) with near-black accents (#0c0d0d). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0d0c0d) on a neutral background (#040203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040203black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #070305black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #070305black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0d0c0dblack | #0d0c0dblack |
| Primary foreground | #a9a2a6darkgray | #a9a2a6darkgray |
| Secondary | #0c0d0dblack | #0c0d0dblack |
| Secondary foreground | #a2a9a5darkgray | #a2a9a5darkgray |
| Muted | #dcefe4gainsboro | #102318black |
| Muted foreground | #525754dimgray | #a8adabdarkgray |
| Accent | #0c0d0dblack | #0c0d0dblack |
| Accent foreground | #a2a9a5darkgray | #a2a9a5darkgray |
| Destructive | #c12806firebrick | #f84820orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d0c0dblack | #0d0c0dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 5.87:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.49:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Vast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.935 0.025 161.144);
--muted-foreground: oklch(0.45 0.008 161.379);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.157 0.002 342.125);
--primary-foreground: oklch(0.72 0.01 342.138);
--secondary: oklch(0.159 0.002 161.49);
--secondary-foreground: oklch(0.729 0.01 161.477);
--accent: oklch(0.159 0.002 161.49);
--accent-foreground: oklch(0.729 0.01 161.477);
--destructive: oklch(0.527 0.192 32.752);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.157 0.002 342.125);
--chart-1: oklch(0.157 0.002 342.125);
--chart-2: oklch(0.159 0.002 161.49);
--chart-3: oklch(0.159 0.002 161.49);
--chart-4: oklch(0.194 0.003 161.413);
--chart-5: oklch(0.156 0.004 342.362);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.012 341.824);
--foreground: oklch(1 0 180);
--muted: oklch(0.236 0.033 157.709);
--muted-foreground: oklch(0.744 0.007 161.58);
--popover: oklch(0.109 0.014 341.824);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.014 341.824);
--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.157 0.002 342.125);
--primary-foreground: oklch(0.72 0.01 342.138);
--secondary: oklch(0.159 0.002 161.49);
--secondary-foreground: oklch(0.729 0.01 161.477);
--accent: oklch(0.159 0.002 161.49);
--accent-foreground: oklch(0.729 0.01 161.477);
--destructive: oklch(0.652 0.218 33.669);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.157 0.002 342.125);
--chart-1: oklch(0.157 0.002 342.125);
--chart-2: oklch(0.159 0.002 161.49);
--chart-3: oklch(0.159 0.002 161.49);
--chart-4: oklch(0.194 0.003 161.413);
--chart-5: oklch(0.156 0.004 342.362);
}