Skip to content
Astro Rocket
Get in touch

Docs · Make it yours

Colour, fonts and logo

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

All docs pages

The colour

color in src/config/aurora.config.mjs picks one of three colours: 'blue' (the default), 'violet' or 'emerald', a deep green. It colours the whole site: the buttons, the links, the hero, the cards’ edges, the closing band, the post covers, the logo and the favicon. With colorSwitch: true, three dots in the footer let a visitor choose blue, violet or emerald. The browser keeps the choice and the privacy page says so; the favicon and the share images stay in the colour of color. colorSwitch: false, as in the demo, keeps one colour.

Each colour is a scale, --brand-50 to --brand-950, in src/styles/theme.css, under [data-color="violet"], [data-color="blue"] and [data-color="emerald"], with its hue in --rk-hue. src/config/colors.mjs holds the 500, 600, 700 and 800 shades of each as hex, for what can’t read CSS: the browser’s toolbar colour and the share images use the 600, and the favicon goes from the 500 to the 700, like the logo’s badge. 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 closing band 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 Rocket uses Manrope for text, Outfit for headings and JetBrains Mono for code, served from the site itself. They’re registered in fonts in astro.config.mjs, and src/styles/themes/default.css 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.

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 Rocket”, the badge and the favicon show a rocket instead; 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.