30

After Dark

A story for reading at night — dark paper, a grotesque, roomier lines.

Setting the type…

After Dark

A story set for the hours when the screen is the brightest thing in the room.

This page's theme changes three things. The paper is dark, so the page doesn't glare. The body is set in Space Grotesk, a size larger than the default, with more room between the lines. And the headings use Instrument Serif, a narrow display face that reads well in the dark.

A story is paginated by measuring its own type, so changing the type changes the pages. The paginator never needs to be told. It reads the size and line height these settings produce, and the larger text here simply makes for more pages than the same words would take in the default type.

What the theme says

All of it fits in the frontmatter:

theme:
    colors: { background: '#0d1018', paper: '#0d1018' }
    fonts: { sans: space-grotesk, display: instrument-serif, mono: jetbrains-mono }
    story: { size: 18, leading: 30 }

The code above is set in JetBrains Mono, the third face this page picks.

What it leaves alone

The cover's gradient is still the page's own palette, and the tile on the home screen wears the same type as the cover it grows into. Close the story and the home screen goes back to the site's defaults, because a page's theme only lasts while the page is open.

The rest of the night

Every value here was checked when the page was saved. A colour that isn't a colour or a font that isn't one of the ten is refused with a message saying which is which. Tap on to the end, or swipe down to go back.