Skip to content

Customizing Templates — User Guide

Quick Reference

  • Who: Developer (intermediate+)
  • Where: templates/astro-premium/ and astro-site/
  • Time: ~15-30 minutes
  • Prerequisites: Node.js 18+, familiarity with CSS

This guide is for: Developer Dana

Job To Be Done: Configure tooling for team

ElementFileScope
Site title and URLastro.config.mjsGlobal
Color palettesrc/styles/custom.cssSitewide
Sidebar orderYAML frontmatter sidebar.orderPer-page
Social linksastro.config.mjs social arrayHeader
Mermaid diagram colorsskills/content-guidelines.mdAll diagrams
Fontscustom.css @importTypography

Open astro-site/astro.config.mjs and update:

export default defineConfig({
site: 'https://your-docs-url.com', // Your deployment URL
integrations: [
starlight({
title: 'Your Project', // Site title
social: { github: 'https://...' }, // Social links
}),
],
});

Edit astro-site/src/styles/custom.css to change colors:

:root {
--sl-color-accent-low: #your-color;
--sl-color-accent: #your-color;
--sl-color-accent-high: #your-color;
}

In any doc file’s frontmatter, set the sidebar order:

---
sidebar:
order: 1 # Lower numbers appear first
---