Astro Rocket has three colours: violet from Astro Aurora, blue, and emerald, a deep green. Blue is the default. You choose one in src/config/aurora.config.mjs:
color: 'violet',
What follows the colour
Everything that has a colour on the site:
- the logo badge and the favicon
- the buttons and the links
- the hero and the closing band
- the covers the theme draws for posts and projects
- the browser’s theme colour and the share images
In dark and light mode
Each colour is a scale of ten shades, from very light to very dark, in src/styles/theme.css. The site picks a shade for each place, so text keeps its contrast in dark and in light mode: white text sits on the darker shades, and coloured text on a dark page uses the lighter ones.
The hero at the top of each page stays dark in light mode too, in the site’s colour.
A colour of your own
To change a colour, change its scale in src/styles/theme.css. The favicon and the browser’s theme colour can’t read that file while the site builds, so they take two plain values from src/config/colors.mjs: shade 600 and shade 800 of each colour. Change those two along with the scale.