Skip to content
Astro Flightdeck
Start free

Docs · Start

Settings

The theme's switches in src/config/theme.config.mjs, and what each one turns on or off.

All docs pages

The theme’s switches are in src/config/theme.config.mjs. Each one has a comment in the file that says what it does.

Setting What it does
language 'en', 'es', 'fr' or 'nl': the language of the whole site. See Languages.
color 'blue' (the default) or 'violet': the site’s colour. See Colour, fonts and logo.
colorSwitch true shows two dots in the footer for visitors to choose blue or violet; false keeps the one colour. The demo has it on.
projects false removes the customer stories at /customers/ and their links in the menus and the footer. See Customer stories.
docs false removes these docs and the links to them in the header’s menu and the footer, and the homepage’s closing band links to the blog instead. The announcement bar’s link to /docs/ stays until you take it out of announcement.items. The docs are for the theme’s demo; turn them off on your own site, or write your product’s own docs in their place.
docsGroups The docs’ groups, in the order the sidebar shows them. Each page in src/content/docs/ names its group in group; a page with a group that isn’t in the list stops the build.
motion false turns the animations off. See The page, the cards and the animations.
newsletter false removes the newsletter signup under each blog post.
readingProgress false removes the reading bar from blog posts.
backToTop false removes the round button in the bottom-right corner that goes back to the top, with a ring that fills as the page scrolls.
comments Comments under posts, from Giscus or Artalk. See Posts.
showcase false removes the components page and the footer’s “The theme” links from the built site. pnpm dev still shows the page.
announcement The bar above the header. See The header and the bar.

Turning a page off

A setting that turns a page off does three things: its route leaves routes in src/config/nav.config.ts, its links leave the menu and the footer, and its page files build nothing. Nothing links to a page that isn’t there.