Vaulting is a shadcn/ui theme built around a deep indigo primary color (#1a0d44) with deep green accents (#0d441a). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the deep indigo primary (#1a0d44) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5f3fcghostwhite | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f5f3fcghostwhite | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1a0d44midnightblue | #1a0d44midnightblue |
| Primary foreground | #ac99eblightsteelblue | #ac99eblightsteelblue |
| Secondary | #441a0dmaroon | #441a0dmaroon |
| Secondary foreground | #ebac99burlywood | #ebac99burlywood |
| Muted | #e2d4d0lightgrey | #2f221dblack |
| Muted foreground | #454545darkslategray | #bababasilver |
| Accent | #0d441adarkgreen | #0d441adarkgreen |
| Accent foreground | #44da67mediumseagreen | #44da67mediumseagreen |
| Destructive | #af1204firebrick | #e11705red |
| Destructive foreground | #fee8e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a0d44midnightblue | #1a0d44midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 6.15:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.93:1 | AAA |
| Accent | 6.15:1 | AA |
| Destructive | 4.85:1 | AA |
Paste this into your globals.css to use Vaulting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 296.923);
--foreground: oklch(0 0 0);
--muted: oklch(0.88 0.016 37.664);
--muted-foreground: oklch(0.39 0 165.964);
--popover: oklch(0.967 0.013 296.841);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.967 0.013 296.841);
--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.221 0.096 286.283);
--primary-foreground: oklch(0.73 0.118 293.995);
--secondary: oklch(0.279 0.069 37.505);
--secondary-foreground: oklch(0.798 0.079 37.616);
--accent: oklch(0.341 0.089 147.269);
--accent-foreground: oklch(0.785 0.201 147.465);
--destructive: oklch(0.479 0.188 30.186);
--destructive-foreground: oklch(0.949 0.025 23.852);
--ring: oklch(0.221 0.096 286.283);
--chart-1: oklch(0.221 0.096 286.283);
--chart-2: oklch(0.279 0.069 37.505);
--chart-3: oklch(0.341 0.089 147.269);
--chart-4: oklch(0.311 0.079 37.428);
--chart-5: oklch(0.22 0.1 285.55);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.265 0.022 37.6);
--muted-foreground: oklch(0.789 0 171.254);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.221 0.096 286.283);
--primary-foreground: oklch(0.73 0.118 293.995);
--secondary: oklch(0.279 0.069 37.505);
--secondary-foreground: oklch(0.798 0.079 37.616);
--accent: oklch(0.341 0.089 147.269);
--accent-foreground: oklch(0.785 0.201 147.465);
--destructive: oklch(0.577 0.229 30.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.221 0.096 286.283);
--chart-1: oklch(0.221 0.096 286.283);
--chart-2: oklch(0.279 0.069 37.505);
--chart-3: oklch(0.341 0.089 147.269);
--chart-4: oklch(0.311 0.079 37.428);
--chart-5: oklch(0.22 0.1 285.55);
}