Brand colours and fonts live in one file, src/config/theme.json, using the same key names as Astroplate so
Sitepins can edit them. Change a value, rebuild, and the whole site follows.
| Key | Used for | Tailwind token |
|---|---|---|
colors.theme_color.primary |
wine: headings, buttons, rules | wine |
colors.theme_color.secondary |
oxblood: dark surfaces | oxblood |
colors.theme_color.accent |
ember: highlights, gradient end | ember |
colors.theme_color.body |
cream: page background | cream |
colors.theme_color.light |
paper: light buttons and cards | paper |
colors.theme_color.muted |
slate: gradient start, logo strip | slate |
colors.text_color.text_dark |
ink: dark text and shadows | ink |
colors.text_color.text_light |
sand: light text on dark sections | sand |
How it is wired:
src/lib/utils/theme.tsreads the file at build time (no generator step).src/layouts/base.astrowrites the colours as--theme-*CSS variables.src/styles/variables.csspoints every--color-*token at those variables. Lighter steps usecolor-mix(…), so classes likeborder-wine/20follow the theme too.- Fonts are written as
"Family:wght@400;500"with a<role>_typefallback (serif,sans-seriformonospace).astro.config.tspasses the names and weights to the Astro Fonts API, which downloads them from Google Fonts at build time and self-hosts them. Roles:heading(italic display serif),body,label(mono labels and buttons) andmono(preloader counter and small details).
Sitepins reads .sitepins/config.json (content, media and config folders) and public/.well-known/sitepins.json.