Skip to content
Astro Flightdeck
Start free

Docs · Make it yours

Colour, fonts and logo

The two colours, the typefaces, and the letter logo or your own.

All docs pages
On this page
  1. The colour
  2. The fonts
  3. The logo

The colour

color in src/config/theme.config.mjs picks one of two colours: 'blue' (the default) or 'violet'. Blue is Tailwind CSS’s blue scale (v4). The colour runs through the whole site: the buttons, the links, the hero, the dashboard in the homepage’s hero, the cards’ edges, the closing band, the post covers, the logo and the favicon. With colorSwitch: true, two dots in the footer let a visitor choose blue or violet. The browser keeps the choice and the privacy page says so; the favicon and the share images stay in the colour of color. The demo has it on; colorSwitch: false keeps one colour.

Each colour is a scale, --brand-50 to --brand-950, in src/styles/theme.css, under [data-color="blue"] and [data-color="violet"], with its hue in --rk-hue. src/config/colors.mjs holds the 600 and 800 shades of each as hex, for what can’t read CSS: the browser’s toolbar colour, the share images and the favicon. Change them together with the scale.

Grey text keeps at least 4.5:1 on the sections and the cards in both modes. Measure the contrast after changing a scale.

The hero, the call to action before the footer and the footer stay dark in light mode too. The footer has dark mode’s dark blue-grey and its light text, so it’s the same in both modes (src/components/site/SiteFooter.astro).

The fonts

Astro Flightdeck uses Geist for text and headings and Geist Mono for code, served from the site itself. They’re registered in fonts in astro.config.mjs, and src/styles/themes/midnight.css, the theme src/styles/theme.css loads, maps them (--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. Don’t @import font CSS. The share images use Geist too, from @fontsource/geist (integrations/og-images.mjs), and the favicon’s letter is drawn from a Geist subset in src/lib/favicon/font-data.ts; change those with the font.

With letter: true under branding.logo in site.config.ts, the logo is the first letter of your name in a badge in the site’s colour, and the build writes the favicon with the same letter and colour. While name is still the theme’s own, “Astro Flightdeck”, the badge and the favicon show Lucide’s gauge instead (src/config/brand-mark.mjs); put in your own name and they show its first letter.

For your own logo, set letter to false and put your files in src/assets/branding/:

File Where
logo-full.svg Your logo with your name, on light backgrounds
logo-full-dark.svg The same, on dark backgrounds
logomark.svg, logomark-dark.svg The mark alone; the share images use it

Your own favicon goes in public/favicon.svg; with letter: false the build leaves it alone.