Plate № 48 · Craft · editorial & presentation
A pattern from the gf.cx specimen book
Generative motif fields, procedural card art from a slug
"'a' is the best — I would suggest variances in the images, very abstract right now, maybe a little more translatable." … "Loving the styling — you should save it to patterns as a new element." … "Non-innovation cards need to be muted and easy on the eyes."
The problem
The what's-new index pays for itself by being pure data: a surface's /new page carries only a JSON blob of {title, desc, url, date, sec} and the shared shelf renders it. That is exactly why the cards view looks thin. There is no per-item artwork to render — the generator never had a picture for each demo — so every card is the same title-over-description rectangle. Worse, a real portfolio has holes: on the sandbox shelf, seven of twenty-two demos ship with an empty desc, and an empty description in a card grid is blank real-estate — a card that reads as unfinished. You can't hand-draw an icon per item (the list is generated, and grows), and a stock decoration on every card is noise, not signal.
The model
Give each card a generative field — an abstract SVG band drawn by a small function, not an asset fetched from anywhere. Four moves make it feel authored rather than random:
- Meaning, not decoration. Eight motif families — signal, route, strata, network, lattice, ledger, frames, bloom — each a visual metaphor for a kind of thing. A section slug maps to the family that fits what it is: a phone tool draws a signal waveform, a shipping tool a route, a backup tool stacked strata, a budget tool a ledger. An unmapped slug hashes to a family, so nothing is ever artless.
- Deterministic from the slug. The slug is hashed (FNV-1a) to seed a small PRNG (mulberry32); every random choice in the drawing pulls from that seed. So a demo always draws the same field — stable across reloads, sorts and deploys — yet each family member looks distinct.
- Colour de-collided. Two backup-and-PDF cards both drawing red strata read as duplicates. So the primary hue is assigned by each item's index within its family (cycling accent → gold → crimson), guaranteeing same-family siblings never twin. The section label is tinted to match its card.
- The empty description earns a line. Where
descis blank, the layer writes a quiet machine-derived line —section · sandbox demo · MON YEAR— in a monospaced caps micro-style, so a description-less card still carries information instead of a hole.
The layer is additive: it observes the shared shelf's #list and, whenever the shelf re-renders cards (a sort, a view toggle), prepends the band and fills the derived line. The shelf stays authoritative for render/sort/view; a surface that doesn't opt in is untouched.
One representative field per family
Each tile below is real generator output for the demo slug named — the same art the live shelf draws:
Abstract on purpose: a field evokes the kind of thing a demo is without illustrating it literally, so it reads at a glance and never goes stale against the content.
Intensity — vivid for innovation, muted for reference
The motif intensity scales with what the surface holds, chosen with one attribute on #list:
data-motif-fields(vivid) — the full three-hue field, for innovation surfaces where the cards are the showpiece (the sandbox demo shelf).data-motif-fields="muted"— accent + gold only (crimson dropped), a lowered tint and the whole band softened, for reference surfaces that "need to be muted and easy on the eyes" (a catalogue like library.gf.cx/new, where the record is the point and the art is atmosphere).
Same generator, same families — the mode is a first-class setting, not a fork, so a reference surface opts into calm without anyone maintaining a second copy.
Delivered as one opt-in asset
The whole layer is two files on the shelf — assets.gf.cx/new-index/motif-fields.js and motif-fields.css — the same delivery as the what's-new index it sits on top of. It does nothing unless the page opts in with data-motif-fields on #list, so linking it is safe portfolio-wide and each surface decides for itself:
<link rel="stylesheet" href="https://assets.gf.cx/new-index/motif-fields.css">
<div id="list" class="view-lines" data-motif-fields data-motif-label="sandbox demo"></div>
<!-- after the new-index.js shelf script -->
<script src="https://assets.gf.cx/new-index/motif-fields.js" data-cfasync="false" defer></script>
The generator itself is a bannered, liftable block inside the JS — the hash, the PRNG, the eight family functions, the family map, and the colour de-collision — so it can be carried elsewhere without the observer glue.
Where it applies
Reach for this on any card grid that is generated from a data list and therefore can't carry hand-made per-item art: a demo shelf, a changelog, a catalogue. Vivid where the items are the show; muted where they're a reference. In use: sandbox.gf.cx/new (vivid) and library.gf.cx/new (muted).
Reusable elements
Named, copyable pieces — lift any one without the others:
assets.gf.cx/new-index/motif-fields.js— the opt-in layer: the liftable generator block (FNV-1a seed · mulberry32 PRNG · eight family functions · section→family map · per-family-index colour de-collision) plus theMutationObserverthat injects the band over the shared shelf and fills the empty-desc derived line.assets.gf.cx/new-index/motif-fields.css— the cards-view band + wrap, and the[data-motif-fields="muted"]softening.- The eight motif families — signal · route · strata · network · lattice · ledger · frames · bloom, each a metaphor for a kind of thing; assign by meaning, fall back to a hash.
- Slug-seeded determinism — hash the identifier to seed the PRNG so the same input always draws the same art (no stored asset, no cache to bust).
- Per-family-index colour de-collision — cycle the palette by position within a family so siblings never colour-twin; a general fix for any generated set that risks look-alikes.
- Vivid / muted intensity mode — one attribute scales the treatment to innovation vs reference content.
Reference
- Source
- Dan, 2026-09-16 — refining the sandbox
/newcards ("more translatable"; "save it to patterns as a new element"; "non-innovation cards need to be muted and easy on the eyes"). Design was A/B/C-explored (variant A chosen, then refined). - In use / example
- sandbox.gf.cx/new (vivid) · library.gf.cx/new (muted).
- Sits on
- The what's-new index — this layer adds card art to that shelf without modifying it.
- Reusable elements
motif-fields.js·motif-fields.css· the eight families · slug-seeded determinism · per-family-index colour de-collision · vivid/muted mode (all above).- Build cost
- One
<link>+ one<script defer>and one attribute on#list. The asset caches portfolio-wide; a change to the families or palette propagates from the one file.