Glasgow’s Secret Geometry

For editors and developers

Style guide

Taken from the map, after the cover of Harry Bell’s book and his hand-drawn sightline maps: paper, ink and ochre, IM Fell type and small capitals.

Where things live

  • public/map/css/base.css: tokens, fonts, the masthead and drawer. Shared by the map and the site, so a change here changes both.
  • public/map/css/style.css: the map only.
  • src/styles/site.css: articles, cards, the home page and this guide.
  • src/lib/rehype-gsg.mjs: turns the plain Markdown below into figures, galleries, videos and citations.

Colour

  • --paperpage ground
  • --inktext, Bell’s Glasgow lines
  • --ink-softsecondary text
  • --rule-softlight rules between rows
  • --ochreaccent, frames, Additions
  • --ochre-softhover, notes
  • --redcurrent item, Forgotten Footsteps
  • --blueWatkins’ Roman leys
  • --tealspare

Type

One family, IM Fell English, self-hosted with the map. Small capitals (IM Fell English SC) for labels, headings and the masthead; italic for captions, subtitles and quotations. Text is British English with curly quotes: IM Fell draws straight quotes as ticks, so the site converts them (smartypants) and the map does the same in smart().

Masthead title

Article title, IM Fell

Subtitle, italic in soft ink

Kicker, small capitals in ochre

Body text at 17–18px with a line height of 1.6, in a column of 40rem. A link is underlined and turns ochre on hover. Emphasis and strong.

Markdown, as it renders

Pages are plain Markdown, written in the CMS or a text editor. These conventions cover everything the old site did without HTML.

## The Watkins Country {#watkins}

### A smaller heading

The Watkins Country

A smaller heading

A {#id} at the end of a heading sets its anchor. Use it to keep links from elsewhere working; otherwise the anchor is made from the heading’s words.

![Alfred Watkins](/images/2022_04_aw1.jpg "Alfred Watkins")
Alfred Watkins
Alfred Watkins

An image on its own line becomes a framed figure; the text in quotes becomes its caption. Images show at their own size, up to the width of the column, so upload them at the size they should appear (or larger, for maps and diagrams).

![Harry Bell](/images/harry-01.png) ![Harry Bell](/images/harry-03.png) ![Harry Bell](/images/harry-06.png)

Several images on one line become a gallery.

> If you wish to see it before your own eyes
> Have no fixed thoughts either for or against it
>
> — Seng-t’san

If you wish to see it before your own eyes
Have no fixed thoughts either for or against it

Seng-t’san

A quotation, styled as the map’s epigraph. A last line starting with a dash (—) becomes the citation.

https://www.youtube.com/watch?v=I1bLMjwGa3s

A YouTube link on its own line becomes a video. Playlist links work too.

---

…the Humbie Road.[^1]

[^1]: Sadly, the route is now broken up.

…the Humbie Road.1

  1. Sadly, the route is now broken up.

Components

Shared with the map (base.css):

A rule head with a note

“…came by a straight road, along where there was no path, as far as Cathures”The Life of S. Kentigern

A noteUsed on the map for asides beside a site or alignment.

line swatches, as in the map’s key

Site only (site.css): cards, as on the home page and at the foot of articles, and the map card.

The MapThe map card, on the home page.Open the map →

Forms

Fields use the map’s filter box; the button is the map’s “View all” pill. The contact form (form: contact on a page) is a Netlify Form.