Violet Glow Walrus is a shadcn/ui theme built around a vivid indigo primary color (#421af4) with neutral gray accents (#cdccd1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the vivid indigo primary (#421af4) on an indigo-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #06050bblack |
| Foreground | #080415black | #ffffffwhite |
| Card | #fcfbfewhite | #06050bblack |
| Card foreground | #080415black | #ffffffwhite |
| Popover | #fcfbfewhite | #06050bblack |
| Popover foreground | #080415black | #ffffffwhite |
| Primary | #421af4blue | #421af4blue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cdccd1lightgrey | #2f2c3adarkslategray |
| Secondary foreground | #343239darkslategray | #c8c5d3thistle |
| Muted | #dbd8e9gainsboro | #191627black |
| Muted foreground | #4f4f4fdarkslategray | #b0b0b0darkgray |
| Accent | #cdccd1lightgrey | #2f2c3adarkslategray |
| Accent foreground | #343239darkslategray | #c8c5d3thistle |
| Destructive | #952c09saddlebrown | #f26536tomato |
| Destructive foreground | #fcded4antiquewhite | #000000black |
| Border | #e7e6ealavender | #1b1a1eblack |
| Input | #e7e6ealavender | #1b1a1eblack |
| Ring | #421af4blue | #421af4blue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Violet Glow Walrus in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 294.768);
--foreground: oklch(0.129 0.038 290.718);
--muted: oklch(0.889 0.023 294.331);
--muted-foreground: oklch(0.428 0 180);
--popover: oklch(0.99 0.003 294.768);
--popover-foreground: oklch(0.129 0.038 290.718);
--card: oklch(0.99 0.003 294.768);
--card-foreground: oklch(0.129 0.038 290.718);
--border: oklch(0.927 0.005 294.724);
--input: oklch(0.927 0.005 294.724);
--primary: oklch(0.472 0.282 274.92);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.847 0.008 294.647);
--secondary-foreground: oklch(0.322 0.011 294.164);
--accent: oklch(0.847 0.008 294.647);
--accent-foreground: oklch(0.322 0.011 294.164);
--destructive: oklch(0.45 0.145 36.501);
--destructive-foreground: oklch(0.923 0.036 39.315);
--ring: oklch(0.472 0.282 274.92);
--chart-1: oklch(0.472 0.282 274.92);
--chart-2: oklch(0.847 0.008 294.647);
--chart-3: oklch(0.847 0.008 294.647);
--chart-4: oklch(0.871 0.007 294.68);
--chart-5: oklch(0.473 0.288 274.086);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.017 293.982);
--foreground: oklch(1 0 180);
--muted: oklch(0.213 0.033 291.707);
--muted-foreground: oklch(0.757 0 180);
--popover: oklch(0.118 0.017 293.982);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.017 293.982);
--card-foreground: oklch(1 0 180);
--border: oklch(0.22 0.009 294.08);
--input: oklch(0.22 0.009 294.08);
--primary: oklch(0.472 0.282 274.92);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.303 0.024 293.326);
--secondary-foreground: oklch(0.831 0.018 294.409);
--accent: oklch(0.303 0.024 293.326);
--accent-foreground: oklch(0.831 0.018 294.409);
--destructive: oklch(0.677 0.185 38.211);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.472 0.282 274.92);
--chart-1: oklch(0.472 0.282 274.92);
--chart-2: oklch(0.303 0.024 293.326);
--chart-3: oklch(0.303 0.024 293.326);
--chart-4: oklch(0.33 0.027 293.278);
--chart-5: oklch(0.473 0.288 274.086);
}