Skip to content
Patchwork
Start free

Product · · 2 min read

Making Aurora yours: colour, fonts and logo

The violet, the two typefaces and the logo: which files hold them and what changes when you change them.

On this page
  1. The colour
  2. The fonts
  3. The logo

Aurora is violet, set in Manrope and Outfit, with Patchwork’s logo in the demo. All three are in a few files, and changing them changes the whole site.

The colour

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

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

Change the hue in those ten lines and the buttons, links, focus rings, the announcement bar and the moving light follow. The light reads the scale in the browser, so it changes with it.

A few things don’t follow the scale. The greys have a slight violet tint, the highlighted words in the headings end in magenta, and the drawn covers come in violet, magenta and emerald. Colours, fonts and logo lists where each one is.

After a change, measure the contrast in both modes. In dark mode the light is capped at MAX_LUM in fx/LightField.astro, so grey text keeps 4.5:1 over it. A lighter brand colour can need a lower cap.

The fonts

Text is Manrope, headings are Outfit, and code is JetBrains Mono, all three self-hosted from @fontsource-variable packages and registered in fonts in astro.config.mjs. For another font, install its package, register it, and point --theme-font-sans or --theme-font-display in midnight.css at it. Keep the text and heading fonts first in the list: the first two are preloaded.

Four SVG files in src/assets/branding/ make the logo: the mark and the full logo, each for light and for dark backgrounds. Replace them and keep the names. The favicon is public/favicon.svg.

The share images for every page are made at build time from the logo and themeColor in site.config.ts, so set that to your colour as well.

Back to blog
Share:

Related posts

Start today

Your next release, read by everyone.

Free for 14 days. No credit card needed.