the making-of

colophon…

Printed books used to end with a note on how they were set. This is that note, for a site that redraws itself on every visit.

est. 2022 · this version since 2026-07-10 · last built 2026-10-06

01 · the name

a name borrowed from a typeface.

nhg stands for Neue Haas Grotesk. I believe you're familiar with it: the typeface that was later renamed Helvetica. Grotesk, or grotesque, is the old name for plain sans-serif type.

The name is the homage. This site doesn't set a single word in it. Chivo, a grotesque cousin, does the daily work.

I freelanced before there was a studio to name. The logo came first, in 2019, set in Chivo. The name arrived in 2022, and the line came with it: show yourself more.

The seal is the newest piece, made for v2, the second version of this site. It carries the name and the line around a halftone disc, the dot pattern of newspaper photos, and it turns on its own.

02 · the short history

two sites and a long quiet.

The first version, v1, ran on Next.js 13, hosted on Vercel, from February 2023. It worked. It also sent every visitor the code for React, the library Next.js is built on, and it leaned on 23 other people's packages that wanted updating every few months, all for what is honestly a brochure with a blog.

In July 2026 I rewrote it in SvelteKit as plain, ready-made files: v2. The longer version is in why this site left Next.js for SvelteKit. Between the two, the code sat untouched for 908 days: the long quiet. The timeline below holds every commit, each one a saved change to the site's code, from both versions, and two things older than the code.

span
2019 to 2026-10-02
commits
134 on 14 days
busiest day
2026-10-01 · 59 commits
the long quiet
908 days, no commits

the key

A square is a commit, stacked by day. A hollow square is from memory, not from the code history.

v1 to v2

  • removednext.js 13 · framework
  • removedreact 18 · ui library
  • removedtailwind 3 · styling
  • removedframer motion · animation
  • removedvercel · hosting
  • removedinter · typeface
  • addedsveltekit 2 · framework
  • addedsvelte 5 · framework
  • addedcloudflare pages · hosting
  • addedfragment mono · typeface
  • addedpocketbase · database

the changelog · by hand

  1. The logo, set in Chivo. It is older than the name.

  2. The name, and the line that came with it: show yourself more.

  3. v1 begins: Next.js 13 on Vercel. Monument Extended for headlines, Inter for reading, Chivo for the logo only.

  4. The last commit to v1, an automatic package update from Dependabot. The site kept running on Vercel until v2 replaced it.

  5. v2 lands: SvelteKit, built ahead of time into plain files on Cloudflare Pages. Chivo moves from the logo to the body text, Fragment Mono joins, Inter retires.

  6. Dark mode by default, with a circular reveal when you switch.

  7. The palette grows to 18 deep colors and 19 pastels: 342 possible pairs, every color tested for contrast.

  8. Every heading in a post gets a link you can copy.

  9. The guestbook opens. Notes wait in PocketBase, on a server I run, until I approve them.

  10. This page, rewritten.

source: the code history (git log) · as of 2026-10-02

03 · how it's made

a folder of files, and one small server.

I run one test on any small site: if I can list every page address before it goes live, I want static files, pages made once, ahead of time, and served as they are. This site passes. The build, the step that makes the site, visits every page and writes it out as HTML, and it fails if a single link between pages is broken, or if it can't reach the guestbook's database to collect the approved notes. When a build fails, the last good copy stays live. The pages are plain files, and plain files don't get security advisories (CVEs). The guestbook's notes are the exception: they live in PocketBase, a small database server I run myself at ledger.nhg.app, pinned to one version. Keeping it patched is my job. The source is private. If you want to see how a part of it works, email me and I'll show you.

framework
SvelteKit 2.69.2 and Svelte 5.56.4, written in Svelte's newest style, which Svelte calls runes. A plug-in, adapter-static, turns every public page into a finished HTML file ahead of time. My private page for approving guestbook notes is the exception: it only fills in once JavaScript runs
build
Vite 8.1.4 turns the source into the site, and TypeScript 6.0.3 catches mistakes before it ships. Every setting lives in one file, vite.config.ts. Most SvelteKit sites also keep a second, svelte.config.js
content
mdsvex: posts written in markdown, plain text with light formatting, that can hold real interactive parts. Nothing is embedded from other sites
cms
Sveltia CMS, the editor I write posts in. It saves straight into the site's code
hosting
Cloudflare Pages, and that bill is zero. Guestbook notes live on my own server, in PocketBase. A proposed change gets its own preview copy when I ask for one
forms
Formspree receives the contact form, sent straight from your browser. Guestbook notes go to my own PocketBase server. Bookings go through cal.com
guestbook
PocketBase, an open-source database I run on my own server, holds the notes. When you send one, Cloudflare Turnstile checks for bots and Google Web Risk checks your link. Once a week Jev, an AI model from TypeSafe AI, marks the waiting notes fine, unsure or spam. I approve every note myself, then the site rebuilds to show them
analytics
vues, a visitor counter I run myself at visitors.nhg.app. No cookies, and nothing that identifies you
checks
svelte-check and vitest test the code, prettier keeps it tidy. pnpm installs the packages, never npm or yarn, the other common installers

04 · the type

three voices, one job each.

Three typefaces, all served from this domain.

  • monument extended · headlines · always lowercase

    show yourself more.

    The loud one: headlines and the name in the logo. It came over from v1 and kept its job. One self-hosted file, 17,560 bytes. The title at the top of each page waits up to 1.2 seconds for it to load, so you rarely see it in a stand-in font, Arial Black, first.

  • chivo · body text · the working voice

    A grotesque that stays out of the way: paragraphs, labels, forms, everything you actually read.

    In v1 it set the logo and nothing else. In v2 it does all the reading. It's the nearest this site gets to its own name.

  • fragment mono · labels · the margin notes

    18 × 19 · 45.7489°n 21.2087°e · est. mmxxii

    The new kid on the block. Dates, coordinates, counts and the small print. The sample above is the palette, 18 deep colors by 19 pastels, then the studio's spot in Timișoara and the year it started, 2022, in Roman numerals.

previously · inter · body text · v1, retired 2026

05 · the colors

one pair per visit.

Before the page appears, a small script, the color script, picks two colors at random: one deep color and one pastel. 18 deep colors and 19 pastels make 342 possible pairs, each named after its two colors. In the stylesheet they're two variables, main and secondary. Every touch of color on the site reads from them, from link underlines to the art, except a red I keep for errors. Below, every color with its name and web color code.

JavaScript is off, so nothing was picked: you're reading the fallback pair, fixed colors for visits without JavaScript, named orchid blush. I don't have a favourite. Every pair is equal, and that's the point. The longer story is in the site that redraws itself.

deep colors · dark, saturated · 18

  • orchid · #b30077
  • oxblood · #92150c
  • midnight · #2100b3
  • velvet · #9e00b3
  • cocoa · #3c1518
  • pine · #007508
  • neon · #793fff
  • peat · #35281d
  • ember · #cc3a00
  • cherry · #91171f
  • lagoon · #00666b
  • harbour · #0b2a6f
  • damson · #5e0b4a
  • claret · #6e0f2e
  • moss · #0b4d2c
  • ink · #2e1a8f
  • terracotta · #9a3a0a
  • tide · #0a4f5c

pastels · light, bright · 19

  • zest · #bcf141
  • sorbet · #ffbb72
  • custard · #f2f3ae
  • julep · #41f1b6
  • noon · #64b9ff
  • blush · #ff7d7d
  • haze · #d8a4ff
  • gelato · #e2f89c
  • foam · #86e6b3
  • petal · #f1c8db
  • frost · #cdfff9
  • nectar · #ffd1a1
  • dusk · #b9c6ff
  • linen · #fff3c4
  • dawn · #e7b7e1
  • glint · #bfe9ff
  • bloom · #c9b8ff
  • surf · #9cf0ea
  • herb · #c8e6b0

the rule · deep on light, pastel on dark

Links, labels and the outline that follows your keyboard don't use the pair directly. They use one accent color, held in a third variable, --accent, and the background decides which: the deep color on light, the pastel on dark. That's the rule. The site opens in dark mode, so the pastel is the one you see most. Below, the same line on a light panel and a dark panel. Neither changes with the mode, and on a wide screen each shows the line of code that colors its text.

Swap them and both go under: a deep color sinks into a dark background, and a pastel all but vanishes on a light one. Contrast is how far text stands out from its background, as a ratio from 1:1 (invisible) to 21:1 (black on white). The web's accessibility guidelines (WCAG, level AA) ask for at least 4.5:1 for normal text. All 18 deep colors clear it on light, all 19 pastels on dark, and a test fails if one ever slips.

Demo: the line, show yourself more, set twice, once on a light panel and once on a dark panel, each in the color the rule gives it. A divider between the panels can be dragged, or moved with the arrow keys. The numbers follow.

light panel
accent: deep color
fallback · #9b00b0
6.83:1 · passes
dark panel
accent: pastel
fallback · #f15a5a
5.79:1 · passes

the weakest pair: ember at 4.94:1 on the light panel, blush at 7.74:1 on the dark panel. swapped, 0 of 37 pass: the best manage 3.80:1 and 2.43:1.

the fallback pair, for visits without javascript. both panels clear 4.5:1.

06 · the art and the seed

same seed, same art.

The color script also picks a seed: one random number, up to about 4.3 billion, that the generated art on the site grows from. mulberry32, a small random number generator, turns it into the same run of numbers every time. The banner at the top of the home page is a field of aurora ribbons, drawn by your graphics card (WebGL). Each work's thumbnail plots a De Jong attractor, a pattern traced by one formula, point by point.

Move around the site and each piece of art stays the same. Reload and it rearranges. Guestbook notes in the drawn style keep their lines on every visit, because the lines grow from the note, not the seed. Only their colors follow the pair. The dark mode switch at the top of the page opens the new mode in a widening circle, and the art repaints to match.

the wiring · from a random pick to every color

This is the color script laid out as wiring, in three strands. Read each one from its first box to its last. Every box holds a real value from this visit, read off the page as you look. The boxes with controls are inputs: change one and the rest follow down the wires, as far as the art below. Nothing outside this section changes, and only a reload picks for real.

the pair

  1. dice

    not rolled

    The script asks your browser for two random numbers, one per list, each from 0 up to, but not including, 1 (Math.random() in the code). It keeps only where each landed.

  2. where they landed

    none

    Code counts from 0, so place 0 is the first color in each list. Pick a pair here and the seed changes too.

  3. the two colors

    --color-main: #9b00b0 · fallback

    --color-secondary: #f15a5a · fallback

    Written onto the page itself before it appears, so every rule in the stylesheet can use them.

  4. pair name

    orchid blush

    the fallback pair

    Each color brings one word from a list in the site's code (theme.ts), deep color first. The colors section above reads it.

the seed

  1. clock Date.now()

    not read

    The time as milliseconds since 1 January 1970, shown here as a time of day. The script doesn't keep it, so I work it out backwards from the seed.

  2. seed

    none

    also fed by: where they landed

    The long number, 2,654,435,761, throws neighbouring pairs far apart. The >>> 0 wraps the total back into the seed's range.

  3. the hand-off window.__nhg

    not set

    The color script's note to the rest of the site. The art reads its seed from here.

  4. each piece of art

    nothing drawn: the art needs JavaScript

    the banners on why?, contact!, the 404 page and each case study work the same way, with their own names.

    also fed by: mode, the two colors

    A small function in the code, itemSeed, stirs each piece's name into the seed, one letter at a time. Same seed, different name, different number.

the mode

  1. saved choice localStorage 'nhg-scheme'

    not read

    Your browser keeps it for this site, but only once you use the dark mode switch at the top of the page.

  2. mode data-theme

    no mode set, so light: the stylesheet's starting point

    The color script didn't run, so nothing set a mode.

  3. page colors

    background #fdfdfd

    text #0f0f0f

    browser bar #fdfdfd

    dark bands #0f0f0f

    art: needs JavaScript

    The script writes the mode onto the page as data-theme, and the stylesheet swaps background and text to match. The script also sets the browser bar before the page appears.

  4. accent color --accent

    page, light mode · deep color · fallback · #9b00b0 ← this page

    page, dark mode · pastel · fallback · #f15a5a

    dark bands · pastel · fallback · #f15a5a ← this band

    also fed by: the two colors

    The rule from the demo in the colors section.

the real code · the pair

values beside the lines: true for every visit

src/app.html · lines 20 to 66

  1. var mains = [ 18 deep colors
  2. 18 deep colors, lines 21 to 38
    1. '#B30077',
    2. '#92150C',
    3. '#2100B3',
    4. '#9E00B3',
    5. '#3C1518',
    6. '#007508',
    7. '#793FFF',
    8. '#35281D',
    9. '#CC3A00',
    10. '#91171F',
    11. '#00666B',
    12. '#0B2A6F',
    13. '#5E0B4A',
    14. '#6E0F2E',
    15. '#0B4D2C',
    16. '#2E1A8F',
    17. '#9A3A0A',
    18. '#0A4F5C'
  3. ];
  4. var secondaries = [ 19 pastels
  5. 19 pastels, lines 41 to 59
    1. '#BCF141',
    2. '#FFBB72',
    3. '#F2F3AE',
    4. '#41F1B6',
    5. '#64B9FF',
    6. '#FF7D7D',
    7. '#D8A4FF',
    8. '#E2F89C',
    9. '#86E6B3',
    10. '#F1C8DB',
    11. '#CDFFF9',
    12. '#FFD1A1',
    13. '#B9C6FF',
    14. '#FFF3C4',
    15. '#E7B7E1',
    16. '#BFE9FF',
    17. '#C9B8FF',
    18. '#9CF0EA',
    19. '#C8E6B0'
  6. ];
  7. var mi = Math.floor(Math.random() * mains.length); 0 to 17, new each visit
  8. var si = Math.floor(Math.random() * secondaries.length); 0 to 18, new each visit
  9. var seed = ((mi * 31 + si) * 2654435761 + Date.now()) >>> 0; new each visit
  10. var el = document.documentElement;
  11. el.style.setProperty('--color-main', mains[mi]); until then: #9b00b0
  12. el.style.setProperty('--color-secondary', secondaries[si]); until then: #f15a5a
the real code · the seed

values beside the lines: true for every visit

src/app.html · lines 63 to 84

  1. var seed = ((mi * 31 + si) * 2654435761 + Date.now()) >>> 0; new each visit
  2. lines skipped
  3. window.__nhg = { read by the art
  4. main: mains[mi],
  5. secondary: secondaries[si],
  6. seed: seed,
  7. mainIndex: mi,
  8. secondaryIndex: si
  9. };

src/lib/theme.ts · lines 186 to 205

  1. /** mulberry32, a small random number generator: the same seed always gives the same run of numbers. */
  2. export function rng(seed: number): () => number {
  3. let a = seed >>> 0;
  4. return () => {
  5. a |= 0;
  6. a = (a + 0x6d2b79f5) | 0;
  7. let t = Math.imul(a ^ (a >>> 15), 1 | a);
  8. t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
  9. return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
  10. };
  11. }
  12. /** Mix a piece's name (a slug, 'hero', 'seal') into the visit seed: one number per piece. */
  13. export function itemSeed(key: string, base: number): number { one number per piece
  14. let h = base >>> 0;
  15. for (let i = 0; i < key.length; i++) {
  16. h = Math.imul(h ^ key.charCodeAt(i), 2654435761); same long number as line 63
  17. }
  18. return h >>> 0;
  19. }

guestbook notes call itemSeed with a fixed number instead of the seed: 7,235,687, which is nhg in character codes. that's why a note keeps its lines.

the real code · the mode

values beside the lines: true for every visit

src/app.html · lines 67 to 75

  1. // dark mode by default, remembered across visits
  2. var scheme = 'dark'; the starting point
  3. try {
  4. var stored = localStorage.getItem('nhg-scheme');
  5. if (stored === 'light' || stored === 'dark') scheme = stored; your saved choice, if any
  6. } catch (e) {}
  7. el.dataset.theme = scheme; dark unless you saved light
  8. var meta = document.querySelector('meta[name="theme-color"]');
  9. if (meta) meta.setAttribute('content', scheme === 'dark' ? '#0f0f0f' : '#fdfdfd'); your browser's bar

src/app.css · the three --accent lines

  1. :root {
  2. lines skipped
  3. --accent: var(--color-main); deep color
  4. lines skipped
  5. :root[data-theme='dark'] {
  6. lines skipped
  7. --accent: var(--color-secondary); pastel
  8. lines skipped
  9. .surface-ink {
  10. lines skipped
  11. --accent: var(--color-secondary); pastel
  12. lines skipped

the proof sheet · one seed, all the art

Printers check a job on a proof sheet: every picture on one page, small, before the run. This one is for the art. One seed and one pair print the home page banner and every work's thumbnail, with the same code those pages run.

Step the seed by one and every picture changes. Change only the pair and the shapes stay put. Go back to an earlier sheet and the same pictures return, exactly.

no seed: JavaScript is off

  1. 02 · Orakl
  2. 03 · TGZ Legal
  3. 04 · Dowdian
  4. 05 · Halflings
  5. 06 · theSkullery
  6. 07 · QuidPro

JavaScript is off, so nothing prints here. The home page banner and the thumbnails stay blank as well.

what the numbers mean
name → number
the seed mixed with the picture's name, so each picture grows from its own number.
ribbons start at
the banner moves on a clock, and its number sets where that clock starts, so each page's banner opens on a different moment.
held
where this picture stops: 41.3 seconds in, the frame the home page shows when your device asks for less motion. Here the banner also ignores your pointer.
paints
the two colors the banner paints with. In dark mode the deep color is lifted 35% toward white, so it shows on a dark background.
a b c d
four numbers that set a thumbnail's shape in the De Jong formula, picked from the thumbnail's number.
try
some picks tangle into a knot or smear into fog. Each one is tested on a grid of 1,024 squares, and the first to fill between 220 and 840 of them is kept, up to 48 tries.
dots
how many dots a thumbnail plots. The works page plots the same. The home page shows smaller copies with 116,424 dots, so they look thinner.

342 pairs × 4,294,967,296 seeds: 1,468,878,815,232 possible sheets.

With this visit's seed and pair, the sheet matches the works page, and the home page banner as it looks when motion is reduced.

07 · the desk

built with AI agents.

I design in Figma, write and read code in VS Code, and run agents in Claude Code: AI assistants that write and change code when I ask. Most of the code on this site was written by agents, under my direction. The design and the taste are mine.

The agents follow skills, instruction files kept with the site's code, 36 of them today. meridian turns an idea into a map: a plan split into tickets, one small task each. transit works one ticket. convoy works a whole map while I'm away. The ai-forge suite judges and audits the skills themselves. interface looks after the screens and controls, prose after the words. I wrote about the same toolbox in the oracle learns to delegate.

design
Figma
code
VS Code, Claude Code
desktop
Windows 11 PC
laptop
MacBook Air
phone
Google Pixel 10, for running agents remotely, quick edits in the post editor and testing the site on a small screen

08 · house rules

rules you can check me on.

These are public on purpose. Two aren't kept yet, and I'd rather print them than leave them out.

  1. no cookies of mine, and only two things loaded from other addresses

    Fonts, styles and the site's own code all come from this domain, with two exceptions. One is vues, my visitor counter, which I host myself at visitors.nhg.app. It sets no cookies. The other, on the guestbook page only, is Cloudflare Turnstile, the guestbook's spam check, loaded from challenges.cloudflare.com. A note you leave there goes to my own server at ledger.nhg.app. More is on the privacy page.

    verdict:kept

  2. every palette color passes the contrast minimum

    Every deep color is tested on the light background and every pastel on the dark one, at 4.5:1 or better. You can try it in the colors section. If your device asks for less motion, the site holds still. The outline that shows where your keyboard is uses the accent color, except on the divider in that demo, which sits on both backgrounds. The rest of WCAG 2.2 AA, the accessibility standard, is a target, not an audited result.

    verdict:kept

  3. no packages for your browser, only build tools, and a light page

    All 14 of the project's packages are tools that build the site. None is sent to your browser as it is: the build folds the parts the page needs, like Svelte's own, into the site's files, so your browser gets those finished files and the fonts, served from here. On the guestbook page it also gets Cloudflare's spam check, straight from Cloudflare. The leaf in the footer shows each page's weight on a first visit, worked out from the site's own files every time the site is built, with the same carbon model as the measurement below, but leaves out files from other addresses, so it reads a little lower. For developers: package.json has no dependencies, only 14 devDependencies.

    measured 2026-10-02 · home page, first visit, nothing saved yet · 295 kB to download · about 0.04 g CO₂e (carbon) per view · estimated with CO2.js, an open-source carbon calculator for websites (its Sustainable Web Design v4 model), for a host on renewable power

    verdict:kept

  4. works without JavaScript, for reading

    Every public page is built ahead of time as finished HTML. With JavaScript off, or blocked, you can still read the whole site, in the fallback pair: #9b00b0 and #f15a5a. It shares the name orchid blush with one of the 342 pairs, but neither color is in the palette. Only the generated art, the interactive controls and leaving a note in the guestbook need JavaScript.

    verdict:kept

  5. end-to-end tests

    274 unit tests in 21 files check small pieces of code on their own, and 40 more in 7 files test the guestbook's database server, most of them against a real running copy. svelte-check checks the code for type mistakes, and the build fails on any broken link between pages. Nothing yet clicks through the site in a real browser the way you would. That's what end-to-end tests do.

    verdict:not yet

  6. a content security policy

    A content security policy tells your browser which scripts it may run, so code slipped into a page can't. The color script that picks your pair has to run before the page appears, so the policy would have to name it by its fingerprint (a hash). I haven't written that policy. What does ship: a rule that stops browsers guessing file types (nosniff), a strict referrer policy so other sites learn less about where you came from, and camera, microphone and location switched off.

    verdict:not yet

hidden extras: 2. press the g key. click the seal.

4 kept. 2 not yet.

with JavaScript on, 5 of these rows can be checked in your browser.

09 · credits

who I borrowed from.

  • TheGallery

    GuyWithTwoCats' gallery of graphics demos. The attractor demo became the work thumbnails. Another, nordlys (Norwegian for northern lights), became the aurora in the home page banner.

  • Paper Shaders

    The halftone dots on the seal's disc, in printing's four colors (halftone-cmyk), drawn by a shader: a small program your graphics card runs. Open source, Apache-2.0 licence, github.com/paper-design/shaders.

  • Paul Rand

    “Design is the silent ambassador of your brand.” The quote opens the homepage. I made it literal in design is the silent ambassador.

  • taste-skill

    The design skill that went into the site's code on the first day of v2.

  • Tabler Icons

    The arrows and chevrons, drawn straight into the page as code, not loaded as image files.

  • ky.fyi

    My guestbook started from Ky Decker's, at ky.fyi: a note that previews itself as you write it, a ‹ › switch between note styles, and the newest notes on the home page. The styles here are my own.

also: sveltekit · svelte · vite · mdsvex · sveltia cms · pocketbase · fontsource · mulberry32

The list is incomplete. I add to it as I remember.

that's how it's set.

If something on this page is wrong, tell me at robert@nhg.design.

Reload and the page picks its pair again. The words stay the same.