Skip to content
Patchwork
Start free
All docs pages

Docs · Make it yours

Colours, fonts and logo

Where the violet, the typefaces and the logo come from, and what to change for your own.

The colour

The violet is the brand scale, --brand-50 to --brand-900, at the top of src/styles/themes/midnight.css. Each step is an OKLCH colour with hue 295:

--brand-500: oklch(63% 0.25 295);

Buttons, links, focus rings, the announcement bar and the moving light all read these steps. The light reads them in the browser, so a new hue recolours it too.

To change the colour, change the hue in those ten lines. Three things don’t follow the scale:

  • The greys and the dark backgrounds have a slight violet tint, hue 285, in the same file.
  • The highlighted words in the headings and the end of the bar’s gradient are magenta, hue 320 to 330, in HomeView.astro, PortfolioHomeView.astro, AboutView.astro and fx/AnnounceBar.astro.
  • The drawn covers come in three tones (violet, magenta, emerald) in fx/ProjectCover.astro.

Measure the contrast after a change. In dark mode the light never gets brighter than MAX_LUM in fx/LightField.astro, so grey text keeps 4.5:1 over it. A lighter brand colour can need a lower MAX_LUM, or lighter --foreground-muted and --foreground-subtle.

src/styles/theme.css picks the theme file. Velocity’s default.css is there too, in orange.

The fonts

Aurora uses Manrope for text, Outfit for headings and JetBrains Mono for code, self-hosted from their @fontsource-variable packages. They’re registered in fonts in astro.config.mjs, and the theme maps them in midnight.css (--theme-font-sans, --theme-font-display, --theme-font-mono).

For another font: install its @fontsource-variable package, register it in astro.config.mjs, and point the theme variable at it. The first two registered families are preloaded, so keep the text and heading fonts first. Don’t @import font CSS.

The logo is four SVG files in src/assets/branding/:

File Where
logomark.svg The mark on light backgrounds
logomark-dark.svg The mark on dark backgrounds
logo-full.svg Mark and name on light backgrounds
logo-full-dark.svg Mark and name on dark backgrounds

Replace them with yours, keeping the names. The favicon is public/favicon.svg. The share images are made at build time from the logo and branding.colors.themeColor in site.config.ts.