Vector for shadcn/ui

Vector is a shadcn/ui theme built around a light orange primary color (#ddc6b6) with light blue accents (#b6cddd). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#ddc6b6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#040201black
#fdfcfcsnow
Card
#fdf9f7snow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf9f7snow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#ddc6b6silver
#ddc6b6silver
Primary foreground
#422e1fdarkslategray
#422e1fdarkslategray
Secondary
#b6cdddlightsteelblue
#b6cdddlightsteelblue
Secondary foreground
#1f3342darkslategray
#1f3342darkslategray
Muted
#dde4e9gainsboro
#161d22black
Muted foreground
#434547darkslategray
#b8babcsilver
Accent
#b6cdddlightsteelblue
#b6cdddlightsteelblue
Accent foreground
#1f3342darkslategray
#1f3342darkslategray
Destructive
#7a230bmaroon
#ef6843tomato
Destructive foreground
#f9cabdpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ddc6b6silver
#ddc6b6silver

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.11:1AAA
Primary button7.81:1AAA
Secondary button7.90:1AAA
Muted text7.49:1AAA
Accent7.90:1AAA
Destructive6.86:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.81:1AAA
Secondary button7.90:1AAA
Muted text8.74:1AAA
Accent7.90:1AAA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 58.324);
  --foreground: oklch(0.093 0.013 68.938);
  --muted: oklch(0.915 0.01 238.525);
  --muted-foreground: oklch(0.389 0.004 238.521);
  --popover: oklch(0.985 0.006 58.284);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.006 58.284);
  --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.842 0.034 57.804);
  --primary-foreground: oklch(0.319 0.039 56.386);
  --secondary: oklch(0.835 0.033 238.95);
  --secondary-foreground: oklch(0.312 0.037 240.547);
  --accent: oklch(0.835 0.033 238.95);
  --accent-foreground: oklch(0.312 0.037 240.547);
  --destructive: oklch(0.391 0.125 35.323);
  --destructive-foreground: oklch(0.877 0.057 35.965);
  --ring: oklch(0.842 0.034 57.804);
  --chart-1: oklch(0.842 0.034 57.804);
  --chart-2: oklch(0.835 0.033 238.95);
  --chart-3: oklch(0.835 0.033 238.95);
  --chart-4: oklch(0.859 0.028 238.844);
  --chart-5: oklch(0.842 0.036 57.757);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 58.351);
  --muted: oklch(0.226 0.015 239.369);
  --muted-foreground: oklch(0.789 0.004 238.428);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.842 0.034 57.804);
  --primary-foreground: oklch(0.319 0.039 56.386);
  --secondary: oklch(0.835 0.033 238.95);
  --secondary-foreground: oklch(0.312 0.037 240.547);
  --accent: oklch(0.835 0.033 238.95);
  --accent-foreground: oklch(0.312 0.037 240.547);
  --destructive: oklch(0.678 0.174 36.303);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.842 0.034 57.804);
  --chart-1: oklch(0.842 0.034 57.804);
  --chart-2: oklch(0.835 0.033 238.95);
  --chart-3: oklch(0.835 0.033 238.95);
  --chart-4: oklch(0.859 0.028 238.844);
  --chart-5: oklch(0.842 0.036 57.757);
}