Colors and Fonts

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.ts reads the file at build time (no generator step).
  • src/layouts/base.astro writes the colours as --theme-* CSS variables.
  • src/styles/variables.css points every --color-* token at those variables. Lighter steps use color-mix(…), so classes like border-wine/20 follow the theme too.
  • Fonts are written as "Family:wght@400;500" with a <role>_type fallback (serif, sans-serif or monospace). astro.config.ts passes 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) and mono (preloader counter and small details).

Sitepins reads .sitepins/config.json (content, media and config folders) and public/.well-known/sitepins.json.

Improve this page on Github  — Last updated:  Wed, Nov 18, 2026