Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
CSS
A redesign hands over a compare page; the kept check reads hooks per page
Youssefe08fd8fa5061
diff --git a/README.md b/README.mdindex bfebad1..cb72bc5 100644--- a/README.md+++ b/README.md@@ -116,7 +116,7 @@ A redesign keeps what the page says and does and changes how it looks, at the de| **restyle** | the layout | colour, type, radius, shadow, motion, the controls || **full** | the content and the wiring | the system and the composition |-Before it touches anything, `sloplint --before` lints the page and records every link, form field, handler, test hook, heading and figure. After the build, `sloplint --kept` fails the redesign if any of them went missing, a fresh-context reviewer compares the new screens with the old ones, and the project's own build and tests have to pass. The handoff is a before and after: findings, what was kept, what changed, and anything dropped, with the reason on the record. `audit` stops after the report and edits nothing.+Before it touches anything, `sloplint --before` lints the page and records every link, form field, handler, test hook, heading and figure. After the build, `sloplint --kept` fails the redesign if any of them went missing, a fresh-context reviewer compares the new screens with the old ones, and the project's own build and tests have to pass. The handoff is a before and after: findings, what was kept, what changed, anything dropped with the reason on the record, and `.hallmark/compare.html`, the old and new screens side by side. `audit` stops after the report and edits nothing.Dashboards, admin screens and tools are app screens: the landing-page rules (hero, fold, section rhythm) step aside and density, tables and the four data states take over. Small edits to an existing design are not Hallmark runs; the edit-time hook below keeps the Floor on them in the background.diff --git a/docs/recipes.md b/docs/recipes.mdindex a4351cf..f6c0146 100644--- a/docs/recipes.md+++ b/docs/recipes.md@@ -58,6 +58,22 @@ The brief asks for counts and logos the user has not supplied: Hallmark asks forThe brief's own range is the hero. Expect the figures set in tabular numerals, one sentence under them, and no marquee or card stack.+## Redesigning what exists++Three prompts for a page, a site or an app that is already there. Each starts by recording what the page says and does, and ends by proving none of it went missing.++> `/hallmark audit ./index.html`++A report and nothing else: the findings by gate, a four-line read of the page, and the depth that would settle them.++> Polish our site with hallmark. We like our colours and fonts; it just feels dated.++Polish depth. The system and the layout stay; the tells, the contrast, the states and the motion are fixed in place, and layout findings are listed for you instead of rebuilt.++> `/hallmark redesign ./src/app`++It asks once what stays (the look, the layout, or only the content), or on *go ahead* picks the lighter depth the project supports and says which. An app screen is restyled on its existing layout; a marketing page that reads as a template is recomposed. Either way the handoff shows the before and after counts, what was kept, and anything dropped with its reason.+## Reading a recipeEach prompt carries or withholds the three things Step 1 asks for (audience, use, tone). When all three are present the skill builds without a question; when one is missing it infers and states the inference. A theme named in the prompt is built by request; otherwise `scripts/theme.mjs deal` prints three candidates that clear the project's log and the skill picks one. Two consecutive runs of one recipe in the same project produce different shapes or themes by design.diff --git a/site/_tests/verbs/README.md b/site/_tests/verbs/README.mdindex 5d5213e..e14d082 100644--- a/site/_tests/verbs/README.md+++ b/site/_tests/verbs/README.md@@ -14,4 +14,4 @@ Each folder holds:- **`output.*`**, what the verb produces. For `audit` and `study`, this is a Markdown report. For `redesign`, this is a finished `index.html` + `style.css`.- **`notes.md`**, one page explaining what fired, what reference files loaded, and what the durable artifact is.-The verbs live in a companion pack (`audit`, `redesign`, `study`, `variants`) that reads Hallmark's gates and craft files; these examples predate v2 and show the earlier gate numbers.+These examples predate v2 and show the earlier gate numbers. In v2, `redesign` is a verb of the skill again and `audit` is its first step (`/hallmark redesign <path>`, `/hallmark audit <path>`); a redesign now keeps the page's content and wiring and proves it with a before and after record.diff --git a/skills/hallmark/SKILL.md b/skills/hallmark/SKILL.mdindex 584e052..3d02634 100644--- a/skills/hallmark/SKILL.md+++ b/skills/hallmark/SKILL.md@@ -45,7 +45,7 @@ Above the Floor, a **Reflex** gate is a default a model falls into, which a buil6. Build: the hero first, then the page; stamp, `tokens.css`, log.7. Sweep: `sloplint --render` until clean, the judged gates, the finish review, the material ask.-**Verbs.** `redesign <target>`, `audit <target>`, or a plain ask to redesign, restyle or polish an existing page, site or app: read [`references/redesign.md`](references/redesign.md) first; it stands in for Steps 0 to 2 and adds a before and an after. A small edit to an existing design is not a Hallmark run.+**Verbs.** `redesign <target>`, `audit <target>`, or a plain ask to redesign, restyle or polish an existing page, site or app: read [`references/redesign.md`](references/redesign.md) first; it sets what the run keeps and adds a before and an after. A small edit to an existing design is not a Hallmark run.Codex CLI and OpenCode read [`references/flow.md`](references/flow.md) § Harnesses first; other harnesses run this file as written.diff --git a/skills/hallmark/references/craft.md b/skills/hallmark/references/craft.mdindex b82f89f..400569d 100644--- a/skills/hallmark/references/craft.md+++ b/skills/hallmark/references/craft.md@@ -41,7 +41,7 @@ Font sourcing for a custom run is in `fonts.md`; a catalog theme has already nam- **Coherence over side.** A head may be left, centred, hanging, bottom-anchored or overlapping; what reads as a mistake is a narrow auto-centred head floating over full-width left-flush content.- **Grids.** CSS Grid for the page, Flexbox for component internals. Break the equal-columns reflex: `1.2fr 1fr 0.8fr`, a 12-column grid with unequal spans, a 4-up with a 2-span lead (3). Named areas for complex layouts. Flex children that must shrink get `min-width: 0`; icons, logos and images get `flex-shrink: 0`. A grid has no empty cell and no orphan: a last row of one under a fuller row, or six logos as five and one, is a count to change (F20).- **Asymmetry that reads as chosen:** a wide margin column carrying captions and footnotes beside the body (never a label beside a heading, which is an eyebrow); a heading that hangs into the margin; offset column widths; one element that crosses a column boundary; generous top and tight bottom. Rows that pair text with a visual keep the visual on one side and vary by weight (one lead row with the larger visual); a mirror may happen once, never a zigzag down the page.-- **The surface ladder.** Whitespace, then a hairline rule (1px `--color-rule`, inset or full-bleed), then a tinted well (`--color-paper-2` or `-3`, no border), then a card (border or shadow, reserved for content that is independently interactive or of a different kind). Never white cards on a tinted page; never a card in a card, and never a bordered card or label box inside a well: a well holds rows, figures or a drawn object (4); never jump to the top rung (9, F7). Sibling items in a shared context (stats, KPIs) separate with a top border or a vertical hairline: the first item has no leading padding, the last no trailing, and the rule pattern is reset at every breakpoint where the column count changes.+- **The surface ladder.** Whitespace, then a hairline rule (1px `--color-rule`, inset or full-bleed), then a tinted well (`--color-paper-2` or `-3`, no border), then a card (a border or a shadow, never a hairline under a wide soft shadow, F25; reserved for content that is independently interactive or of a different kind). Never white cards on a tinted page; never a card in a card, and never a bordered card or label box inside a well: a well holds rows, figures or a drawn object (4); never jump to the top rung (9, F7). Sibling items in a shared context (stats, KPIs) separate with a top border or a vertical hairline: the first item has no leading padding, the last no trailing, and the rule pattern is reset at every breakpoint where the column count changes.- **Depth is weight and scale**, not shadow. One shadow if any: whisper `0 1px 2px oklch(20% 0.01 <hue> / 0.05)` or hairline `0 0 0 1px oklch(30% 0.01 <hue> / 0.06)`. Never a border and a wide soft shadow on the same box; commit to one. Elevated surfaces are never darker than their canvas. Eight named z levels: base 1, raised 10, dropdown 100, sticky 200, sticky-nav 300, modal 400, toast 500, tooltip 600; never a freestyle z (56).- **Page-edge clipping.** `html, body { overflow-x: clip }` on every page (34); `clip` keeps `sticky` and `fixed` working where `hidden` breaks them. The section that holds a deliberately overflowing element keeps `overflow: visible`.- **Radii.** One radius per level; nested radii are concentric: `inner = outer - padding`, clamped at 2px. Image and screenshot radii scale with the viewport: `min(1vw, var(--radius-card))`.diff --git a/skills/hallmark/references/gates.md b/skills/hallmark/references/gates.mdindex fb63e24..c37cad9 100644--- a/skills/hallmark/references/gates.md+++ b/skills/hallmark/references/gates.md@@ -163,7 +163,7 @@ One line each. `a`/`b` clauses share a number and carry their own tier. Genre no### Finish (F-checks, never block)-F1 straight quotes in prose · F2 `...` for an ellipsis · F3 no `text-wrap: balance` on display heads · F4 more than one filled-primary button recipe on a page (dialogs count as their own page), or two filled buttons side by side · F5 an icon in a coloured coin · F6 display-size figures without tabular numerals · F7 one container recipe stamped on six or more selectors · F8 more than one scroll-choreography pattern · F9 fake-human avatar hotlinks (this half is a FAIL) or person-keyword stock URLs · F10 a Lottie where CSS or SVG would do · F11 a highlighter band at the baseline instead of behind the x-height, or an underline thicker than 2px or offset more than 0.25em · F12 a flex row of unequal heights without `align-items: center` · F13 the outlier face carrying more than one role · F14 a helper-text slot with no reserved `min-height: 1lh` · F15 page invariants broken: more than one primary button style, more than one container width, more than one column gap below the hero, more than one radius per nesting level, or more centred heading groups than left-aligned ones · F16 browser surfaces unthemed: no `::selection`, no `caret-color`, no `scrollbar-color` on a page with a committed palette · F17 a text block squeezed into a sliver at 1440 (under about 16 characters wide over four lines or more), usually a grid placement gone wide (render) · F18 a `data-slot` that renders under 40px in either dimension at 1440, collapsed by a percentage width inside a shrink-to-fit parent (render) · F19 more than three font weights in running use, display and body together (render) · F20 a grid or a wrapping row that leaves one item alone on its last row under a fuller row (render) · F21 a heading level skipped (an h2 followed by an h4) · F22 justified text without `hyphens: auto` · F23 em dashes saturating the copy (eight or more, about one per 500 characters) · F24 a document without `lang`, a `<title>` or a meta description.+F1 straight quotes in prose · F2 `...` for an ellipsis · F3 no `text-wrap: balance` on display heads · F4 more than one filled-primary button recipe on a page (dialogs count as their own page), or two filled buttons side by side · F5 an icon in a coloured coin · F6 display-size figures without tabular numerals · F7 one container recipe stamped on six or more selectors · F8 more than one scroll-choreography pattern · F9 fake-human avatar hotlinks (this half is a FAIL) or person-keyword stock URLs · F10 a Lottie where CSS or SVG would do · F11 a highlighter band at the baseline instead of behind the x-height, or an underline thicker than 2px or offset more than 0.25em · F12 a flex row of unequal heights without `align-items: center` · F13 the outlier face carrying more than one role · F14 a helper-text slot with no reserved `min-height: 1lh` · F15 page invariants broken: more than one primary button style, more than one container width, more than one column gap below the hero, more than one radius per nesting level, or more centred heading groups than left-aligned ones · F16 browser surfaces unthemed: no `::selection`, no `caret-color`, no `scrollbar-color` on a page with a committed palette · F17 a text block squeezed into a sliver at 1440 (under about 16 characters wide over four lines or more), usually a grid placement gone wide (render) · F18 a `data-slot` that renders under 40px in either dimension at 1440, collapsed by a percentage width inside a shrink-to-fit parent (render) · F19 more than three font weights in running use, display and body together (render) · F20 a grid or a wrapping row that leaves one item alone on its last row under a fuller row (render) · F21 a heading level skipped (an h2 followed by an h4) · F22 justified text without `hyphens: auto` · F23 em dashes saturating the copy (eight or more, about one per 500 characters) · F24 a document without `lang`, a `<title>` or a meta description · F25 a hairline border under a wide soft shadow (24px or more of blur left after a negative spread) on one surface · F26 content a phone never gets: about 40 words or more shown at 1440 and hidden at 375, navigation aside (render).## 5. Judged clausesdiff --git a/skills/hallmark/references/redesign.md b/skills/hallmark/references/redesign.mdindex 79edc17..28e098e 100644--- a/skills/hallmark/references/redesign.md+++ b/skills/hallmark/references/redesign.md@@ -1,6 +1,6 @@# Redesign-Loaded when the request opens with `redesign` or `audit`, or plainly asks to redesign, restyle or polish an existing page, site or app, or to make one look less generated. A redesign is a build whose material is the page that exists: SKILL.md still binds, and this file says what the run keeps, what stands in for Steps 0 to 2, and what the sweep adds. A small edit to an existing design (a tweak, one fix, new copy) is neither a redesign nor a Hallmark run.+Loaded when the request opens with `redesign` or `audit`, or plainly asks to redesign, restyle or polish an existing page, site or app, or to make one look less generated. A redesign is a build whose material is the page that exists: SKILL.md still binds, and this file says what the run keeps, what replaces the Step 1 ask, and what the sweep adds. The target is the user's own code: a file, a folder, or a route on a dev server. A live URL with no source behind it can be audited through `--url` and nothing more. A small edit to an existing design (a tweak, one fix, new copy) is neither a redesign nor a Hallmark run.## What a redesign keeps@@ -39,7 +39,7 @@ It lints, writes the screenshots to `.hallmark/before/`, and records every link,## The ask-One message stands in for Step 1; skip it when the request already answers it or no one can answer:+One message replaces the Step 1 ask; skip it when the request already answers it or no one can answer:> *Before I redesign, three things. 1. **What stays**: the look (I fix only what reads as generated), the layout (new colour and type on the same structure), or only the content (a new design)? And anything I must not touch. 2. **What is wrong with it**, in your words, and the feeling you want instead. 3. **Anything new to show**: screenshots, photos, numbers, a quote. Or say **go ahead** and I will pick the depth from the project and say which.*@@ -54,22 +54,22 @@ The Picks block opens with four rows of its own, and nothing is deleted until th- **Files** · edit: app/page.tsx, app/pricing/page.tsx, app/globals.css · create: tokens.css, base.css · delete: none```-Then the build rows the depth reaches: Theme at restyle and full (dealt, `brand` or locked); Shape, Chrome, Hero, Signature and Sections at full only. At polish the block stops after Files.+Then the build rows the depth reaches: Theme at restyle and full (dealt, `brand` or locked); Shape, Chrome, Hero, Signature and Sections at full only, where Step 2 runs with the page's own content as its inventory. At polish the block stops after Files.## Build- **Polish** is the sweep in `flow.md` § Signal 8, on the user's own page: fix in place, single elements and tokens, never restructure. Its check stamp opens the stylesheet, with `built: the project · redesign: polish`.- **Where the layout stays** (polish and restyle), the stamp's `redesign:` field tells sloplint to report the layout gates (6b, 8, 9, 32, 42, 44a, 44c, 58) as notes. Print them for the user with the depth that would settle them; do not rebuild them.-- **Restyle and full** start from the scaffold: `tokens.css` and `base.css` imported below the project's own styles and mapped onto the project's token names (a Tailwind theme, shadcn variables: `export-formats.md`). Then the shared components and the chrome, then the pages, the most visited first, each swept before the next.+- **Restyle and full** start from the scaffold: `tokens.css` and `base.css` imported below the project's own styles and mapped onto the project's token names (a Tailwind theme, shadcn variables: `export-formats.md`). Pass the depth so the stamp carries it: `theme.mjs scaffold <slug> --redesign <depth>`. A kept brand takes `scaffold --brand --redesign <depth>` and fills the tokens from the palette and faces the pre-flight found (no `check`: the coordinates are the user's); otherwise the deal runs as in Step 3. Then the shared components and the chrome, then the pages, the most visited first, each swept before the next.- **More than one page** at restyle or full: lock the system first (`design-md.md`). Every page reads it and the variety rule inverts: pages share theme, type and accent, and differ only in shape. Past three pages, give each page to its own subagent where the harness has them, with `design.md`, the page's files and this file.- **Full depth** runs the hero stage and the hero review. Polish and restyle skip both.## After-1. The sweep, against the record: `sloplint <target> --render --kept`. Anything the page had and no longer has is a `FAIL kept` (a link, a field, a form action, a handler, a test hook, a selector a script still queries) or a `WARN kept` (a heading, a figure, an image, an id). Restore it, or record what the user agreed to lose: `/* Hallmark · dropped /blog, #team · the user is retiring the blog and the team section */`.+1. The sweep, against the record: `sloplint <target> --render --kept`. Anything the page had and no longer has is a `FAIL kept` (a link, a field, a form action, a handler, a test hook, a selector a script still queries) or a `WARN kept` (a heading, a figure, an image, an id). Restore it, or record what the user agreed to lose: `/* Hallmark · dropped /blog, #team · the user is retiring the blog and the team section */`. The run also writes `.hallmark/compare.html`, the before and after screenshots side by side: give the user its path.2. The project's own checks, where it has them: the type check, the build, the tests. A redesign that breaks one is not finished.3. The finish review also takes the `before` screenshots and answers what the old page did better (`review-finish.md`).-4. The stamp carries `redesign: <depth>`; the log entry carries `mode: redesign`, `depth` and `scope` (page, site or app), plus the build's fields at full depth.+4. The log entry carries `mode: redesign`, `depth` and `scope` (page, site or app), plus the build's fields at full depth.5. The handoff, ahead of the material ask:```@@ -81,4 +81,5 @@ Changed the system: colour, type, radius, motion, the controlsDropped noneLayout 2 findings a full redesign would settle (8, 42), listed belowYours 2 claims kept as found ("50,000+ teams", the Acme quote) · 4 lines reworded, listed below+Compare .hallmark/compare.html```diff --git a/skills/hallmark/scripts/fixtures/kept/after.html b/skills/hallmark/scripts/fixtures/kept/after.htmlnew file mode 100644index 0000000..a0b1edb--- /dev/null+++ b/skills/hallmark/scripts/fixtures/kept/after.html@@ -0,0 +1,27 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Kept fixture, the page after</title>+<meta name="description" content="A careless redesign: one link, one field, one handler, one test hook and one script hook are gone, and one heading is reworded.">+<style>+/* Hallmark · shape: fixture · genre: editorial · theme: fixture (by request) · redesign: full */+/* Hallmark · dropped mailto:[email protected] · the desk address is retired and the form replaces it */+body { font-family: sans-serif; }+</style>+</head>+<body>+<nav id="site-nav"><a href="#rates">Rates</a> <button id="menu-button" type="button">Menu</button></nav>+<h1>Rooms by the harbour</h1>+<h2 id="rates">What it costs</h2>+<p>From $120 a night. Breakfast until 10:30.</p>+<form action="https://example.com/api/book" method="post">+ <input name="email" type="email">+ <button type="submit">Book</button>+</form>+<script>+document.getElementById('nav-toggle').addEventListener('click', function () { document.querySelector('#site-nav').classList.toggle('is-open'); });+</script>+</body>+</html>diff --git a/skills/hallmark/scripts/fixtures/kept/before.html b/skills/hallmark/scripts/fixtures/kept/before.htmlnew file mode 100644index 0000000..68afe6b--- /dev/null+++ b/skills/hallmark/scripts/fixtures/kept/before.html@@ -0,0 +1,26 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Kept fixture, the page before</title>+<meta name="description" content="The page a redesign starts from; after.html drops one of everything the record holds.">+<style>+body { font-family: sans-serif; }+</style>+</head>+<body>+<nav id="site-nav"><a href="#rates">Rates</a> <a href="rooms.html">Rooms</a> <a href="mailto:[email protected]">Email the desk</a> <button id="nav-toggle" type="button">Menu</button></nav>+<h1>Rooms by the harbour</h1>+<h2 id="rates">Rates</h2>+<p>From $120 a night. Breakfast until 10:30.</p>+<form action="https://example.com/api/book" method="post">+ <input name="email" type="email">+ <input name="nights" type="number">+ <button type="submit" onclick="track('book')" data-testid="book-button">Book</button>+</form>+<script>+document.getElementById('nav-toggle').addEventListener('click', function () { document.querySelector('#site-nav').classList.toggle('is-open'); });+</script>+</body>+</html>diff --git a/skills/hallmark/scripts/refcheck.mjs b/skills/hallmark/scripts/refcheck.mjsindex 6b41dd2..a95ba73 100644--- a/skills/hallmark/scripts/refcheck.mjs+++ b/skills/hallmark/scripts/refcheck.mjs@@ -1,5 +1,6 @@#!/usr/bin/env node-import { readFileSync, readdirSync, statSync, existsSync } from 'node:fs';+import { readFileSync, readdirSync, statSync, existsSync, mkdtempSync, copyFileSync, rmSync } from 'node:fs';+import { tmpdir } from 'node:os';import { join, dirname, relative, basename, resolve } from 'node:path';import { fileURLToPath } from 'node:url';import { spawnSync } from 'node:child_process';@@ -317,6 +318,26 @@ for (const [name, ok, msg] of existsSync(FIX) ? expectations : []) {else if (!ok(j)) add('error', target, 1, 'fixture', msg);}+const keptDir = join(FIX, 'kept');+if (existsSync(keptDir)) {+ const tmp = mkdtempSync(join(tmpdir(), 'hallmark-kept-'));+ try {+ const run = (flag) => spawnSync(process.execPath, [join(ROOT, 'scripts', 'sloplint.mjs'), 'index.html', flag, '--json'], { encoding: 'utf8', cwd: tmp });+ copyFileSync(join(keptDir, 'before.html'), join(tmp, 'index.html'));+ run('--before');+ copyFileSync(join(keptDir, 'after.html'), join(tmp, 'index.html'));+ let j = null;+ try { j = JSON.parse(run('--kept').stdout); } catch {}+ const kept = j ? j.findings.filter((x) => x.gate === 'kept') : [];+ const fails = kept.filter((x) => x.grade === 'FAIL').map((x) => x.evidence).join(' | ');+ const warns = kept.filter((x) => x.grade === 'WARN').map((x) => x.evidence).join(' | ');+ const want = [[fails, 'rooms.html'], [fails, 'nights'], [fails, "track('book')"], [fails, 'book-button'], [fails, '#nav-toggle'], [warns, 'nav-toggle']];+ if (!j) add('error', keptDir, 1, 'fixture', 'sloplint --kept did not run on the kept fixture');+ else if (!want.every(([hay, needle]) => hay.includes(needle))) add('error', keptDir, 1, 'fixture', 'the kept check must fail the lost link, field, handler, test hook and script hook, and warn on the lost id');+ else if (fails.includes('mailto:')) add('error', keptDir, 1, 'fixture', 'a link recorded as dropped in the stamp must not fail');+ } finally { rmSync(tmp, { recursive: true, force: true }); }+}+const REPO = resolve(ROOT, '..', '..');const pkgFile = join(REPO, 'package.json');if (existsSync(pkgFile)) {diff --git a/skills/hallmark/scripts/sloplint-render.mjs b/skills/hallmark/scripts/sloplint-render.mjsindex e6a015f..f0ba399 100644--- a/skills/hallmark/scripts/sloplint-render.mjs+++ b/skills/hallmark/scripts/sloplint-render.mjs@@ -1,5 +1,5 @@#!/usr/bin/env node-import { existsSync, mkdirSync } from 'node:fs';+import { existsSync, mkdirSync, writeFileSync } from 'node:fs';import { join, dirname, basename, resolve } from 'node:path';import { fileURLToPath } from 'node:url';@@ -54,6 +54,8 @@ async function shoot(page, file, tag, fullPage) {try {const dir = isUrl(file) ? join(process.cwd(), '.hallmark', SHOT_DIR) : join(dirname(file), '.hallmark', SHOT_DIR);mkdirSync(dir, { recursive: true });+ const ignore = join(dirname(dir), '.gitignore');+ if (!existsSync(ignore)) writeFileSync(ignore, 'shots/\nbefore/\nbefore.json\ncompare.html\n');const out = join(dir, `${slugOf(file)}-${tag}.png`);await page.screenshot({ path: out, fullPage });SHOTS.push(out);@@ -171,6 +173,30 @@ export async function renderCheck(htmlFiles, metaIn) {if (ring.ratio != null && ring.ratio < 2.95) findings.push({ gate: '26a', grade: 'FAIL', file, line: 1, evidence: `[1440px] focus ring ${ring.ratio.toFixed(2)}:1 against what is behind it on ${ring.key}`, fix: 'A ring at 3:1 or better against the surface it is drawn over: --color-focus, or a ring colour per band' });}}+ if (!heroOnly) {+ await page.setViewport({ width: 1440, height: 900 });+ await frames(page);+ await page.evaluate(() => {+ window.__hmSeen = [...document.querySelectorAll('p, li, h1, h2, h3, h4, dd, td, blockquote, figcaption')].filter((el) => {+ const cs = getComputedStyle(el); const r = el.getBoundingClientRect();+ return cs.display !== 'none' && cs.visibility !== 'hidden' && r.width > 1 && r.height > 1 && !el.closest('nav, header, dialog, [hidden], [aria-hidden="true"]');+ });+ }).catch(() => {});+ await page.setViewport({ width: 375, height: 800 });+ await frames(page);+ const cut = await page.evaluate(() => {+ const flat = (t) => (t || '').replace(/\s+/g, ' ').trim();+ const shown = flat(document.body.innerText);+ const gone = (window.__hmSeen || []).filter((el) => {+ const cs = getComputedStyle(el); const r = el.getBoundingClientRect();+ if (!(cs.display === 'none' || cs.visibility === 'hidden' || r.width < 1 || r.height < 1)) return false;+ const t = flat(el.textContent);+ return t.length > 12 && !shown.includes(t);+ });+ return { words: gone.reduce((n, el) => n + flat(el.textContent).split(' ').length, 0), first: gone[0] ? flat(gone[0].textContent).slice(0, 36) : '' };+ }).catch(() => ({ words: 0 }));+ if (cut.words >= 40) findings.push({ gate: 'F26', grade: 'WARN', file, line: 1, evidence: `[375px] ${cut.words} words shown at 1440 are hidden on a phone (first: "${cut.first}")`, fix: 'If it matters, make it work on a phone; if it does not, cut it everywhere' });+ }if (scriptErrors.length) findings.push({ gate: 'render', grade: 'FAIL', file, line: 1, evidence: `a script threw on load: ${scriptErrors[0].slice(0, 90)}`, fix: 'Fix the script; a page that throws ships half-working' });} catch (e) {console.error(`render tier: failed on ${file}: ${e.message}`);@@ -196,6 +222,57 @@ export async function renderCheck(htmlFiles, metaIn) {return kept;}+export function writeCompare(targets, note) {+ const groups = new Map();+ for (const t of targets) {+ const dir = isUrl(t) ? join(process.cwd(), '.hallmark') : join(dirname(t), '.hallmark');+ if (!groups.has(dir)) groups.set(dir, []);+ groups.get(dir).push(slugOf(t));+ }+ const esc = (x) => String(x).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));+ const made = [];+ for (const [dir, slugs] of groups) {+ const has = (side, slug, tag) => existsSync(join(dir, side, `${slug}-${tag}.png`));+ const pages = slugs.filter((x) => has('before', x, '1440x900') && has('shots', x, '1440x900'));+ if (!pages.length) continue;+ const pair = (slug, tag, label, cls) => (has('before', slug, tag) && has('shots', slug, tag) ? `<div class="pair ${cls}"><figure><img src="before/${esc(slug)}-${tag}.png" alt="${esc(slug)} before, ${label}" loading="lazy"><figcaption>Before, ${label}</figcaption></figure><figure><img src="shots/${esc(slug)}-${tag}.png" alt="${esc(slug)} after, ${label}" loading="lazy"><figcaption>After, ${label}</figcaption></figure></div>` : '');+ const body = pages.map((x) => `<section><h2>${esc(x)}</h2>${pair(x, '1440x900', 'first screen at 1440', '')}${pair(x, '1440-full', 'whole page at 1440', '')}${pair(x, '375', 'whole page on a phone', 'phone')}</section>`).join('\n');+ const html = `<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Before and after</title>+<meta name="description" content="The redesign's screenshots, before and after, side by side.">+<style>+:root { color-scheme: light; --paper: oklch(97% 0.004 250); --ink: oklch(22% 0.01 250); --muted: oklch(45% 0.01 250); --rule: oklch(86% 0.006 250); }+html, body { overflow-x: clip; }+body { margin: 0; padding: 48px 32px 96px; background: var(--paper); color: var(--ink); font: 16px/1.5 ui-sans-serif, system-ui, sans-serif; }+h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }+p { margin: 0; color: var(--muted); max-width: 72ch; }+section { margin-top: 72px; }+h2 { margin: 0 0 16px; font-size: 18px; font-weight: 600; }+.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 32px; }+.pair.phone { max-width: 760px; }+figure { margin: 0; }+img { display: block; width: 100%; height: auto; outline: 1px solid var(--rule); outline-offset: -1px; background: oklch(100% 0 0); }+figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }+@media (max-width: 720px) { body { padding: 32px 16px 64px; } .pair { grid-template-columns: minmax(0, 1fr); } }+</style>+</head>+<body>+<h1>Before and after</h1>+<p>${esc(note || 'Each pair shows the page as it stood and as it stands now, at the same size.')}</p>+${body}+</body>+</html>+`;+ writeFileSync(join(dir, 'compare.html'), html);+ made.push(join(dir, 'compare.html'));+ }+ return made;+}+function inventory() {const base = location.pathname.slice(0, location.pathname.lastIndexOf('/') + 1);const key = (raw) => {diff --git a/skills/hallmark/scripts/sloplint.mjs b/skills/hallmark/scripts/sloplint.mjsindex 6a288a0..0111150 100644--- a/skills/hallmark/scripts/sloplint.mjs+++ b/skills/hallmark/scripts/sloplint.mjs@@ -3846,6 +3846,24 @@ function checkF24(ctx) {}}+function checkF25(ctx) {+ const wide = (value) => resolveVars(value, ctx.tokens).split(/,(?![^(]*\))/).some((layer) => {+ if (/\binset\b/.test(layer)) return false;+ const len = [...layer.replace(/(?:oklch|oklab|rgba?|hsla?|color|color-mix)\([^)]*\)/g, '').matchAll(/(-?\d*\.?\d+)(px|rem|em)?(?=\s|$)/g)].map((m) => parseFloat(m[1]) * (m[2] === 'rem' || m[2] === 'em' ? 16 : 1));+ return len.length >= 3 && len[2] + Math.min(0, len[3] || 0) >= 24;+ });+ for (const r of ctx.rules) {+ const sh = r.decls.find((d) => d.prop === 'box-shadow' && d.value.trim() !== 'none');+ if (!sh || !wide(sh.value)) continue;+ const edge = r.decls.find((d) => /^border(?:-(?:top|right|bottom|left|inline|block)(?:-(?:start|end))?)?$/.test(d.prop) && /(?:^|\s)(?:1px|0\.5px|thin|var\(--rule-hair\))(?:\s|$)/.test(d.value) && !/\b(?:none|transparent)\b/.test(d.value));+ if (edge) { report('F25', 'WARN', r.file, sh.line, `a hairline border under a wide soft shadow on ${r.selector}`, 'Commit to one: a defined edge, or elevation by shadow'); return; }+ }+ for (const doc of ctx.docs) {+ const m = /class(?:Name)?\s*=\s*["'][^"']*(?<![\w:-])border(?![\w-])[^"']*(?<![\w:-])shadow-(?:xl|2xl)(?![\w-])|class(?:Name)?\s*=\s*["'][^"']*(?<![\w:-])shadow-(?:xl|2xl)(?![\w-])[^"']*(?<![\w:-])border(?![\w-])/.exec(doc.raw || doc.src);+ if (m) { report('F25', 'WARN', doc.file, doc.lineOf ? doc.lineOf(m.index) : 1, 'a hairline border under a wide soft shadow (border with shadow-xl or shadow-2xl)', 'Commit to one: a defined edge, or elevation by shadow'); return; }+ }+}+function check76(ctx) {for (const doc of ctx.docs) {if (doc.kind !== 'html') continue;@@ -3862,7 +3880,7 @@ const CHECKS = [check1, check2, check3, check3Stripe, check4, check6a, check7, ccheck39, check40_41, check42, check42Footer, check46, check47, check48, check49,check50, check50Wrap, check53, check54, check55, check56, checkCopyTell, check62, check63, check64, check65, check67, check38c,check19Tells, check58Static, check68, check69, check70, check42TwoButton, check47Placeholders, check65Tailwind, check29Glow, check11Lift, check15Fade,- checkF1, checkF2, checkF3, checkF4, checkF5, checkF6, checkF7, checkF7Pills, checkF8, checkF9, checkF15, checkF16, checkF21, checkF22, checkF23, checkF24, check76,+ checkF1, checkF2, checkF3, checkF4, checkF5, checkF6, checkF7, checkF7Pills, checkF8, checkF9, checkF15, checkF16, checkF21, checkF22, checkF23, checkF24, checkF25, check76,checkTailwind, checkComponentText];const files = opts.paths.length ? collectFiles(opts.paths) : [];@@ -4067,35 +4085,41 @@ function wiringOf(src) {if (!/^(meta|slot|iframe|param|a|map|object|link)$/i.test(tag)) w.fields.push(m[1]);}for (const m of body.matchAll(/\bregister\(\s*["']([\w.-]+)["']/g)) w.fields.push(m[1]);- for (const m of body.matchAll(/\bdata-(?:testid|test|cy|qa|track[\w-]*|analytics[\w-]*|event[\w-]*|gtm[\w-]*)\s*=\s*["']([^"']+)["']/g)) w.hooks.push(m[1]);+ for (const m of body.matchAll(new RegExp(String.raw`\bdata-(?:testid|test|cy|qa|track[\w-]*|analytics[\w-]*|event[\w-]*|gtm[\w-]*)\s*=\s*` + val, 'g'))) w.hooks.push(squash(m[1]).replace(/^["']|["']$/g, ''));for (const m of body.matchAll(/(?<![\w-])id\s*=\s*["']([^"'{}\s]+)["']/g)) w.ids.push(m[1]);return w;}-function danglingHooks(docs) {- const markup = docs.map((d) => (d.raw || d.src).replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '')).join('\n');- let js = docs.map((d) => [...(d.raw || d.src).matchAll(/<script\b(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi)].map((m) => m[1]).join('\n')).join('\n');- const local = new Set();- for (const d of docs) for (const m of (d.raw || d.src).matchAll(/<script\b[^>]*\bsrc\s*=\s*["']([^"']+)["']/gi)) {+function scriptHooks(doc) {+ const raw = doc.raw || doc.src;+ const markup = raw.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '');+ let js = [...raw.matchAll(/<script\b(?![^>]*\bsrc\s*=)[^>]*>([\s\S]*?)<\/script>/gi)].map((m) => m[1]).join('\n');+ for (const m of raw.matchAll(/<script\b[^>]*\bsrc\s*=\s*["']([^"']+)["']/gi)) {if (/^(?:https?:)?\/\//.test(m[1])) continue;- const f = resolve(dirname(d.file), m[1].split('?')[0]);- if (existsSync(f)) local.add(f);+ try { js += '\n' + readFileSync(resolve(dirname(doc.file), m[1].split('?')[0]), 'utf8'); } catch {}}- for (const f of local) { try { js += '\n' + readFileSync(f, 'utf8'); } catch {} }const sels = new Set();for (const m of js.matchAll(/getElementById\(\s*["'`]([\w-]+)["'`]/g)) sels.add('#' + m[1]);for (const m of js.matchAll(/(?:querySelector(?:All)?|closest|matches)\(\s*["'`]([^"'`]+)["'`]/g)) for (const t of m[1].matchAll(/#[\w-]+|\.[A-Za-z_][\w-]*|\[data-[\w-]+/g)) sels.add(t[0][0] === '[' ? t[0] + ']' : t[0]);const has = (sel) => sel[0] === '#' ? new RegExp(`(?<![\\w-])id\\s*=\\s*["']${escRe(sel.slice(1))}["']`).test(markup)- : sel[0] === '.' ? new RegExp(`(?<![\\w-])class(?:Name)?\\s*=\\s*["'][^"']*(?<![\\w-])${escRe(sel.slice(1))}(?![\\w-])`).test(markup)+ : sel[0] === '.' ? new RegExp(`(?<![\\w-])class\\s*=\\s*["'][^"']*(?<![\\w-])${escRe(sel.slice(1))}(?![\\w-])`).test(markup): markup.includes(sel.slice(1, -1));- return [...sels].filter((x) => !has(x)).sort();+ const queried = [...sels].sort();+ return { queried, hooked: queried.filter(has) };}function takeInventory() {const docs = [...new Set(contexts.flatMap(([, c]) => c.docs))];- const wiring = { handlers: new Set(), links: new Set(), fields: new Set(), hooks: new Set(), ids: new Set() };- for (const d of docs) { const w = wiringOf(d.raw || d.src); for (const k of Object.keys(wiring)) for (const v of w[k]) wiring[k].add(v); }+ const byFile = {};+ for (const d of docs) { const w = wiringOf(d.raw || d.src); byFile[rel(d.file)] = Object.fromEntries(Object.entries(w).map(([k, v]) => [k, [...new Set(v)].sort()])); }const pages = {};for (const [file, inv] of Object.entries(domInventories)) if (inv) pages[/^https?:/.test(file) ? file : rel(file)] = inv;- return { wiring: Object.fromEntries(Object.entries(wiring).map(([k, v]) => [k, [...v].sort()])), dangling: danglingHooks(docs), pages };+ const scripts = {};+ for (const d of docs) if (d.kind === 'html') { const h = scriptHooks(d); if (h.queried.length) scripts[rel(d.file)] = h; }+ return { files: byFile, wiring: unionWiring(Object.values(byFile)), scripts, pages };+}+function unionWiring(list) {+ const u = { handlers: new Set(), links: new Set(), fields: new Set(), hooks: new Set(), ids: new Set() };+ for (const w of list) for (const k of Object.keys(u)) for (const v of w[k] || []) u[k].add(v);+ return Object.fromEntries(Object.entries(u).map(([k, v]) => [k, [...v].sort()]));}let keptLine = null;if (opts.kept) {@@ -4105,12 +4129,14 @@ if (opts.kept) {if (!was) report('kept', 'FAIL', SNAP, 1, 'no before record here; --kept has nothing to compare against', 'Run sloplint with --before from this folder before the redesign starts');else {const now = takeInventory();+ const outside = Object.keys(was.files || {}).filter((f) => !(f in now.files) && existsSync(resolve(f)));+ if (was.files) was.wiring = unionWiring(Object.entries(was.files).filter(([f]) => !outside.includes(f)).map(([, w]) => w));const stamps = contexts.map(([, c]) => c.stampText).join('\n');const allowed = [...stamps.matchAll(/\/\*\s*Hallmark\s*·\s*dropped\s+([^·*]+?)\s*·\s*([^*]+?)\s*\*\//gi)].filter((m) => m[2].trim().length >= 12).flatMap((m) => m[1].split(',').map((t) => t.trim().replace(/^[`"']|[`"']$/g, '').toLowerCase()).filter(Boolean));const acked = {};const gone = (a, b, cat) => (a || []).filter((x) => {if ((b || []).includes(x)) return false;- if (allowed.some((t) => x.toLowerCase() === t || x.toLowerCase().includes(t))) { if (cat) (acked[cat] ||= new Set()).add(x); return false; }+ if (allowed.some((t) => x.toLowerCase() === t || (t.length >= 4 && x.toLowerCase().includes(t)))) { if (cat) (acked[cat] ||= new Set()).add(x); return false; }return true;});const hard = { links: new Set(), fields: new Set(), 'form actions': new Set(), handlers: new Set(), 'test hooks': new Set() };@@ -4141,11 +4167,15 @@ if (opts.kept) {const list = (set, n = 8) => { const a = [...set]; return a.slice(0, n).map((x) => trunc(x, 48)).join(', ') + (a.length > n ? ` and ${a.length - n} more` : ''); };const fix = 'Restore each one, or record it in the stamp: /* Hallmark · dropped <item>, <item> · <the reason, in the user\'s words> */';for (const [k, set] of Object.entries(hard)) if (set.size) report('kept', 'FAIL', SNAP, 1, `${k} the page had before and no longer has: ${list(set)}`, fix);- const unhooked = gone(now.dangling, was.dangling || []);- if (unhooked.length) report('kept', 'FAIL', SNAP, 1, `a script still queries ${list(unhooked)}, which the markup no longer has`, 'Keep the ids, classes and data attributes scripts query, or change the script with the markup');+ for (const [f, h] of Object.entries(was.scripts || {})) {+ const n = now.scripts[f];+ const unhooked = n ? h.hooked.filter((x) => n.queried.includes(x) && !n.hooked.includes(x)) : [];+ if (unhooked.length) report('kept', 'FAIL', resolve(f), 1, `a script still queries ${list(unhooked)}, which this page's markup no longer has`, 'Keep the ids, classes and data attributes scripts query, or change the script with the markup');+ }for (const [k, set] of Object.entries(soft)) if (set.size) report('kept', 'WARN', SNAP, 1, `${k} gone or reworded since the before record: ${list(set)}`, 'Confirm each was meant to go, restore it, or record it as dropped in the stamp');if (wordsWas > 80 && wordsNow < wordsWas * 0.6) report('kept', 'WARN', SNAP, 1, `the pages hold ${wordsNow} words where they held ${wordsWas}`, 'Check that no section of content was dropped');if (skipped.length) report('kept', 'WARN', SNAP, 1, `not compared, because this run did not render them: ${list(skipped, 4)}`, 'Render the same pages or URLs the before record holds');+ if (outside.length) report('kept', 'WARN', SNAP, 1, `not compared, because this run did not read them: ${list(outside, 4)}`, 'Run --kept on the same target as --before');const lostOf = (k) => (hard[k] || soft[k]).size;keptLine = { parts: ['links', 'fields', 'handlers', 'test hooks', 'headings', 'figures'].filter((k) => total[k].size).map((k) => { const d = acked[k] ? acked[k].size : 0; return `${k} ${Math.max(0, total[k].size - lostOf(k) - d)}/${total[k].size}${d ? ` (${d} dropped on record)` : ''}`; }), was: was.summary || null };}@@ -4197,6 +4227,14 @@ if (opts.before) {beforeLine = `before: recorded ${new Set([...inv.wiring.links, ...Object.values(inv.pages).flatMap((p) => p.links)]).size} links, ${new Set([...inv.wiring.fields, ...Object.values(inv.pages).flatMap((p) => p.fields)]).size} fields, ${inv.wiring.handlers.length} handlers, ${inv.wiring.hooks.length} test hooks${Object.keys(inv.pages).length ? ` and ${Object.keys(inv.pages).length} rendered page(s)` : ''} in ${rel(SNAP)}; --kept checks a redesign against it`;}const keptNote = keptLine ? `kept: ${keptLine.parts.join(', ') || 'nothing recorded'}${keptLine.was ? `; before ${keptLine.was.fails} FAIL, ${keptLine.was.reflex} REFLEX, now ${fails} FAIL, ${reflex} REFLEX` : ''}` : null;+let compareNote = null;+if (opts.kept && opts.render && !renderNotRun) {+ try {+ const mod = await import(new URL('./sloplint-render.mjs', import.meta.url).href);+ const made = mod.writeCompare([...files.filter((f) => extname(f).toLowerCase() === '.html'), ...opts.urls], keptNote);+ if (made.length) compareNote = `compare: ${made.map(rel).join(', ')} shows before and after side by side`;+ } catch {}+}const scopeNote = `${files.length} file(s)${opts.urls.length ? ` and ${opts.urls.length} URL(s)` : ''}${opts.stage === 'hero' ? ' (hero stage)' : ''}`;const renderNote = opts.render ? (renderNotRun ? `render tier not run: ${renderNotRun}` : null) : null;if (opts.json) {@@ -4228,6 +4266,7 @@ if (opts.json) {}if (renderNote) console.log(renderNote);if (keptNote) console.log(keptNote);+ if (compareNote) console.log(compareNote);if (beforeLine) console.log(beforeLine);}process.exit(!opts.before && (fails > 0 || reflex > 0) ? 1 : 0);diff --git a/skills/hallmark/scripts/theme.mjs b/skills/hallmark/scripts/theme.mjsindex 7c6c9f3..02693aa 100644--- a/skills/hallmark/scripts/theme.mjs+++ b/skills/hallmark/scripts/theme.mjs@@ -12,15 +12,15 @@ const args = process.argv.slice(2);const cmd = args[0];const flag = (k, d = null) => { const i = args.indexOf('--' + k); const v = i >= 0 ? args[i + 1] : undefined; return v !== undefined && !String(v).startsWith('--') ? v : d; };const has = (k) => args.includes('--' + k);-const VALUED = new Set(['genre', 'brief', 'log', 'n', 'reroll', 'dealt', 'dir', 'axes', 'face', 'hue', 'entry']);+const VALUED = new Set(['genre', 'brief', 'log', 'n', 'reroll', 'dealt', 'dir', 'axes', 'face', 'hue', 'entry', 'redesign']);const positional = () => { const out = []; for (let i = 1; i < args.length; i++) { const a = args[i]; if (a.startsWith('--')) { if (VALUED.has(a.slice(2))) i++; continue; } out.push(a); } return out; };const GENRES = ['editorial', 'modern-minimal', 'atmospheric', 'playful'];function usage() {console.error(`usage:node theme.mjs deal --genre <g> --brief "<brief>" [--log .hallmark/log.json] [--n 3] [--reroll 0] [--json]- node theme.mjs scaffold <slug> [--dealt "<n>/3, seed <seed>"] [--dir .] [--force]- node theme.mjs scaffold --custom [--dir .] [--force]+ node theme.mjs scaffold <slug> [--dealt "<n>/3, seed <seed>"] [--redesign polish|restyle|full] [--dir .] [--force]+ node theme.mjs scaffold --custom | --brand [--redesign polish|restyle|full] [--dir .] [--force]node theme.mjs check [--axes "<paper>/<display>/<accent>"] [--face "<display face>"] [--hue <accent hue>] [--log .hallmark/log.json]node theme.mjs log --entry '<one JSON object>' [--log .hallmark/log.json]node theme.mjs index@@ -267,7 +267,11 @@ button, input, select, textarea { font: inherit; }const SLOTS_JS = `window.hallmarkSlots = (m) => { for (const [k, v] of Object.entries(m)) { const s = document.querySelector(\`[data-slot="\${k}"]\`); if (!s) continue; const im = new Image(); im.src = typeof v === 'string' ? v : v.src; im.alt = (typeof v === 'object' && v.alt) || s.dataset.alt || ''; s.prepend(im); } };`;function scaffold() {- const custom = has('custom');+ const brand = has('brand');+ const custom = has('custom') || brand;+ const depth = flag('redesign', '');+ if (depth && !['polish', 'restyle', 'full'].includes(depth)) { console.error('--redesign takes polish, restyle or full'); process.exit(2); }+ const tail = depth ? ` · redesign: ${depth}` : '';const slug = custom ? null : positional()[0];if (!custom && !slug) { usage(); process.exit(2); }const dir = resolve(flag('dir', '.'));@@ -292,10 +296,12 @@ function scaffold() {writeFileSync(out, css);const own = !custom && /## Build hint[\s\S]*?(::selection\s*\{[^}]*\})/.exec(readFileSync(join(THEMES, `${slug}.md`), 'utf8'));writeFileSync(baseOut, (own ? BASE.replace(/::selection \{[^}]*\}/, own[1].replace(/\s+/g, ' ')) : BASE) + '\n');- const stamp = custom- ? `/* Hallmark · shape: <shape> · genre: <genre> · theme: custom · direction: "<drawn, n/7>" · vibe: "<4 to 8 words>"\n * paper: oklch(<>) · accent: oklch(<>) · display: <face> · body: <face> · hero: <posture> · nav: <shape> · footer: <shape> · enrichment: <none or the file> · signature: <the one move>\n * axes: <paper>/<display>/<accent> · posture: <posture> · seed: <key> · challenger: <name> (<verdict or raise>) · contract: <after the finish review> · contrast: pass · fold: pass · v${VERSION} */`- : `/* Hallmark · shape: <shape> · genre: ${header.genre} · theme: ${name} (${flag('dealt', '') ? `deal ${flag('dealt', '')}` : 'by request'})\n * hero: <posture> · nav: <shape> · footer: <shape> · enrichment: <none or the file> · signature: <the one move>\n * axes: ${triple(header)} · posture: ${header.posture} · contrast: pass · fold: pass · v${VERSION} */`;- console.log(`wrote ${out} (${custom ? 'the shared scale; fill every --color-* and --font-* from direction.md § B and § C before building' : `${name} tokens plus the shared scale`}) and ${baseOut} (the base rules the Floor already decided)`);+ const stamp = brand+ ? `/* Hallmark · shape: <shape, or kept> · genre: <genre> · theme: brand${tail}\n * paper: oklch(<>) · accent: oklch(<>) · display: <face> · body: <face> · hero: <posture, or kept> · nav: <shape, or kept> · footer: <shape, or kept> · signature: <the one move, or kept>\n * axes: <paper>/<display>/<accent> · posture: <posture> · contrast: pass · fold: pass · v${VERSION} */`+ : custom+ ? `/* Hallmark · shape: <shape> · genre: <genre> · theme: custom${tail} · direction: "<drawn, n/7>" · vibe: "<4 to 8 words>"\n * paper: oklch(<>) · accent: oklch(<>) · display: <face> · body: <face> · hero: <posture> · nav: <shape> · footer: <shape> · enrichment: <none or the file> · signature: <the one move>\n * axes: <paper>/<display>/<accent> · posture: <posture> · seed: <key> · challenger: <name> (<verdict or raise>) · contract: <after the finish review> · contrast: pass · fold: pass · v${VERSION} */`+ : `/* Hallmark · shape: <shape> · genre: ${header.genre} · theme: ${name} (${flag('dealt', '') ? `deal ${flag('dealt', '')}` : 'by request'})${tail}\n * hero: <posture> · nav: <shape> · footer: <shape> · enrichment: <none or the file> · signature: <the one move>\n * axes: ${triple(header)} · posture: ${header.posture} · contrast: pass · fold: pass · v${VERSION} */`;+ console.log(`wrote ${out} (${brand ? 'the shared scale; fill every --color-* and --font-* from the palette and faces the pre-flight found' : custom ? 'the shared scale; fill every --color-* and --font-* from direction.md § B and § C before building' : `${name} tokens plus the shared scale`}) and ${baseOut} (the base rules the Floor already decided)`);if (!custom && !flag('dealt', '')) {const pic = join(THEMES, `${slug}.jpg`);if (existsSync(pic)) console.log(`look at ${pic}: the material at full size${header.pictured ? `, from a page built as ${header.pictured}` : ''}. Take its scale, density and objects, not its layout or its section order.`);