Skip to content
Astro Lumetric
Start free

Docs · Make it yours

Designs and colours

The two designs, the lime accent and how to change it, the typefaces, and the letter logo or your own.

All docs pages
On this page
  1. The two designs
  2. The colours
  3. Changing the accent
  4. The fonts
  5. The logo and the favicon
  6. The share images

The two designs

design in src/config/theme.config.mjs picks one of two designs: 'stage' (the default) or 'grid'. Both are the same site, with the same pages, words and colours; they differ in layout and type. BaseLayout puts the choice on <html data-design>, the rules both share and each design’s own are in src/styles/theme.css, and the parts that differ (the hero, the homepage, the features, the closing band, the sign-in page) render their own markup for each.

stage grid
The page Sections on the page’s own background, some on the second background (tone="secondary" on Section) Ruled into four columns by fine lines that stay in place behind the page (on a phone, only the column’s two edges); one background, and each section starts with a line across the column
The hero Centred, with a soft lime glow behind it; on the homepage the dashboard picture (AppMock) under the buttons Left-aligned, with a larger heading; on the homepage the last word of the first line sits on a lime block, two figures stand beside the buttons, and a bar chart (HeroStrip) runs under them
Section headings A small label in lime capitals above the heading The label on the section’s line, numbered down the page: 01, 02…
Cards Rounded, with gaps between them Square, side by side on the lines, sharing their borders
The closing band A rounded near-black card with a lime glow at its foot, centred, the same in light and dark mode No card: a ruled block with a numbered label, the heading on the left, the line, the buttons and the points on the right, and a lime square in the corner
The header A fine line under it, across the page The line only across the ruled column
The sign-in page One card in the middle, over a lime glow Two halves: the heading on the left, the form on the right
Typeface Inter Tight Space Grotesk

Both use JetBrains Mono for small labels, figures and code.

astro.config.mjs reads design to load only that design’s typeface, so restart pnpm dev after changing it.

The colours

There’s one set of colours, in src/styles/themes/lime.css: near-white in light mode, near-black in dark mode, and one lime accent for the buttons, badges, highlights and charts. The same lime is used in both modes, always with dark text on it. There’s no colour setting and no colour switch for visitors; they choose light or dark with the button in the header, and the demo opens in dark mode (defaultTheme in site.config.ts).

Token What it’s for
--lime The accent as a fill: the primary buttons, badges, bars and dots
--lime-hover A primary button under the pointer, a step deeper
--on-lime Text on the lime (16:1)
--lime-ink The accent as text or a thin line. The lime is too pale to read on the light page, so in light mode it’s a deeper green (5.2:1 on the page); in dark mode it’s the lime itself. .text-lime uses it.
--lime-glow The soft glow behind the stage heroes and the sign-in page, and under the marked plan in stage, mixed from the lime
--rk-hue The lime’s hue, 122, for the few places that mix their own tint
--brand-50 to --brand-950 The scale Velocity’s components read: the 300 to 500 are the lime, the 600 and darker run from --lime-ink deeper

The same file holds the greys, the backgrounds, the borders and the dark mode’s values (under .dark). A few parts are dark in both modes: the announcement bar, the dashboard picture, the stage closing band and the covers the theme draws. Inside the classes dark rk-dark-scope, anything takes the dark mode’s colours.

Changing the accent

  1. In lime.css, change --lime, --lime-hover, --on-lime, --lime-ink, --rk-hue and the --brand-* scale to your colour. Keep --on-lime readable on --lime (4.5:1 at least) and --lime-ink at 4.5:1 on the light page.
  2. In src/config/colors.mjs, put the new --lime and --on-lime in as hex (lime, onLime). That file is for what can’t read CSS: the favicon, the browser’s toolbar colour and the share images.
  3. If you use your own logo files, change the colour in them too.

The buttons follow: the primary is lime with dark text in both modes; the outline buttons have a border in the stronger border colour and the page’s text.

The fonts

The typefaces are served from the site itself, through Astro’s Fonts API. fonts in astro.config.mjs registers the design’s face as --font-face (Inter Tight for stage, Space Grotesk for grid) and JetBrains Mono as --font-face-mono, from their @fontsource-variable packages. lime.css maps them to --theme-font-sans, --theme-font-display and --theme-font-mono.

For another typeface: install its @fontsource-variable package and change the design’s line in fonts in astro.config.mjs to it, keeping cssVariable: '--font-face'. Don’t @import font CSS.

The share images (integrations/og-images.mjs) and the favicon’s letter (src/lib/favicon/svg.ts) are drawn in the design’s face too, when the site builds: src/config/design-font.mjs names it and reads it from its static @fontsource package (@fontsource/inter-tight or @fontsource/space-grotesk), because they need WOFF files rather than the pages’ WOFF2. For another typeface, install its @fontsource package as well and add it to design-font.mjs.

The logo and the favicon

With letter: true under branding.logo in site.config.ts, the logo is the first letter of your name in dark type on a lime square, beside the name (src/components/site/Monogram.astro). While name is still the theme’s own, “Astro Lumetric”, the square shows Lucide’s chart-no-axes-column, a small bar chart, instead (src/config/brand-mark.mjs); put in your own name and it shows its first letter.

When the site builds, integrations/favicon.mjs writes favicon.svg as the same badge: the letter (or the bar chart) in onLime on a rounded lime square, both from src/config/colors.mjs. The letter is drawn as a shape, so it shows where the font isn’t loaded. In pnpm dev the browser shows public/favicon.svg instead.

For your own logo, set letter to false and put your files in src/assets/branding/:

File Where
logo-full.svg Your logo with your name, on light backgrounds
logo-full-dark.svg The same, on dark backgrounds
logomark.svg, logomark-dark.svg The mark alone

Your own favicon goes in public/favicon.svg; with letter: false the build leaves it alone.

The share images

Every page gets a share image, 1200 × 630, made when the site builds: a near-black card with the mark, the site’s name, the page’s title and description, and the address beside a short bar in the theme colour (branding.colors.themeColor). The mark comes from logomark-dark.svg, or logomark.svg without it, whichever logo the site shows, so replace those with your own mark. A var(--logo-accent) fill in them is drawn in the theme colour.