Vigilant is a shadcn/ui theme built around a vivid deep indigo primary color (#160958) with muted light indigo accents (#e1e0e6). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#160958) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #020203black |
| Foreground | #000000black | #faf9fasnow |
| Card | #f8f7fdghostwhite | #040307black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #020203black |
| Popover foreground | #000000black | #faf9fasnow |
| Primary | #160958midnightblue | #160958midnightblue |
| Primary foreground | #ad9ef5lightsteelblue | #ad9ef5lightsteelblue |
| Secondary | #e1e0e6gainsboro | #26242ddarkslategray |
| Secondary foreground | #454252darkslategray | #bdbbc9silver |
| Muted | #e4e3eelavender | #13111cblack |
| Muted foreground | #3f3e41darkslategray | #bebec1silver |
| Accent | #e1e0e6gainsboro | #26242ddarkslategray |
| Accent foreground | #454252darkslategray | #bdbbc9silver |
| Destructive | #6b2201maroon | #e44901orangered |
| Destructive foreground | #ffbd9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160958midnightblue | #160958midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 8.33:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.77:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 10.03:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Vigilant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 293.981);
--foreground: oklch(0 0 0);
--muted: oklch(0.919 0.015 293.762);
--muted-foreground: oklch(0.367 0.004 293.844);
--popover: oklch(0.989 0.004 293.981);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.009 293.894);
--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.235 0.128 277.665);
--primary-foreground: oklch(0.745 0.124 290.723);
--secondary: oklch(0.909 0.008 293.894);
--secondary-foreground: oklch(0.387 0.028 292.711);
--accent: oklch(0.909 0.008 293.894);
--accent-foreground: oklch(0.387 0.028 292.711);
--destructive: oklch(0.361 0.111 40.769);
--destructive-foreground: oklch(0.851 0.087 45.926);
--ring: oklch(0.235 0.128 277.665);
--chart-1: oklch(0.235 0.128 277.665);
--chart-2: oklch(0.909 0.008 293.894);
--chart-3: oklch(0.909 0.008 293.894);
--chart-4: oklch(0.934 0.006 293.945);
--chart-5: oklch(0.234 0.131 276.816);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.01 293.265);
--foreground: oklch(0.984 0.001 294.038);
--muted: oklch(0.187 0.022 291.739);
--muted-foreground: oklch(0.803 0.004 293.983);
--popover: oklch(0.083 0.01 293.265);
--popover-foreground: oklch(0.984 0.001 294.038);
--card: oklch(0.105 0.013 293.265);
--card-foreground: oklch(0.992 0.001 294.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.235 0.128 277.665);
--primary-foreground: oklch(0.745 0.124 290.723);
--secondary: oklch(0.267 0.017 292.88);
--secondary-foreground: oklch(0.798 0.019 293.621);
--accent: oklch(0.267 0.017 292.88);
--accent-foreground: oklch(0.798 0.019 293.621);
--destructive: oklch(0.62 0.202 38.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.128 277.665);
--chart-1: oklch(0.235 0.128 277.665);
--chart-2: oklch(0.267 0.017 292.88);
--chart-3: oklch(0.267 0.017 292.88);
--chart-4: oklch(0.296 0.019 292.825);
--chart-5: oklch(0.234 0.131 276.816);
}