Vector for shadcn/ui

Vector is a shadcn/ui theme built around a vivid light cyan primary color (#f2fcfd) with vivid light green accents (#fcfdf2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light cyan primary (#f2fcfd) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#ffffffwhite
#020303black
Foreground
#051314black
#fcfdfdwhite
Card
#fcfcfcsnow
#040607black
Card foreground
#040f10black
#ffffffwhite
Popover
#ffffffwhite
#020303black
Popover foreground
#051314black
#fcfdfdwhite
Primary
#f2fcfdazure
#f2fcfdazure
Primary foreground
#0a454cdarkslategray
#0a454cdarkslategray
Secondary
#fdf2fclavenderblush
#fdf2fclavenderblush
Secondary foreground
#a61795mediumvioletred
#a61795mediumvioletred
Muted
#dbd7dagainsboro
#282428darkslategray
Muted foreground
#635a62dimgray
#a59ca4darkgray
Accent
#fcfdf2ivory
#fcfdf2ivory
Accent foreground
#454c0adarkolivegreen
#454c0adarkolivegreen
Destructive
#df1907red
#f83b2aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2fcfdazure
#f2fcfdazure

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card19.00:1AAA
Primary button10.20:1AAA
Secondary button6.05:1AA
Muted text4.64:1AA
Accent8.93:1AAA
Destructive4.92:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.29:1AAA
Primary button10.20:1AAA
Secondary button6.05:1AA
Muted text5.72:1AA
Accent8.93:1AAA
Destructive3.70:1AA Large

CSS variables

Paste this into your globals.css to use Vector in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.173 0.02 205.983);
  --muted: oklch(0.883 0.006 329.214);
  --muted-foreground: oklch(0.478 0.018 329.558);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.173 0.02 205.983);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.157 0.018 205.284);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.983 0.011 206.376);
  --primary-foreground: oklch(0.358 0.057 208.484);
  --secondary: oklch(0.972 0.018 329.351);
  --secondary-foreground: oklch(0.506 0.213 334.022);
  --accent: oklch(0.99 0.015 112.069);
  --accent-foreground: oklch(0.397 0.085 116.421);
  --destructive: oklch(0.574 0.226 30.043);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.011 206.376);
  --chart-1: oklch(0.983 0.011 206.376);
  --chart-2: oklch(0.972 0.018 329.351);
  --chart-3: oklch(0.99 0.015 112.069);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.011 206.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.006 204.718);
  --foreground: oklch(0.993 0.001 206.434);
  --muted: oklch(0.267 0.008 329.49);
  --muted-foreground: oklch(0.703 0.016 329.397);
  --popover: oklch(0.095 0.006 204.718);
  --popover-foreground: oklch(0.993 0.001 206.434);
  --card: oklch(0.119 0.007 204.718);
  --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.983 0.011 206.376);
  --primary-foreground: oklch(0.358 0.057 208.484);
  --secondary: oklch(0.972 0.018 329.351);
  --secondary-foreground: oklch(0.506 0.213 334.022);
  --accent: oklch(0.99 0.015 112.069);
  --accent-foreground: oklch(0.397 0.085 116.421);
  --destructive: oklch(0.643 0.227 29.788);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.011 206.376);
  --chart-1: oklch(0.983 0.011 206.376);
  --chart-2: oklch(0.972 0.018 329.351);
  --chart-3: oklch(0.99 0.015 112.069);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.011 206.374);
}