Skip to content
Astro Lumetric
Start free

Product · · 5 min read

Make Astro Lumetric yours

Your product's name, your text, your logo and the parts you need: the files that turn the demo into your website.

On this page
  1. Your name: site.config.ts
  2. Your logo
  3. The design
  4. Sign in
  5. Sign up
  6. Your text: translations/en.ts
  7. The menu
  8. The announcement bar
  9. Switching parts off
  10. Your posts

The demo is called Astro Lumetric, and its product Lumetric. Put your product’s name in their place, change the text, and the site is yours. Four files do almost all of it: site.config.ts, theme.config.mjs, nav.config.ts and the translations.

Your name: site.config.ts

src/config/site.config.ts holds your product’s name, the site’s description, your email address and your social links.

name: 'Your Product',
description: 'One sentence about your product, for search engines.',
email: 'you@example.com',

The name is the logo in the header and the footer, the favicon, the page titles and the share images. Contact messages go to email. The header’s GitHub icon links to the first GitHub address in socialLinks; without one, there’s no icon.

defaultTheme: 'dark' opens the site in dark mode, and the button in the header lets visitors switch. Set it to 'light', or to 'system' to follow the visitor’s device.

While the name is still Astro Lumetric, the logo is a small bar chart on a lime square. Once you put in your own name, it’s the name’s first letter on that square, and the favicon is the same badge. The site draws the favicon when it builds, so it follows your name by itself.

To use your own logo instead, set letter: false under branding.logo in site.config.ts. Then put your logo files in src/assets/branding/ (logo-full.svg, and logo-full-dark.svg for dark mode) and your own icon in public/favicon.svg.

The design

src/config/theme.config.mjs holds the theme’s switches. The first one to look at is design: 'stage' or 'grid', two ways of drawing the same pages in the same colours. Choose your design shows what each looks like. There’s no colour setting: both designs use one lime accent on near-black or near-white.

Sign in

Most software has an app to sign in to, so the header has a Sign in link beside its button, and the site has a /login/ page with an email and password form.

signIn: { show: true, action: 'https://app.example.com/session' },

action is the full address of your app’s own sign-in endpoint. The form posts email and password there, and the site’s Content Security Policy allows that one address. The site itself never sees them. With action: '', the form’s fields are switched off and a note says sign-in isn’t connected yet, so the page sends nothing. show: false removes the link and the page.

Sign up

The “Start free” buttons, in the header, the hero, the closing bands and on the Free and Growth plans, lead to your app’s own sign-up page once you give its address:

signUp: 'https://app.example.com/signup',

Without one they lead to the Pricing page, as in the demo.

Your text: translations/en.ts

Almost every other line on the site is in src/i18n/translations/en.ts (the privacy page’s text is in src/i18n/privacy/en.astro), grouped by page and section in the order they appear. A comment above many of the groups says where they show.

Lists take their length from what you put in them. Take a quote, a question or a company name out of its list, and the section closes up without a gap. The features are six cards, each with its own picture in its place, so change their words rather than their number.

The homepage’s heading is home.hero.line1 and home.hero.line2 in the Stage design; the Grid design has a heading of its own under home.heroGrid, with the two figures beside its buttons and the words of its bar chart. The dashboard under the Stage hero takes its words from home.mock. The plans, their prices and what each includes are under plans, and the table on the pricing page under pricingPage.compare. The prices and figures are the demo’s: put in your own.

The menu

The header’s menu is in src/config/nav.config.ts, under navItems: Features (a link to the homepage’s #features), Pricing, Docs, Customers and Blog. There’s no Home in it, because the logo leads home. About and Contact are in the footer and the phone menu. The button in the header, Start free, goes to signUp in theme.config.mjs, or to the pricing page without one.

Each item’s label is a key in the translations, such as nav.pricing, and order sets its place.

The announcement bar

The bar above the header carries the demo’s news: the theme on GitHub and a link to the docs. Its words are under announcement in the translations, and its links under announcement.items in theme.config.mjs. Change them, or switch the bar off:

announcement: {
  show: false,

mobile: false hides it on a phone only.

Switching parts off

Everything in theme.config.mjs that turns a part of the site off also takes it out of the menus and the footer, and builds no pages for it:

  • projects: false: the customer stories at /customers/
  • docs: false: the docs at /docs/, which describe the theme and are only meant for its demo
  • showcase: false: the components page at /components/, also for the demo; pnpm dev still shows it
  • signIn.show: false: the Sign in link and /login/
  • newsletter: false: the newsletter signup under each post
  • motion: false, readingProgress: false and backToTop: false: the animations, the bar that fills as you read a post, and the button back to the top

Comments under posts are off to start with: comments.enabled turns them on, once you’ve filled in the settings for Giscus or Artalk.

Your posts

The posts are in src/content/blog/en/, and the customer stories in src/content/projects/en/. Writing posts and adding projects explains their fields.

Related posts

Get started

New to Astro Lumetric?

The first guide installs the theme, runs it on your computer and puts it online.