Skip to content

Brand Colors

Change Velocity’s colors to match your brand.

The brand color is defined in src/styles/tokens/colors.css:

:root {
/* Default: International Orange (hue: 38) */
--brand-500: oklch(62.5% 0.22 38);
}

For a complete rebrand, update the entire scale:

:root {
/* Blue brand (hue: 260) */
--brand-50: oklch(97.5% 0.02 260);
--brand-100: oklch(94% 0.05 260);
--brand-200: oklch(88% 0.10 260);
--brand-300: oklch(80% 0.15 260);
--brand-400: oklch(72% 0.19 260);
--brand-500: oklch(62.5% 0.22 260); /* Primary */
--brand-600: oklch(54% 0.20 260);
--brand-700: oklch(45% 0.17 260);
--brand-800: oklch(36% 0.13 260);
--brand-900: oklch(26.5% 0.09 260);
}
ColorHue
Red25-30
Orange35-50
Yellow85-95
Green140-150
Teal175-185
Blue250-270
Purple290-310
Pink340-350

Also update the theme color in src/config/site.config.ts:

branding: {
colors: {
themeColor: '#3B82F6', // Your new brand color (hex)
backgroundColor: '#ffffff',
},
},
:root {
/* Purple (hue: 300) */
--brand-50: oklch(97.5% 0.02 300);
--brand-100: oklch(94% 0.05 300);
--brand-200: oklch(88% 0.10 300);
--brand-300: oklch(80% 0.15 300);
--brand-400: oklch(72% 0.19 300);
--brand-500: oklch(62.5% 0.22 300);
--brand-600: oklch(54% 0.20 300);
--brand-700: oklch(45% 0.17 300);
--brand-800: oklch(36% 0.13 300);
--brand-900: oklch(26.5% 0.09 300);
}
site.config.ts
themeColor: '#9333EA',

The brand colors work in both light and dark modes. The semantic tokens handle the adaptation:

/* Light mode uses darker brand shades for text */
--text-brand: var(--brand-600);
/* Dark mode uses lighter brand shades */
.dark {
--text-brand: var(--brand-400);
}