Velocity for shadcn/ui

Velocity is a shadcn/ui theme built around a blue primary color (#24648f) with green accents (#648f24). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#24648f) on a blue-tinted background (#04080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04080bblack
Foreground
#050e14black
#fcfdfdwhite
Card
#fcfcfcsnow
#060b0fblack
Card foreground
#040b10black
#ffffffwhite
Popover
#ffffffwhite
#04080bblack
Popover foreground
#050e14black
#fcfdfdwhite
Primary
#24648fteal
#24648fteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8f2464purple
#8f2464purple
Secondary foreground
#faebf4lavenderblush
#faebf4lavenderblush
Muted
#e8e3e6gainsboro
#1c171ablack
Muted foreground
#5e4554dimgray
#baa1b0darkgray
Accent
#648f24olivedrab
#648f24olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9f2009firebrick
#f35135tomato
Destructive foreground
#fde2ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#24648fteal
#24648fteal

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.37:1AAA
Primary button6.38:1AA
Secondary button7.02:1AAA
Muted text6.75:1AA
Accent3.82:1AA Large
Destructive6.37:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.76:1AAA
Primary button6.38:1AA
Secondary button7.02:1AAA
Muted text7.41:1AAA
Accent3.82:1AA Large
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.02 236.413);
  --muted: oklch(0.921 0.006 340.385);
  --muted-foreground: oklch(0.423 0.04 342.274);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.159 0.02 236.413);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.145 0.017 233.809);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.483 0.094 241.914);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.156 348.382);
  --secondary-foreground: oklch(0.954 0.02 340.713);
  --accent: oklch(0.597 0.142 129.216);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.458 0.166 32.003);
  --destructive-foreground: oklch(0.934 0.031 29.615);
  --ring: oklch(0.483 0.094 241.914);
  --chart-1: oklch(0.483 0.094 241.914);
  --chart-2: oklch(0.451 0.156 348.382);
  --chart-3: oklch(0.597 0.142 129.216);
  --chart-4: oklch(0.478 0.166 348.472);
  --chart-5: oklch(0.485 0.098 242.334);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.011 231.085);
  --foreground: oklch(0.992 0.001 236.449);
  --muted: oklch(0.212 0.009 341.165);
  --muted-foreground: oklch(0.735 0.035 341.28);
  --popover: oklch(0.132 0.011 231.085);
  --popover-foreground: oklch(0.992 0.001 236.449);
  --card: oklch(0.145 0.012 234.609);
  --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.483 0.094 241.914);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.451 0.156 348.382);
  --secondary-foreground: oklch(0.954 0.02 340.713);
  --accent: oklch(0.597 0.142 129.216);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.203 32.365);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.094 241.914);
  --chart-1: oklch(0.483 0.094 241.914);
  --chart-2: oklch(0.451 0.156 348.382);
  --chart-3: oklch(0.597 0.142 129.216);
  --chart-4: oklch(0.478 0.166 348.472);
  --chart-5: oklch(0.485 0.098 242.334);
}