Vein for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button10.15:1AAA
Secondary button7.37:1AAA
Muted text6.12:1AA
Accent11.00:1AAA
Destructive7.12:1AAA
Dark mode
Text on background20.47:1AAA
Text on card20.47:1AAA
Primary button10.15:1AAA
Secondary button7.37:1AAA
Muted text7.54:1AAA
Accent11.00:1AAA
Destructive6.14:1AA

CSS variables

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);
}