Skip to content
Astro Lumetric
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
On this page
  1. Sign in
  2. Sign up
  3. Turning a page off

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.
design 'stage' (the default) or 'grid': two designs of the same site. Restart pnpm dev after changing it. See Designs and colours.
signIn show and action: the Sign in link and the /login/ page. See Sign in below.
signUp The address of your app’s sign-up page: where the “Start free” buttons lead. See Sign up below.
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, and a group with no pages doesn’t show.
showcase false removes the components page and the footer’s “The theme” links from the built site. pnpm dev still shows the page.
motion false turns the animations off. See Effects and animations.
readingProgress false removes the thin lime bar along the top of the window that fills as a reader goes through a blog post.
backToTop false removes the round button in the bottom-right corner that goes back to the top. It shows once the page has scrolled 400px, with a ring that fills as the page scrolls.
newsletter false removes the newsletter signup under each blog post, and its part of the privacy page. See Forms.
comments Comments under posts, from Giscus or Artalk. See Posts.
announcement The bar above the header. See The header and the bar.

There’s no colour setting: the site has one set of colours, with a lime accent, in src/styles/themes/lime.css. Designs and colours says how to change it.

Sign in

signIn is for the people who use your product: a “Sign in” link in the header and the phone menu, and a sign-in page at /login/ with an email address and password form (src/views/LoginView.astro, its words under login in the translations).

signIn: { show: true, action: '' },
Field What it does
show false removes the link, the phone menu’s button and the page.
action The full address of your app’s own sign-in endpoint, such as 'https://app.example.com/session'. The form posts email and password there; the site itself never receives or keeps them.

The site can’t sign anyone in by itself. Without an action ('', as in the demo), the form’s fields are switched off, so it sends nothing, and a note under it says sign-in isn’t connected yet.

With an action, two more things follow it when the site builds:

  • the Content Security Policy’s form-action allows that address’s origin beside the site’s own (astro.config.mjs), so the browser lets the form post there;
  • the privacy page gets a section, “Signing in”, that names the address’s host and says the site doesn’t receive or keep what’s typed (src/i18n/privacy/<language>.astro).

action has to be a full address that starts with https://: the build reads its origin from it.

Sign up

signUp is the full address of your app’s own sign-up page, such as 'https://app.example.com/signup'.

signUp: '',

The “Start free” buttons lead there, in the same tab:

  • the header’s button and the phone menu’s;
  • the homepage hero’s first button, in both designs;
  • the first button of the closing bands on the homepage, Pricing, About and the customer stories;
  • the Free and Growth plans, on the homepage and on Pricing.

Without an address ('', as in the demo), they lead to the Pricing page. “Compare plans” on the homepage always leads to Pricing, and the last plan, Scale, to Contact. It’s a plain link: the site sends nothing to the address, so the privacy page doesn’t change. The address is read when the site builds (src/lib/sign-up.ts).

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.