Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
CSS
Fields meet 3:1, the deal weighs rare words, unattended runs build without asking
Yousseff9da3b29419b
diff --git a/skills/hallmark/SKILL.md b/skills/hallmark/SKILL.mdindex ab7dcd4..c0879d9 100644--- a/skills/hallmark/SKILL.md+++ b/skills/hallmark/SKILL.md@@ -48,9 +48,9 @@ Codex CLI and OpenCode read [`references/flow.md`](references/flow.md) § Harnes### 0. Pre-flight-Read the existing project before asking the user anything. Signals, in order: `design.md` or `DESIGN.md` at the root (a locked system: it overrides everything below, and pages share it); `.hallmark/brand-spec.md` or a brief naming a real brand (run [`references/brand-truth.md`](references/brand-truth.md), never theme a real brand from memory); the font stack in `package.json`, Google Fonts links or Tailwind config; the palette in `:root`, Tailwind colours or a tokens file; motion libraries in the dependencies; the spacing scale; the framework; an Inspo MCP server on the session (`mcp__inspo__*` tools present: signal 8, the archive builds and Hallmark sweeps, see [`references/flow.md`](references/flow.md) § Signal 8); `TOGETHER_API_KEY` in the environment (signal 9, unlocks the comp step).+Read the existing project before asking the user anything. Signals, in order: `design.md` or `DESIGN.md` at the root (a locked system: it overrides everything below, and pages share it); `.hallmark/brand-spec.md` or a brief naming a real brand (run [`references/brand-truth.md`](references/brand-truth.md), never theme a real brand from memory); the project's fonts, palette, spacing scale, motion libraries and framework (`package.json`, Tailwind config, `:root`, a tokens file, font links); an Inspo MCP server on the session (`mcp__inspo__*` tools present: signal 8, the archive builds and Hallmark sweeps, `flow.md` § Signal 8); `TOGETHER_API_KEY` in the environment (signal 9, unlocks the comp step).-Output one block (file:line citations, what Hallmark preserves, what it introduces) and cache it in `.hallmark/preflight.json`; edge cases are in [`references/flow.md`](references/flow.md) § Pre-flight.+Output one block (file:line citations, what Hallmark preserves, what it introduces) and cache it in `.hallmark/preflight.json`; edge cases are in `flow.md` § Pre-flight.### 1. Ask once@@ -58,9 +58,9 @@ One message, even on a five-word brief:> *Before I build, four things. 1. **Material**, the one that matters most: what can the page show? Screenshots or a screen recording, product photos, real numbers (customers, uptime, prices), a quote someone said with their name, logos you may use. Paste them, give paths, or say "leave slots"; I never invent any of it. 2. **Audience**: who uses this and what do they care about? 3. **Use**: the one action the page should drive. 4. **Tone**: pick an extreme (editorial · brutalist · soft · utilitarian · luxury · playful · technical · austere); "clean and modern" is not a tone. Plus the vibe in 4 to 8 words and an anchor colour if you have one. Or say **go ahead** and I will infer and tell you what I picked.*-Skipped fields are opt-outs: infer them, state the inferences in one line at the top of the reply, stamp them. No follow-up ladders. Material is never inferred: what was not given is a slot or is absent.+Skipped fields are opt-outs: infer them, state the inferences in one line at the top of the reply, stamp them. No follow-up ladders. Material is never inferred: what was not given is a slot or is absent. When the brief answers all four, or no one can answer (a `claude -p` or `codex exec` run, a batch), do not ask: build on the inferences.-**Genre** is picked here, silently, from the brief: *AI tool, generative, music, video, voice, dark, atmospheric* → **atmospheric**; *SaaS, enterprise, API, platform, developer tool, infra, B2B* → **modern-minimal**; *fun, consumer, casual, family, community, onboarding* → **playful**; otherwise **editorial**. A named theme's genre wins; when two non-default genres fire, add one either-or to the Step 1 message, or on go ahead pick and say so.+**Genre** is picked here, silently, from the brief: *AI tool, generative, music, video, voice, dark, atmospheric* → **atmospheric**; *SaaS, enterprise, API, platform, developer tool, infra, B2B* → **modern-minimal**; *playful, fun, friendly, soft, kids, games, community* → **playful**; otherwise **editorial**, which holds most consumer and family briefs. The picked theme's genre wins from Step 4 on (genre file, stamp, `--genre`); when two non-default genres fire, add one either-or to the Step 1 message, or on go ahead pick and say so.**Scope** is checked here too. A brief naming one element (button, input, card, modal, nav, footer, tab strip, chip) or saying "just the X" is a component: read [`references/flow.md`](references/flow.md) § Component scope and skip macrostructure, chrome, enrichment and the log.@@ -70,9 +70,9 @@ Skipped fields are opt-outs: infer them, state the inferences in one line at theDecide the page's shape, how it opens, how sections separate, what the nav and footer do, how tall the hero stands and what carries it. You are designing, not filling a form. For a starting point: 21 page shapes in [`references/macrostructures.md`](references/macrostructures.md), navs, footers and sections in [`references/component-cookbook.md`](references/component-cookbook.md), enrichment in [`references/hero-enrichment.md`](references/hero-enrichment.md); load only the one file you pick, never a whole catalog.-**Rotation.** Read `.hallmark/log.json` (newest first). The page's shape must differ from the last three builds; the nav and footer must not repeat the last three shapes; the hero posture (`craft.md` § 4), a non-`none` enrichment and the section opening must not repeat the previous run. The theme deal in Step 3 handles the theme axis for you. **The mirror test:** would this exact combination have come out for a neighbouring brief in the same category? If yes, change one decision and say which in the Picks block.+**Rotation.** Read `.hallmark/log.json` (newest first). The page's shape must differ from the last three builds; the nav and footer must not repeat the last three shapes; the hero posture (`craft.md` § 4), a non-`none` enrichment and the section opening must not repeat the previous run. The deal in Step 3 handles the theme axis. **The mirror test:** would this exact combination have come out for a neighbouring brief in the same category? If yes, change one decision and say which in the Picks block.-**Signature.** Every page has one move a visitor would describe to a friend: an object, a composition, an interaction, built from the inventory's strongest real thing. Decide it here; it goes in the Picks block and the stamp, it shows on the first screen (a slot's caption counts), and the reviewer checks it. A page without one is a template with good tokens.+**Signature.** Every page has one move a visitor would describe to a friend: an object, a composition, an interaction, built from the inventory's strongest real thing. Decide it here and fit it to the dealt theme's objects; it goes in the Picks block and the stamp, it shows on the first screen (a slot's caption counts), and the reviewer checks it. A page without one is a template with good tokens.Decide all of this and hold it. It is said once, at Step 5.@@ -129,14 +129,14 @@ Emit code that satisfies the theme and the shape. Always:- **Read [`references/patterns.md`](references/patterns.md) once:** controls in all eight states, a slot, a missing fact, a form that posts nowhere yet, one reveal, figures that compare, written to pass the gates. Take their shape, never their copy.- **Hero first.** Write the nav and the hero, run `node <skill-dir>/scripts/sloplint.mjs <file> --render --stage hero`, then the hero review in fresh context (`gates.md` § 6). Build the sections only once the hero ships: a hero rewrite after eight sections exist costs eight sections.- **One idea per screen.** Hero: headline (seven words or fewer, 50 characters or fewer), one sentence (twelve words or fewer), one or two actions. A section: a heading of three to five words, at most one line, then its object (a slot, a figure, a drawn thing, a list of four or fewer, a table of five rows or fewer). Four to eight sections, footer included; 450 visible words at most, fewer when the brief has less to say. Never pad to a count.-- **Show, do not describe.** On a product page with material or "leave slots": at least two `data-slot` containers, the hero visual (unless the theme's own object holds the hero) and a demo strip; with neither, the page shows what is real (Step 2). The user's images fill them; otherwise a designed placeholder in the theme's colours with a corner label (`craft.md` § Demo slots). Never a grey box or a fake screenshot with invented figures.+- **Show, do not describe.** On a product page with material or "leave slots": at least two `data-slot` containers, the hero visual (unless the theme's own object holds the hero) and a demo strip (or one capture per stage where the shape stages the product); with neither, the page shows what is real (Step 2). The user's images fill them; otherwise a designed placeholder in the theme's colours with a corner label (`craft.md` § Demo slots). Never a grey box or a fake screenshot with invented figures.- **The fold.** The hero is the first screen and only the first screen at 1440 x 900 and 1920 x 1080, its visual beside the text (centres within 60px, 48 to 120px apart), never pinned in a corner; a Banner shares it with the first section.- **Room.** Sections part by the scaffold's three `--section-gap` steps, mixed; a heading's line 8 to 16px under it, its content 32 to 48px; grid items 24 to 40px apart; at least twice the space above a heading as below it.- **Page invariants.** One primary button style, one container width, one column gap for every multi-column section below the hero, one radius per nesting level, and never more centred heading groups than left-aligned ones. A subhead over 120 characters is set left-aligned.-- **Type.** The theme's faces, at most two families (three with one outlier role); display tracking and leading per `craft.md` § 1; body 16px or more at 1.5 to 1.65, 45 to 75ch; heads roman. Labels per Floor 9, never mono unless mono is the material (64). A head is one weight and one colour throughout; the accented word is a tell (38iii).+- **Type.** The theme's faces, at most two families (three with one outlier role); display tracking and leading per `craft.md` § 1; body 16px or more at 1.5 to 1.65, 45 to 75ch; heads roman; labels never mono unless mono is the material (64). A head is one weight and one colour throughout; the accented word is a tell (38iii).- **States and motion.** Eight states on every interactive element; `transform` and `opacity` only; at most one orchestrated reveal per page, none where the theme keeps still, 0.4 to 0.8s, visible by default; exits at 60 to 75% of the enter; nothing bounces.-- **Browser surfaces.** Keep the scaffold's `::selection`, `caret-color`, `scrollbar-color` and focus ring; add tabular numerals wherever figures compare.-- **Stamp.** Line 1 of CSS is the scaffold's stamp skeleton with every field filled (`hero: Stage · nav: edge-aligned · footer: colophon line · enrichment: none · signature: live pricing table in the hero slot`), then the critique line (`gates.md` § 3), any `waive` and `answered` lines, and a custom run's direction contract. Everything the linter reads sits in the first 40 lines.+- **Browser surfaces.** Keep the scaffold's selection, caret, scrollbar and focus rules; tabular numerals wherever figures compare.+- **Stamp.** Line 1 of CSS is the scaffold's stamp skeleton with every field filled (`hero: Stage · nav: edge-aligned · signature: live pricing table in the hero slot`), then the critique line (`gates.md` § 3), any `waive` and `answered` lines, and a custom run's direction contract. Everything the linter reads sits in the first 40 lines.- **`tokens.css`** is the scaffold's, at the project root, imported by the page; on a `design.md` project, refresh its `## Exports` ([`references/export-formats.md`](references/export-formats.md)).- **Existing stylesheets are append-only:** keep the Tailwind directives where they are, import `tokens.css` and `base.css` below them, reuse the project's own token names; rewrite only on request.- **Log.** `node <skill-dir>/scripts/theme.mjs log --entry '<json>'` puts the build atop `.hallmark/log.json`: `shape`, `theme`, `axes`, `hero`, `nav`, `footer`, `enrichment`, `entry` (the section opening), `fingerprint` (`Hanging|Asymmetric spans|Hairline|Outlined|Margin-aligned|None`), `signature`, `waived`, `brief`; it names any field you left out.@@ -147,9 +147,9 @@ Emit code that satisfies the theme and the shape. Always:2. Load [`references/gates.md`](references/gates.md) § 5 and walk the J and R/J gates. Confirm or dismiss every WARN. Fix every open Floor finding; fix or waive every Reflex one; answer every Finish one.3. The finish review in fresh context (`gates.md` § 6): hand the reviewer its brief file and the inputs it lists, act on its first word (`recapture`, `rebuild`, `fix`, `ship`), and score the fixes yourself.4. Close with the material ask: every slot, its size and what belongs there, then the one piece of material that would most improve the page.-5. Update the Picks block's last row with the real outcome (`Floor 0 FAIL · Reflex 2 (1 waived: 47b) · finish-review: subagent, 3 resolved`). A fabricated pass is itself slop.+5. Update the Picks block: any row the build changed, and the last row with the real outcome (`Floor 0 FAIL · Reflex 2 (1 waived: 47b) · finish-review: subagent, 3 resolved`). A fabricated pass is itself slop.-Verification is budgeted: one batched inspection, one fix batch, at most one confirming round, then stop polishing.+Verification is budgeted: one batched inspection, one fix batch, at most one confirming round, then stop polishing; each review adds one fix batch and its recapture.## Branchesdiff --git a/skills/hallmark/references/components/ft7-newsletter-first.md b/skills/hallmark/references/components/ft7-newsletter-first.mdindex 7e909af..e449436 100644--- a/skills/hallmark/references/components/ft7-newsletter-first.md+++ b/skills/hallmark/references/components/ft7-newsletter-first.md@@ -26,7 +26,7 @@ The form (label, input, submit) is the *primary* element of the footer; wordmark.foot-news__form label { display: block; font-size: var(--text-sm); margin-block-end: var(--space-2xs); }.foot-news__row { display: flex; gap: var(--space-xs); }.foot-news__row input, .foot-news__row button { min-height: 44px; }-.foot-news__row input { flex: 1; min-width: 0; padding-inline: var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input, var(--radius-card)); background: var(--color-paper); font-size: var(--text-md); }+.foot-news__row input { flex: 1; min-width: 0; padding-inline: var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-input, var(--radius-card)); background: var(--color-paper); font-size: var(--text-md); }.foot-news__row input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }.foot-news__help { min-height: 1lh; margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }.foot-news__meta { display: flex; gap: var(--space-lg); list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); color: var(--color-muted); }diff --git a/skills/hallmark/references/gates.md b/skills/hallmark/references/gates.mdindex 0430c5d..ae905cd 100644--- a/skills/hallmark/references/gates.md+++ b/skills/hallmark/references/gates.md@@ -150,7 +150,7 @@ One line each. `a`/`b` clauses share a number and carry their own tier. Genre no| 30b | Reflex | M | Two icon libraries on one page. Guard: the second is a brand or platform mark in at most two slots | one library || 33 | Floor | M | A decorative `<svg>`, `<canvas>` or CSS-art element with neither `aria-hidden="true"` nor a label | hide it or name it || 73 | Floor | R | Text painted under another element: an opaque box, an image or another run of text covers a line of it (sticky and fixed chrome excepted) | give the text its own space, or its own surface above the cover |-| 40 | Floor | M/R | Text, icon or focus ring under its contrast threshold against its computed background (body 4.5:1 or APCA Lc 60; large text, icons and rings 3:1 or Lc 45) | fix the pair |+| 40 | Floor | M/R | Text, icon, focus ring or a field's edge under its contrast threshold against its computed background (body 4.5:1 or APCA Lc 60; large text, icons, rings and field edges 3:1 or Lc 45) | fix the pair; a field takes `--color-muted` || 41 | Floor | M/R | Button text within 5% L and 0.05 chroma of its fill; `--color-accent-ink` missing where accent carries text; a dark panel that does not swap its text colour; grey text on a coloured surface | the paired ink token || 48 | Floor | M | A colour or `font-family` literal outside the token block | lift it into the tokens || 49a | Floor | M/R | A button label or primary nav link wrapping at any width 320 to 1920 | shorten it; `white-space: nowrap` |@@ -209,7 +209,7 @@ The gates above that a script cannot settle, with enough to judge them well.## 6. The reviews, in fresh context-The thread that built the page is its weakest reviewer. Two reviews run with no inherited transcript (a subagent in Claude Code): the **hero review** once at Step 6, before any section below the fold exists, and the **finish review** at Step 7. Do not read their briefs yourself: start the reviewer with *Read `<skill-dir>/references/review-hero.md` (or `review-finish.md`) and follow it*, then pass the inputs that file lists, as paths. Wait for it once.+The thread that built the page is its weakest reviewer. Two reviews run with no inherited transcript (a subagent in Claude Code): the **hero review** once at Step 6, before any section below the fold exists, and the **finish review** at Step 7. Do not read their briefs yourself: start the reviewer with *Read `<skill-dir>/references/review-hero.md` (or `review-finish.md`) and follow it* and pass these, as paths. The hero review: the four `hero-*` screenshots, the stamp's first two lines, the Picks block's Material and Signature rows, the theme's picture. The finish review: the render tier's screenshots, the page's HTML, the stamp's theme line or direction contract, the theme's picture, the hero review's findings with how each was settled, and `gates.md` § 4. Wait for it once.Act on its first word. Fix what is real, recapture the same shots (`--stage hero` for the hero), and score each finding yourself against its recapture: `resolved`, `partial` or `unresolved`, with a reason. Send the recaptures back for one scoring round only when the first word was `rebuild` or a finding named a Floor gate; scoring is not a second review. Record the outcome in the stamp, hero first: `hero-review: fix · 4 findings · 4 resolved`, then `finish-review: subagent · 5 findings · 4 resolved 1 unresolved · gap: none`. No subagents: re-read the artifact cold, run the same brief against yourself, and record `in-thread`.diff --git a/skills/hallmark/references/genres/atmospheric.md b/skills/hallmark/references/genres/atmospheric.mdindex 8a96f9b..ee8ba27 100644--- a/skills/hallmark/references/genres/atmospheric.md+++ b/skills/hallmark/references/genres/atmospheric.md@@ -1,6 +1,6 @@# Genre: atmospheric-The AI-creative and after-dark product page: generative music, video, image, voice, model playgrounds, anything the brief calls moody, cinematic or nocturnal. A canvas first, then a tool. The theme deal filters the catalog by this genre, and it holds the genre's light-paper exceptions too.+The AI-creative and after-dark product page: generative music, video, image, voice, model playgrounds, anything the brief calls moody, cinematic or nocturnal. A canvas first, then a tool. The deal leans toward this genre's themes, light-paper exceptions included.## Voicediff --git a/skills/hallmark/references/genres/editorial.md b/skills/hallmark/references/genres/editorial.mdindex 8c38ba8..1d062b8 100644--- a/skills/hallmark/references/genres/editorial.md+++ b/skills/hallmark/references/genres/editorial.md@@ -1,6 +1,6 @@# Genre: editorial (the default)-Content-led briefs: portfolios, manifestos, type specimens, agency sites, magazine pieces, podcasts, brand stories, considered consumer marketing. The silent default when no other genre signal fires. The theme deal filters the catalog by this genre; nothing here lists themes.+Content-led briefs: portfolios, manifestos, type specimens, agency sites, magazine pieces, podcasts, brand stories, considered consumer marketing. The silent default when no other genre signal fires. The deal leans toward this genre's themes; nothing here lists them.## Voicediff --git a/skills/hallmark/references/genres/modern-minimal.md b/skills/hallmark/references/genres/modern-minimal.mdindex 664b7c5..5ee1ada 100644--- a/skills/hallmark/references/genres/modern-minimal.md+++ b/skills/hallmark/references/genres/modern-minimal.md@@ -1,6 +1,6 @@# Genre: modern-minimal-The polished product page: SaaS, enterprise, API, platform, developer tool, infra, B2B, dashboards, billing. Minimalism with conviction, not the absence of choice. Also picked when the user names a brand colour and the rest of the brief is restrained. The theme deal filters the catalog by this genre.+The polished product page: SaaS, enterprise, API, platform, developer tool, infra, B2B, dashboards, billing. Minimalism with conviction, not the absence of choice. Also picked when the user names a brand colour and the rest of the brief is restrained. The deal leans toward this genre's themes.## Voicediff --git a/skills/hallmark/references/genres/playful.md b/skills/hallmark/references/genres/playful.mdindex 74bf702..5d35fd2 100644--- a/skills/hallmark/references/genres/playful.md+++ b/skills/hallmark/references/genres/playful.md@@ -1,6 +1,6 @@# Genre: playful-Consumer, casual, family, community and onboarding-led pages that should feel alive rather than tidy. Picked sparingly: most consumer briefs still belong to editorial unless the user asks for softer, friendlier or louder. The theme deal filters the catalog by this genre, which runs from soft and warm to loud and retro.+Pages that should feel alive rather than tidy: a brief that asks for playful, fun, friendly or soft, or one for kids, games or a community. A consumer or family brief without that ask stays editorial. The deal leans toward this genre's themes, which run from soft and warm to loud and retro.## Voicediff --git a/skills/hallmark/references/interaction-and-states.md b/skills/hallmark/references/interaction-and-states.mdindex 7fdf021..3dd5105 100644--- a/skills/hallmark/references/interaction-and-states.md+++ b/skills/hallmark/references/interaction-and-states.md@@ -46,13 +46,13 @@ Every text input, textarea, select and combobox.**The border never changes width.** State moves to `background-color`, `border-color`, `outline` or `box-shadow`, never `border-width`; a transparent outline is reserved at rest so the ring appears without a shift.```css-.input { border: 1px solid var(--color-rule); outline: 2px solid transparent; outline-offset: -3px; }+.input { border: 1px solid var(--color-muted); outline: 2px solid transparent; outline-offset: -3px; }.input:focus-visible { outline-color: var(--color-focus); }```| State | Treatment || --- | --- |-| Default | 1px rule border, paper background, placeholder in `--color-muted` |+| Default | 1px `--color-muted` border (a field's edge needs 3:1, which a rule never has), paper background, placeholder in `--color-muted` || Hover | `--color-paper-2` background, border unchanged || Focus | The ring; the border may deepen to `--color-ink-2` at the same width || Filled | As default; the value carries the state |diff --git a/skills/hallmark/references/macrostructures/14-narrative-workflow.md b/skills/hallmark/references/macrostructures/14-narrative-workflow.mdindex d92648e..c600f0b 100644--- a/skills/hallmark/references/macrostructures/14-narrative-workflow.md+++ b/skills/hallmark/references/macrostructures/14-narrative-workflow.md@@ -3,7 +3,7 @@Numbered stages tell the story of how the user uses the product over time. Each section is a phase; the page is a process timeline.- **Heading:** the stage number rides inside the heading (`<h2>1.0 Intake</h2>`) or is generated by `<ol>` with `counter()`. Never a separate label beside the heading: that is an eyebrow at stage scale (54).-- **Body:** each stage has a short explanation and one object: a small product capture when the user gave screens, otherwise a drawn object or a figure from the brief (a timer, a count, the thing the stage makes).+- **Body:** each stage has a short explanation and one object: a small product capture when the user gave screens, otherwise a drawn object or a figure from the brief (a timer, a count, the thing the stage makes). Three stages holding the same kind of object read as three features (8): vary the object from stage to stage.- **Divider:** a rule between stages, in the theme's rule weight; the number stays in the heading, never on the rule.- **Button:** the hero's one action (44b), returning once at the foot ("Start at stage one"); links inside stages.- **Image:** a small real capture per stage, often annotated, in a `<figure>` or a slot; with one screen or none, never a slot per stage (68).diff --git a/skills/hallmark/references/patterns.md b/skills/hallmark/references/patterns.mdindex 6af27da..3abfa1f 100644--- a/skills/hallmark/references/patterns.md+++ b/skills/hallmark/references/patterns.md@@ -5,7 +5,7 @@ How the parts every page repeats are written, in the shape that passes the gates## Controls, all eight states```css-.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }+.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-input, var(--radius-pill)); background: var(--color-ink); color: var(--color-paper); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }.btn:hover { background: var(--color-ink-2); }.btn:active { transform: translateY(1px); }.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }@@ -80,7 +80,7 @@ document.querySelectorAll('form[data-endpoint]').forEach((form) => {```css.signup__row { display: flex; gap: var(--space-xs); }-.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }+.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input, var(--radius-pill)); background: var(--color-paper); color: var(--color-ink); outline: 2px solid transparent; outline-offset: -3px; }.signup input:focus-visible { outline-color: var(--color-focus); }.signup input[aria-invalid] { border-color: var(--color-error); }.signup__help { min-height: 1lh; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }diff --git a/skills/hallmark/references/themes/README.md b/skills/hallmark/references/themes/README.mdindex ef7bdbc..27b9505 100644--- a/skills/hallmark/references/themes/README.md+++ b/skills/hallmark/references/themes/README.md@@ -44,7 +44,7 @@ Every theme ships `<slug>.jpg` beside its file: the first screen and one lower s5. **Motion:** one to three lines: how fast, how it eases, what may move.6. **Voice:** one or two lines on the copy's register.7. **Do-nots:** three to five bullets specific to this theme's own failure modes, never restatements of a gate.-8. **Build hint:** at most 25 lines of CSS carrying only the rules that make the theme recognisable (the display setting, the control pair, the signature object). Font links as one line.+8. **Build hint:** at most 25 lines of CSS carrying only the rules that make the theme recognisable (the display setting, the control pair, the signature object), every colour, duration, easing and space a token (validate refuses raw milliseconds, a bare `ease`, named colours and raw spacing). Font links as one line.## What a theme may not carrydiff --git a/skills/hallmark/scripts/sloplint-render.mjs b/skills/hallmark/scripts/sloplint-render.mjsindex 3aca33f..1f06166 100644--- a/skills/hallmark/scripts/sloplint-render.mjs+++ b/skills/hallmark/scripts/sloplint-render.mjs@@ -696,6 +696,28 @@ function observeQuality() {const offSize = controls.map((el) => ({ el, h: el.getBoundingClientRect().height })).filter((c) => c.h > 8 && (c.h < 42 || c.h > 54));if (offSize.length) push('39b', 'REFLEX', `control height outside 44 to 52px: ${offSize.slice(0, 3).map((c) => `${name(c.el)} ${Math.round(c.h)}px`).join(', ')}`, 'Marketing controls stand 44 to 52px; app UI 32 to 40px with a 44px hit target');+ const cv = document.createElement('canvas'); cv.width = cv.height = 1;+ const cx = cv.getContext('2d', { willReadFrequently: true });+ const rgb = (s) => { cx.clearRect(0, 0, 1, 1); cx.fillStyle = 'rgba(0, 0, 0, 0)'; cx.fillStyle = s; cx.fillRect(0, 0, 1, 1); const d = cx.getImageData(0, 0, 1, 1).data; return [d[0] / 255, d[1] / 255, d[2] / 255, d[3] / 255]; };+ const lin = (c) => (c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4);+ const lum = (c) => 0.2126 * lin(c[0]) + 0.7152 * lin(c[1]) + 0.0722 * lin(c[2]);+ const ratio = (a, b) => (Math.max(lum(a), lum(b)) + 0.05) / (Math.min(lum(a), lum(b)) + 0.05);+ const over = (c, b) => [0, 1, 2].map((i) => c[i] * c[3] + b[i] * (1 - c[3]));+ const bgOf = (n) => { for (; n && n !== document.documentElement; n = n.parentElement) { const c = rgb(getComputedStyle(n).backgroundColor); if (c[3] >= 0.9) return c; } const b = rgb(getComputedStyle(document.body).backgroundColor); return b[3] > 0 ? b : [1, 1, 1, 1]; };+ const weak = [];+ for (const f of all.filter((el) => /^(TEXTAREA|SELECT)$/.test(el.tagName) || (el.tagName === 'INPUT' && /^(text|email|search|tel|url|password|number|date|time)$/.test(el.type)))) {+ const fh = f.getBoundingClientRect().height;+ const around = bgOf(f.parentElement);+ let best = ratio(over(rgb(getComputedStyle(f).backgroundColor), around), around);+ for (let n = f, d = 0; n && d < 3 && n.getBoundingClientRect().height <= fh + 48; n = n.parentElement, d++) {+ const cs = getComputedStyle(n); const back = d ? bgOf(n.parentElement) : around;+ for (const s of ['Top', 'Right', 'Bottom', 'Left']) if (parseFloat(cs[`border${s}Width`]) >= 1 && cs[`border${s}Style`] !== 'none') best = Math.max(best, ratio(over(rgb(cs[`border${s}Color`]), back), back));+ for (const m of (cs.boxShadow || '').matchAll(/((?:rgba?|oklch|oklab|color)\([^)]*\)|#[0-9a-f]{3,8})\s+(-?[\d.]+)px\s+(-?[\d.]+)px\s+([\d.]+)px\s+(-?[\d.]+)px/gi)) if (+m[4] === 0 && (+m[5] >= 1 || Math.abs(+m[3]) >= 1)) best = Math.max(best, ratio(over(rgb(m[1]), back), back));+ }+ if (best < 2.95) weak.push(`${name(f)} ${best.toFixed(2)}:1`);+ }+ if (weak.length) push(40, 'FAIL', `a field's edge is under 3:1 against what surrounds it: ${weak.slice(0, 3).join(', ')}`, 'Draw the field in --color-muted, or fill it a step off the surface it sits on');+const weights = new Map();const tw = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);for (let t = tw.nextNode(); t; t = tw.nextNode()) {diff --git a/skills/hallmark/scripts/sloplint.mjs b/skills/hallmark/scripts/sloplint.mjsindex ed9512f..936fb5a 100644--- a/skills/hallmark/scripts/sloplint.mjs+++ b/skills/hallmark/scripts/sloplint.mjs@@ -1546,6 +1546,16 @@ function check24a(ctx) {for (const [file, n] of counts) if (n > 8) report('24a', 'FAIL', file, 1, `+${n - 8} more raw spacing lengths with a matching --space-* token in this file`, 'Use the tokens');}+function shortProse(ctx, sel) {+ const cls = [...sel.matchAll(/\.([\w-]+)/g)].map((m) => m[1]).pop();+ if (!cls) return false;+ const texts = [];+ for (const doc of ctx.docs) for (const m of doc.src.matchAll(new RegExp(`<(\\w+)[^>]*class="[^"]*\\b${cls}\\b[^"]*"[^>]*>([\\s\\S]*?)</\\1>`, 'g'))) {+ for (const p of (/^p$/i.test(m[1]) ? [m[2]] : m[2].match(/<p\b[^>]*>[\s\S]*?<\/p>/g) || [])) texts.push(p.replace(/<[^>]+>/g, ' ').replace(/\s+/g, ' ').trim());+ }+ return texts.length > 0 && texts.every((t) => t.length <= 200 && (t.match(/[.!?](?:\s|$)/g) || []).length <= 2);+}+function check25(ctx) {const proseish = /(^|[\s,>+~(])p\b|lede|prose|copy|__body|__text|__desc|paragraph/i;for (const r of ctx.rules) {@@ -1555,7 +1565,7 @@ function check25(ctx) {const m = /^([\d.]+)ch$/.exec(resolveVars(d.value, ctx.tokens).trim());if (m) {const ch = parseFloat(m[1]);- const floor = /lede|hero|caption|figcaption|__line|__sub|subhead|tagline/i.test(r.selector) ? 28 : 45;+ const floor = /lede|hero|caption|figcaption|__line|__sub|subhead|tagline/i.test(r.selector) || shortProse(ctx, r.selector) ? 28 : 45;if (ch < floor || ch > 75) {report(25, 'WARN', r.file, d.line, `measure ${ch}ch on ${r.selector} (${floor}-75ch range)`, 'Set prose measure between 45 and 75ch; a one-sentence lede or caption from 28ch');}diff --git a/skills/hallmark/scripts/theme.mjs b/skills/hallmark/scripts/theme.mjsindex e9bf04f..5b948f7 100644--- a/skills/hallmark/scripts/theme.mjs+++ b/skills/hallmark/scripts/theme.mjs@@ -148,9 +148,11 @@ function deal() {const seedKey = `${seedBase}·r${reroll}`;const rand = seededRand(seedBase);+ const df = new Map();+ for (const t of themes) for (const k of new Set(t.keywords.map((k) => k.toLowerCase()))) df.set(k, (df.get(k) || 0) + 1);const scored = themes.map((t) => {let fit = 0; const hits = [];- for (const k of t.keywords) { const kw = k.toLowerCase().split(/\s+/).map(stem); if (kw.every((w) => bw.has(w))) { fit += 3; hits.push(k); } }+ for (const k of t.keywords) { const kw = k.toLowerCase().split(/\s+/).map(stem); if (kw.every((w) => bw.has(w))) { const d = df.get(k.toLowerCase()); fit += d <= 2 ? 3 : d <= 4 ? 2 : 1; hits.push(k); } }if (t.genre === genre) fit += 2; else fit -= 1;const blocked = recentNames.has(t.name.toLowerCase()) || (lastAxes && lastAxes === triple(t));const sibling = occupiedAxes.has(triple(t));