Vein is a shadcn/ui theme built around a light indigo primary color (#efeffb) with light green accents (#effbef). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the light indigo primary (#efeffb) on an indigo-tinted background (#03040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #03040cblack |
| Foreground | #010104black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #03040cblack |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #03040cblack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #efeffbaliceblue | #efeffbaliceblue |
| Primary foreground | #262992midnightblue | #262992midnightblue |
| Secondary | #fbefeflavenderblush | #fbefeflavenderblush |
| Secondary foreground | #922629brown | #922629brown |
| Muted | #e7d0d0gainsboro | #2f1819black |
| Muted foreground | #534646darkslategray | #b9acacdarkgray |
| Accent | #effbefhoneydew | #effbefhoneydew |
| Accent foreground | #124111darkgreen | #124111darkgreen |
| Destructive | #6c1809maroon | #ee593ftomato |
| Destructive foreground | #f8baaflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efeffbaliceblue | #efeffbaliceblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 10.15:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 11.00:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.47:1 | AAA |
| Primary button | 10.15:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 11.00:1 | AAA |
| Destructive | 6.14:1 | AA |
Paste this into your globals.css to use Vein in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 284.751);
--foreground: oklch(0.07 0.022 276.303);
--muted: oklch(0.876 0.026 15.363);
--muted-foreground: oklch(0.407 0.019 15.68);
--popover: oklch(0.99 0.003 284.751);
--popover-foreground: oklch(0.07 0.022 276.303);
--card: oklch(0.99 0.003 284.751);
--card-foreground: oklch(0.07 0.022 276.303);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.956 0.016 284.518);
--primary-foreground: oklch(0.359 0.167 272.705);
--secondary: oklch(0.961 0.013 15.045);
--secondary-foreground: oklch(0.442 0.144 23.662);
--accent: oklch(0.976 0.02 144.486);
--accent-foreground: oklch(0.331 0.092 142.684);
--destructive: oklch(0.352 0.12 32.321);
--destructive-foreground: oklch(0.843 0.074 30.036);
--ring: oklch(0.956 0.016 284.518);
--chart-1: oklch(0.956 0.016 284.518);
--chart-2: oklch(0.961 0.013 15.045);
--chart-3: oklch(0.976 0.02 144.486);
--chart-4: oklch(0.99 0.003 14.851);
--chart-5: oklch(0.955 0.016 284.502);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.023 279.698);
--foreground: oklch(1 0 180);
--muted: oklch(0.242 0.038 18.129);
--muted-foreground: oklch(0.755 0.016 15.188);
--popover: oklch(0.11 0.023 279.698);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.023 279.698);
--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.956 0.016 284.518);
--primary-foreground: oklch(0.359 0.167 272.705);
--secondary: oklch(0.961 0.013 15.045);
--secondary-foreground: oklch(0.442 0.144 23.662);
--accent: oklch(0.976 0.02 144.486);
--accent-foreground: oklch(0.331 0.092 142.684);
--destructive: oklch(0.657 0.189 32.247);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.956 0.016 284.518);
--chart-1: oklch(0.956 0.016 284.518);
--chart-2: oklch(0.961 0.013 15.045);
--chart-3: oklch(0.976 0.02 144.486);
--chart-4: oklch(0.99 0.003 14.851);
--chart-5: oklch(0.955 0.016 284.502);
}