One file sets the look of the whole site. It uses the same keys as Astroplate, so Sitepins CMS can edit it.
{
"colors": {
"theme_color": {
"primary": "#e55817",
"secondary": "#964222",
"accent": "#b4532e",
"body": "#ffffff",
"light": "#efede8",
"border": "#e0ded8",
"dark": "#1a1a1a",
"backdrop": "#20201e"
},
"text_color": {
"text_dark": "#141414",
"text_muted": "#6e6e6a",
"text_light": "#fafaf8"
}
},
"fonts": {
"font_family": {
"body": "Archivo:wght@100..900",
"body_type": "sans-serif",
"heading": "Instrument Serif:wght@400",
"heading_type": "serif",
"mono": "Geist Mono:wght@100..900",
"mono_type": "monospace"
}
}
}
| Key | Used for | Tailwind token |
|---|---|---|
primary |
Accent colour: buttons, highlights, active states | accent |
secondary |
Deep accent shade | accent-deep |
accent |
Rust accent shade | accent-rust |
body |
Page background | body |
light |
Light panels | linen |
border |
Borders and hairlines | sand |
dark |
Dark call-to-action and mobile menu background | ink-soft |
backdrop |
Home page photo backdrop | backdrop |
text_dark |
Main text and dark sections | ink |
text_muted |
Secondary text | stone |
text_light |
Text on dark backgrounds | paper |
Write colours as hex (#rrggbb). src/layouts/base.astro writes them as --theme-* CSS variables, and the
tokens in variables.css read those variables, so a change here recolours every page. Transparent steps are
made with color-mix(), and the animated colours read the same variables through src/lib/utils/theme-color.ts.
Fonts are any Google Fonts family, written as "Family Name:wght@400;500" or as a variable range
"Family Name:wght@100..900"; _type is the fallback (serif, sans-serif or monospace). astro.config.mjs
reads them through src/lib/utils/theme.ts, and Astro downloads and self-hosts the files at build time.
body is the main sans-serif, heading the serif display face, mono the labels and numbers.