Astro Flightdeck has two colours: blue, Tailwind CSS’s blue scale, and violet. Blue is the default. You choose one in src/config/theme.config.mjs:
color: 'blue',
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 dashboard in the homepage’s hero, the feature pictures and the marked plan
- 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 eleven shades, 50 to 950, 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.