5.2.4
Looks
Pick Vega's color set, type pairing, mode, map style, map side and details.
You pick the look in one file, src/theme.config.ts. It applies to both content sources. It has these settings:
colorSet: the colors. See Color sets.pairing: the type. See Type pairings.mode:"light"(the default),"dark"or"system".mapStyle: the map’s look. See The map.mapSide: the side the map takes on a wide screen."end"(the default) or"start".details: four switches, each on by default. See Details.
For example:
export const colorSet: ColorSet = "spruce";
export const pairing: Pairing = "dm";
export const mapSide: MapSide = "start";
pnpm check, pnpm dev and every build stop on an unknown value.
Color sets
"slate": cool neutrals and a dark blue-gray button, the default."limestone": warm neutrals and a brass accent."spruce": deep green, with a lime call to action and band.
Each set has light and dark colors. Each is a file in src/styles/sets/. Run pnpm test:skins after you change one.
Type pairings
"source": Vega Serif for major headings, with Albert Sans, the default. Vega Serif is derived from Source Serif 4."dm": DM Serif Display with Albert Sans."albert": Albert Sans alone.
Each is a file in src/styles/pairings/. To keep pages fast, the Vega Serif files hold only the weights the theme draws: upright 500 and italic 400. For another serif weight, follow the note at the top of src/styles/fonts.css.
The fonts are under the SIL Open Font License 1.1. src/assets/fonts/OFL.txt has the license and each font’s copyright line.
Mode
mode sets the site’s color mode. "system" follows the visitor’s own device setting. A small script at the top of the page applies the mode before the page paints.
The theme has no light and dark switch in its nav.
The map
mapStyle takes one of these:
"astronomic": drawn in your site’s colors, the default.- An OpenFreeMap style by name:
"liberty","bright","positron","dark"or"fiord". - The
httpsaddress of your own style.
mapSide sets which side of the search page the map takes on a wide screen.
If you use a style from another service, update the privacy page and keep that service’s attribution visible. See The map’s requests.
Details
export const details: Record<Detail, boolean> = { coordinates: true, compass: true, dateCard: true, priceCut: true };
coordinates: the hero’s place line. It also needsplacein the settings.compass: the direction and miles on a neighborhood. It also needsoriginin the settings.dateCard: the large open house date on a card’s photo.priceCut: a price cut on a card.
Words, favicon and share images
The theme’s own words, such as button labels, empty states and page titles, are in src/theme.strings.ts and the files in src/strings/. Change a word once, and every page follows.
Replace public/favicon.svg with your own mark.
Every public page gets a share image. Its look is in src/share-card.ts and src/utils/share-look.ts.