Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

What the first showcase builds found in the skill

Youssef7d46f379bc11
diff --git a/skills/hallmark/SKILL.md b/skills/hallmark/SKILL.md
index 6ed6dea..b2dcf1d 100644
--- a/skills/hallmark/SKILL.md
+++ b/skills/hallmark/SKILL.md
@@ -22,7 +22,7 @@ Binds on every output, in every harness, on every model. None of it is waivable.
6. Every interactive element has `:focus-visible`, appearing instantly. (26a, 15)
7. Every animation has a `prefers-reduced-motion: reduce` fallback, and content is visible with scripting off. (27, 62)
8. Never an invented metric, testimonial, logo wall or case-study count. (46a)
-9. Never an eyebrow, and never a label in tracked capitals or small caps: labels, captions, table heads, tags and nav links are the body face, a step smaller, sentence case, untracked. (54, 67)
+9. Never an eyebrow, and never a label in tracked capitals or small caps: labels, captions, table heads, tags and nav links are the body face (or the label face the theme names), a step smaller, sentence case, untracked. (54, 67)
10. Never middle-dot-joined meta strings, arrows glued to link text, or decorative status dots. (63)
11. Never a purple-to-blue gradient, a card inside a card, an emoji as an icon, or a hand-drawn browser or OS window. (2a, 4, 30a, 47a)
12. The hero's headline, one sentence and primary action are all visible at 1280 x 800 without scrolling. (44b)
@@ -50,7 +50,7 @@ Codex CLI and OpenCode read [`references/flow.md`](references/flow.md) § Harnes
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 inverts the variety rule, 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).
-Output one block with file:line citations, what Hallmark preserves and what it introduces, and cache it in `.hallmark/preflight.json` (re-scan on "refresh pre-flight" or a newer `package.json`; never cache signal 8). Edge cases, one line each, are in [`references/flow.md`](references/flow.md) § Pre-flight.
+Output one block with file:line citations, what Hallmark preserves and what it introduces, and cache it in `.hallmark/preflight.json`. Caching and edge cases, one line each, are in [`references/flow.md`](references/flow.md) § Pre-flight.
### 1. Ask once
@@ -60,7 +60,7 @@ One message, even on a five-word brief:
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.
-**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**. Two non-default signals: ask one either-or.
+**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**. Two non-default signals: a named theme's genre settles it, else ask one either-or.
**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 the
Decide 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. The catalogs exist for when you want a starting point: 21 page shapes in [`references/macrostructures.md`](references/macrostructures.md), navs, footers and section archetypes in [`references/component-cookbook.md`](references/component-cookbook.md), enrichment in [`references/hero-enrichment.md`](references/hero-enrichment.md). Take a named shape and load only that one file; never read 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, enrichment and 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, 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.
-**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, and the reviewer checks it is on the page. 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; 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.
@@ -90,15 +90,15 @@ node <skill-dir>/scripts/theme.mjs deal --genre <genre> --brief "<the brief>" [-
The script reads the catalog index and the log, applies Rotation (two consecutive systems differ on paper band, display class or accent band; siblings in the log count as occupied) and deals three candidates that fit the brief's words, one line each, with a reproducible seed. Look at the three pictures, pick one, say which and why in one clause, and load only `references/themes/<slug>.md`. Re-deal only when the user asks (`--reroll 1`). No Node: read `references/themes/index.json`, apply the same rule by hand, and stamp `deal: manual`.
-A catalog theme is a material, not a plan: it says what the page is made of, never what the page contains or in what order. Two pages in one theme should not share a section sequence.
+A catalog theme is a material, not a plan: it says what the page is made of, never what the page contains or in what order. Two pages in one theme should not share a section sequence. Where the theme and a shape, genre, craft or enrichment file disagree on material, controls or motion, the theme wins; nothing beats the Floor.
### 4. Load
-Exactly these, for a page build: [`references/craft.md`](references/craft.md) (type, colour, layout, motion, copy, section openings, demo slots, the hero, finish) · `references/genres/<genre>.md` · `references/themes/<slug>.md` and its picture `<slug>.jpg`, a first screen and a lower screen of one page in the theme: take its scale, density, colour balance and objects, never its composition (or `direction.md` on a custom run) · [`references/gates.md`](references/gates.md) § 1 to § 4.
+Exactly these, for a page build: [`references/craft.md`](references/craft.md) (type, colour, layout, motion, copy, section openings, demo slots, the hero, finish) · `references/genres/<genre>.md` · `references/themes/<slug>.md` and its picture `<slug>.jpg`, a first screen and a lower screen of one page in the theme: take its scale, density, colour balance and objects, never its section order or layout (or `direction.md` on a custom run) · [`references/gates.md`](references/gates.md) § 1 to § 4.
-Only when the build needs them, each in `references/`: one macrostructure file and the picked archetype files (Step 2) · `hero-enrichment.md` then one `enrichment/` file, when the image-need check says yes · `microinteractions.md` for stateful UI · `interaction-and-states.md` for forms · `responsive.md` for an unusual layout · `texture.md` when the theme earns texture · `scroll-choreography.md` for a scroll story · `dark-mode.md` when both modes are asked for · `data-viz.md` for charts · `fonts.md` on custom or studied runs · `assets.md` and `imagery-kit.md` when an enrichment needs an external asset · `comp.md` on signal 9 · `design-md.md` when asked to lock the system.
+Only when the build needs them, each in `references/`: one macrostructure file and the picked archetype files (Step 2) · `hero-enrichment.md` when the hero wants imagery (its image-need check names the one `enrichment/` file) · `microinteractions.md` for stateful UI · `interaction-and-states.md` for forms · `responsive.md` for an unusual layout · `texture.md` when the theme earns texture · `scroll-choreography.md` for a scroll story · `dark-mode.md` when both modes are asked for · `data-viz.md` for charts · `fonts.md` on custom or studied runs · `assets.md` and `imagery-kit.md` when an enrichment needs an external asset · `comp.md` on signal 9 · `design-md.md` when asked to lock the system.
-Loading more is the largest avoidable cost; `gates.md` § 5 and § 6 wait for Step 7.
+Loading more is the largest avoidable cost; `gates.md` § 5 waits for Step 7, § 6 for the reviews.
### 5. The Picks block
@@ -125,17 +125,17 @@ On signal 9, [`references/comp.md`](references/comp.md) runs here: two comps of
Emit code that satisfies the theme and the shape. Always:
-- **Start from the scaffold.** `node <skill-dir>/scripts/theme.mjs scaffold <slug>` (`--custom` on a derived run) writes `tokens.css` with the theme's tokens and the shared scale, and prints the base rules the Floor already decided (clipping, focus, reduced motion, browser surfaces, the slot contract) under a stamp skeleton. Paste them, fill the stamp, and write only the page.
-- **Read the exemplar** for the genre, `references/exemplars/<genre>.html`, once: a finished page in another theme that passes every gate. Take how its stamp, tokens, slots, states and openings are written; never its shape, theme or copy.
+- **Start from the scaffold.** `node <skill-dir>/scripts/theme.mjs scaffold <slug>` (`--custom` on a derived run) writes `tokens.css` with the theme's tokens and the shared scale, and prints the base rules the Floor already decided under a stamp skeleton. Paste them, fill the stamp, and write only the page.
+- **Read the exemplar** for the genre, `references/exemplars/<genre>.html`, once: a finished page in another theme that passes every gate. Take how its stamp, tokens, slots, states and openings are written; never its shape, theme or copy. Skip it when it is in your theme.
- **Hero first.** Write the nav and the hero, run `node <skill-dir>/scripts/sloplint.mjs <file> --render --stage hero` (the fold at three widths, the hero's words, the visual's place, four first-screen shots), 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). Five to eight sections, footer included; 450 visible words at most, fewer when the brief has less to say. Never pad to a count.
+- **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 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, never 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.
+- **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 hero shares it with the first section.
- **Room.** 120px or more between sections at desktop, varied; 32 to 48px from a heading to its content; 24 to 40px between grid items. More space above a heading than below it.
-- **Page invariants.** One primary button style, one container width, one column gap for every multi-column section, 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, 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, captions, table heads and nav links in the body face, sentence case, untracked, never capitals (67), 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; one orchestrated reveal per page, 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. The cheapest sign a page was built rather than assembled.
+- **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, 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).
+- **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:
```css
@@ -162,11 +162,11 @@ then any `waive` and `answered` lines, then a custom run's direction contract. E
1. `node <skill-dir>/scripts/sloplint.mjs <files> --genre <genre> --render` (add `--scope component` on a component; in a framework project with a dev server running, add `--url http://localhost:<port>/<route>`). Fix every FAIL, re-run until clean. The render tier writes the screenshots you need next; do not run Chrome by hand.
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. Review in fresh context per `gates.md` § 6: a subagent with the artifact, the screenshots, the stamp's theme or contract, and the gate table. Act on its first word (`recapture`, `rebuild`, `fix`, `ship`). Two rounds is the ceiling.
+3. Review in fresh context per `gates.md` § 6, which lists its inputs. Act on its first word (`recapture`, `rebuild`, `fix`, `ship`). Two rounds is the ceiling.
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 ("two screenshots of the import screen would replace both demo placeholders").
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.
-Verification is budgeted: one batched inspection, one fix batch, at most one confirming round, then stop polishing. Endless single-issue re-render loops are their own failure mode.
+Verification is budgeted: one batched inspection, one fix batch, at most one confirming round, then stop polishing.
## Branches
diff --git a/skills/hallmark/references/craft.md b/skills/hallmark/references/craft.md
index 1030297..12ce1bb 100644
--- a/skills/hallmark/references/craft.md
+++ b/skills/hallmark/references/craft.md
@@ -8,7 +8,7 @@ Type carries the page. Two families: a display face and a body face. A third is
- **Extremes read as chosen.** Weight 300 beside 800, or 400 beside 700. A 500 or 600 display works only when the display face differs from the body face.
- **A ratio, not increments.** 1.25 by default (1.333 or 1.5 for more drama), built from a 16px body. At most five sizes on a page; hierarchy past that comes from weight and colour.
-- **Display:** tracking -0.02 to -0.04em on a regular-width face, 0 to -0.015em on a condensed or very heavy one (they are drawn tight already; two letters touching is a fault, not a style), line-height 1.0 to 1.15 (tighter as it grows; 1.2 reads as inherited). Uppercase heads that can wrap never go under 1.0 (55). A head is one weight, one style and one colour throughout; one word set apart by italic, colour, weight or a highlight is the accented word, the field's most-named tell after the eyebrow (38). Stress comes from a line break or a second line at a second size. Default display size `clamp(2.75rem, 5vw + 1rem, 5.25rem)`; cap 5.5rem, 6rem on display-heavy themes, 7rem only for a single word; a poster-scale theme or shape (Manifesto, Broadside, Marquee Hero) may run to 9rem when the fold still holds the headline, one sentence and the action.
+- **Display:** tracking -0.02 to -0.04em on a regular-width face, 0 to -0.015em on a condensed or very heavy one (they are drawn tight already; two letters touching is a fault, not a style), line-height 1.0 to 1.15 (tighter as it grows; 1.2 reads as inherited; a mixed-case poster head may close to 0.92). Uppercase heads that can wrap never go under 1.0 (55). A head is one weight, one style and one colour throughout; one word set apart by italic, colour, weight or a highlight is the accented word, the field's most-named tell after the eyebrow (38). Stress comes from a line break or a second line at a second size. Default display size `clamp(2.75rem, 5vw + 1rem, 5.25rem)`; cap 5.5rem, 6rem on display-heavy themes, 7rem only for a single word; a poster-scale theme or shape (Manifesto, Broadside, Marquee Hero, a Poster hero) sizes with the screen, `clamp(4rem, 9vw, 12rem)`, so the poster fills 1920 as it fills 1440, while the fold still holds the headline, one sentence and the action.
- **Body:** 16px minimum (14px never for body), line-height 1.5 to 1.65, measure 45 to 75ch (`max-width: 65ch`) (25). Never all-caps body, never justified without hyphenation, never tracking above 0.05em on body.
- **Labels, captions, table heads, meta, tags, chips, nav links:** the body face, a step smaller, sentence case, untracked (67). Never uppercase, never small caps, never letter-spaced. Mono only when the content is code, a figure or a measurement, or when mono is the theme's material (64). Capitals belong to a wordmark and to a theme whose display voice is uppercase; there a control may follow the display's case at 0.04em of tracking or less.
- **Headline sizing by copy length.** Count the rendered `h1`: 20 characters or fewer, full display (a single word may grow to 7rem); 21 to 50, display; 51 to 90, one step down (`--text-display-s`) or split at the sense break with `<br>`; over 90, rewrite. Self-written headlines aim for seven words and 50 characters.
@@ -36,15 +36,15 @@ Font sourcing for a custom or studied run is in `fonts.md`; a catalog theme has
- **Spacing is a scale.** 4pt base, ten steps, named by role: `--space-3xs` 2px · `2xs` 4 · `xs` 8 · `sm` 12 · `md` 16 · `lg` 24 · `xl` 40 · `2xl` 64 · `3xl` 96 · `4xl` 144. Raw lengths where a token exists are a Floor failure (24a); at most three optical nudges off the scale (24b). `gap` for siblings, `margin` only to break the flow.
- **Between sections, 120px or more at desktop, varied** (59): some 120, some 160, some 200; a change of paper may sit tighter. Inside a section, 32 to 48px from heading to content, 24 to 40px between grid items. More space above a heading than below it, always. Five to eight sections a page, usually 3,000 to 6,000px tall at 1440; a thin brief makes a shorter page, never a padded one.
- **The container is capped and centred:** `max-width` 1360 to 1520px, gutters 64 to 96px at 1440 and 200px or more at 1920 (44d). Grids hold their column count above 1440; `auto-fit` that grows a fourth column changes the composition. Visuals sized in `vw` carry a `max-width`.
-- **Page invariants** (F15). Across the whole page: one primary button style and one secondary style; one container width and one horizontal padding, applied by the same two-element pattern in every section (outer element: background and vertical padding; inner: max-width, centring, gutters) so edges line up while scrolling; one column gap for every multi-column section; one radius per nesting level; the same font treatment whenever the same kind of thing appears. Never a centred layout directly under a left-aligned one unless a full-width band, a paper change or a rule separates them. Never more centred heading groups than left-aligned ones; centre only heroes, CTAs and sections with symmetric content beneath.
+- **Page invariants** (F15). Across the whole page: one primary button style and one secondary style; one container width and one horizontal padding, applied by the same two-element pattern in every section (outer element: background and vertical padding; inner: max-width, centring, gutters) so edges line up while scrolling; one column gap for every multi-column section below the hero (the hero's gap is 44c's); one radius per nesting level; the same font treatment whenever the same kind of thing appears. Never a centred layout directly under a left-aligned one unless a full-width band, a paper change or a rule separates them. Never more centred heading groups than left-aligned ones; centre only heroes, CTAs and sections with symmetric content beneath.
- **Heading groups.** A headline and at most one line beneath. Constrain each text element with its own `max-width` in `ch`, never the wrapper. A grid or list that fills its section takes the section's edges: never a narrower `max-width` with auto margins on it; a nested width belongs only to a self-contained unit (a form, a pricing set, a centred figure). A subhead over 120 characters (about three centred lines) is set left-aligned; if the user asked for centred and the copy is that long, offer a shorter line first.
- **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`.
- **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.
-- **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 (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 (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.
- **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. Seven 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, 12px)`.
+- **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))`.
- **Icons.** One library per project; sizes 16, 20, 24, 32 at the set's natural grid (a 24 viewBox at 24px, never scaled to 19); `currentColor`; beside multi-line text align to the first line; never inside a coloured coin or tile (3, F5); inline with small text use the 16px size. Buttons and badges with an icon take asymmetric padding: the icon side's padding equals the vertical padding.
- **When flat, before shipping:** add one break-out element, unbalance a column, move the primary CTA off centre, replace a card with air, or make one section's padding uneven.
@@ -57,7 +57,7 @@ The highest-stakes surface on the page. Pick a posture at Step 2, stamp it, and
| **Settled** (default) | balanced fold, sits into the page | 70 to 90% of the viewport | block-end 1.3 times block-start | any hero archetype |
| **Banner** | compressed opener, the page starts fast | 40 to 55dvh, cap `min(52dvh, 34rem)` | 1.3 times, edge-led | reference, docs, utility |
| **Poster** | full-bleed canvas, the fold is the artwork | 92 to 100dvh (the only legal 100dvh) | waived when content is corner-anchored | atmospheric, playful, Manifesto |
-| **Ledge** | tall void above, content rests at the base | 70 to 88dvh | block-start 2 times block-end, `align-content: end` | sport, brutal, photographic |
+| **Ledge** | tall void above, content rests at the base | 70 to 88dvh | block-start 2 times block-end, `align-content: end`; at 1920 x 1080 the head grows to its cap before the void passes 45% of the screen | sport, brutal, photographic |
| **Corridor** | tall centred reading column, 44ch or less | 66 to 85dvh | 1.3 times | editorial, atelier |
| **Stage** | text column beside a full-height visual that may bleed | 70 to 92dvh | 1.3 times on the text column | modern-minimal, playful product |
@@ -80,8 +80,8 @@ Every posture, every hero:
- **Three durations:** `--dur-micro` 120ms (press, tick, colour), `--dur-short` 220ms (hover, tooltip, menu), `--dur-long` 420ms (modal, drawer, accordion, page reveal). Exits run 60 to 75% of the enter. Stagger 30 to 50ms between rows, 60 to 100ms between blocks, 500ms total, one-shot, never re-fired on scroll.
- **One reveal per page**, staggered by a `--i` custom property, capped at 500ms, and the content is visible without it (62): scope the hidden state to a `.js` class the script adds, or animate from visible with `@starting-style`. Reduced motion collapses spatial motion to a 150ms opacity crossfade and keeps functional loaders running.
- **Scroll:** IntersectionObserver for reveals and for any state that flips at a threshold; a passive scroll listener, throttled to one read per frame, only where direction matters (a bar that hides on the way down); reveal once; scroll-scrubbed motion exists only as the named patterns in `scroll-choreography.md`, one per page (F8).
-- **State:** hover `translateY(-1px)` at micro, active back to 0; menus `--ease-out` open and `--ease-in` close with the Popover API; modals scale 0.96 to 1 with a backdrop fade over `--dur-long` using `<dialog>` and `inert`; accordions animate `grid-template-rows: 0fr` to `1fr`; tooltips delay 800 to 1000ms on hover and 0ms on focus (17); focus rings never animate (15).
-- **Never:** parallax, custom cursors, cursor followers, infinite loops other than loaders, a paused-on-hover marquee, and one ambient loop a theme declares as its material (8s or slower, stopped under reduced motion and while off-screen), `will-change` on a whole class, an image that scales or rotates on hover (11), a pulsing dot that is not live data.
+- **State:** hover is one signal (11): a colour change, or a `translateY(-1px)` lift at micro on a control that keeps its colour, active back to 0; menus `--ease-out` open and `--ease-in` close with the Popover API; modals scale 0.96 to 1 with a backdrop fade over `--dur-long` using `<dialog>` and `inert`; accordions animate `grid-template-rows: 0fr` to `1fr`; tooltips delay 800 to 1000ms on hover and 0ms on focus (17); focus rings never animate (15).
+- **Never:** parallax, custom cursors, cursor followers, a paused-on-hover marquee, `will-change` on a whole class, an image that scales or rotates on hover (11), a pulsing dot that is not live data, and infinite loops, except a loader, one E6 loop (4s or less a cycle) and one ambient loop the theme declares as its material (8s or slower); every loop stops under reduced motion and while off-screen.
Full recipes (buttons, inputs, validation, toasts, modals, menus, drag, command palette, optimistic updates) are in `microinteractions.md`; load it when the page has stateful UI.
@@ -137,11 +137,11 @@ Four recipes, one per material family:
- **Paper** (editorial, print): `linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3))` with a `repeating-linear-gradient` of 1px rules at 4% ink every 32px; a 1px `--color-rule` border; label bottom-left in the caption style.
- **Screen** (modern-minimal, product): a 16:10 panel over `--color-paper-2` (on a Restrained theme whose accent is a signal only, `--color-paper-3`; elsewhere `radial-gradient(at 20% 0%, <accent at 18% chroma-cut>, transparent 60%)` over it), holding the product's own structure in three to five shapes drawn from what the brief says it does (event rows for a webhook tool, dose rows and a tick for a care app, a waveform for audio), the label in one corner; never an empty head row over an empty card outline, and never a top bar with pills or dots, which reads as a browser (47a).
- **Dark** (atmospheric, night): `linear-gradient(170deg, var(--color-paper-2), var(--color-paper-3))`, a 1px inset ring of ink at 8% alpha; label bottom-right in `--color-muted`. Only a theme whose genre allows blooms adds one radial in the accent at 20% alpha from a corner; a theme that bans radial light keeps the flat step.
-- **Print object** (playful, riso, sticker): the accent field with a 2px ink border, a second colour block offset 8px behind it (zero blur), a dashed kiss-cut line inset 6px; label as a small rotated tag in the corner.
+- **Print object** (playful, sticker): the accent field with a 2px ink border, a second colour block offset 8px behind it (zero blur, dropped where the theme forbids hard offsets), a dashed kiss-cut line inset 6px; label as a small rotated tag in the corner.
-**Text slots.** A missing fact (a venue, a date, an act, a price) is a text slot, never an invented value: `<span class="fill" data-fill="venue">Venue to be announced</span>`, set in the body face with a dashed underline in `--color-muted`, at most three on a page, each listed in the handoff with what belongs there. Text slots do not count toward 68.
+**Text slots.** A missing fact (a venue, a date, an act, a price) is a text slot, never an invented value: `<span class="fill" data-fill="venue">Venue to be announced</span>`, set in the body face in `--color-muted` on a faint tint of it (`background: color-mix(in oklch, var(--color-muted) 14%, transparent)`, 2px radius, no underline) so it reads as a blank to fill, never as a link, at most three on a page, each listed in the handoff with what belongs there. Text slots do not count toward 68.
-Where slots go: the hero visual on any product page, beside the text; a demo strip of two or three slots with one label of three words or fewer each (this replaces the three-card feature grid); photo slots on business pages. Two to four slots carry a product page; more only when the user has handed over the images. A set of things the page does not have pictures of (a team, a range, a list of venues) is set in type, names and facts in a list or a table, with one slot at most: four empty frames in a row is a wireframe, not a page (68). Inside a slot, sketch the product's own structure from what the brief says it does (rows for a ledger, a waveform for audio, a list for an inbox) in three to five shapes, so the placeholder reads as this product waiting for its screenshot, never as a grey box. Ask for the material once at Step 1; given images go straight in and are named in the Picks block; "leave slots" or silence builds the placeholders and the handoff lists every slot, its size and what belongs there.
+Where slots go: the hero visual on any product page, beside the text; a demo strip of two or three slots with one label of three words or fewer each (this replaces the three-card feature grid); photo slots on business pages. Two to four slots carry a product page; more only when the user has handed over the images. A set of things the page does not have pictures of (a team, a range, a list of venues) is set in type, names and facts in a list or a table, with one slot at most: four empty frames in a row is a wireframe, not a page (68). Inside a slot, sketch the product's own structure from what the brief says it does (rows for a ledger, a waveform for audio, a list for an inbox) in three to five shapes, so the placeholder reads as this product waiting for its screenshot, never as a grey box. Ask for the material once at Step 1; given images go straight in and are named in the Picks block; "leave slots" builds the placeholders and the handoff lists every slot, its size and what belongs there; silence builds from what is real (SKILL.md Step 2), with a slot only where a picture is the point.
## 9. Finish
@@ -155,7 +155,7 @@ The last 2% that separates set from generated. sloplint's F-checks report most o
- **Tables.** Sentence-case heads that never wrap, horizontal rules only, no outer border, no card around a table, full width, a scrolling wrapper on narrow screens.
- **Responsive finish.** Body-adjacent UI (meta, nav links, controls, checkboxes) renders larger on mobile and steps down at 60rem; display heads are exempt; body never drops below 16px on a phone. Every desktop sidebar or filter column collapses into a menu or disclosure. Container queries for widgets whose layout depends on their box, placed on the closest wrapper.
- **Browser surfaces** (F16). `::selection` in the accent at low alpha with ink text, `caret-color` the accent, `scrollbar-color` from the neutrals, the focus ring from `--color-focus`, `text-underline-offset` and `text-decoration-thickness` set, numerals tabular where they compare. The parts you did not draw still carry the design.
-- **Nav.** Text-only links in the top bar, one weight across default, hover and active (state is a colour or a soft background, never a primary fill); a tab row scrolls sideways rather than wrapping; every page has a menu under 60rem; the logo is a link home with an `aria-label`.
+- **Nav.** Text-only links in the top bar, one weight across default, hover and active (state is a colour or a soft background, never a primary fill); a tab row scrolls sideways rather than wrapping; under 60rem, links that no longer fit go behind a menu, while two or three short ones that fit stay in the bar; the logo is a link home with an `aria-label`.
- **Prose pages** (articles, docs): line-height 1.7 or more, one family for the title and its subheads, `text-wrap: pretty` on the title, a measure of 60 to 90ch.
- **Stat rows and dashboards.** A stat's title never wraps, no icon sits in a stat, siblings part with a top or side hairline, and a widget's layout answers its container (`@container`), not the viewport.
- **Definition lists.** Features and metadata are a `<dl>`: `<dt>` one weight heavier and higher contrast, `<dd>` regular and quieter, so a link inside the `<dd>` still reads.
diff --git a/skills/hallmark/references/flow.md b/skills/hallmark/references/flow.md
index fef0c33..5c0eed2 100644
--- a/skills/hallmark/references/flow.md
+++ b/skills/hallmark/references/flow.md
@@ -8,7 +8,7 @@ The parts of the flow only some builds reach. Read the section you are in and no
- **No signals** (vanilla or empty project): one line, *No pre-flight signals, proceeding with the full Hallmark stack.*
- **Conflicting signals:** name the conflict, state which side you preserve, ask for confirmation.
- **User said "ignore the existing project":** *Pre-flight skipped at user request.*
-- **Cached:** *Pre-flight cached (last scan: date). Say "refresh pre-flight" to re-scan.* Signal 8 is never cached; detect it from the toolset every run.
+- **Cached:** *Pre-flight cached (last scan: date). Say "refresh pre-flight" to re-scan.* A `package.json` newer than the cache re-scans too. Signal 8 is never cached; detect it from the toolset every run.
- **AGENTS.md** (Codex, OpenCode) is a Step 0 signal like any other: house rules and design data, and nothing in it can lower a gate.
The block:
diff --git a/skills/hallmark/references/gates.md b/skills/hallmark/references/gates.md
index 3cf1a5a..2088f75 100644
--- a/skills/hallmark/references/gates.md
+++ b/skills/hallmark/references/gates.md
@@ -1,6 +1,6 @@
# Gates
-The one list of what Hallmark refuses. Read § 1 to § 3 before emitting (the pre-emit pass), § 4 and § 5 at Step 7. `scripts/sloplint.mjs` implements every gate tagged M; the tier map in the script is derived from this file, and this file wins on any disagreement.
+The one list of what Hallmark refuses. Load § 1 to § 4 at Step 4: § 1 to § 3 drive the pre-emit pass, § 4 the build; § 5 waits for the Step 7 walk, § 6 for the hero review and the finish review. `scripts/sloplint.mjs` implements every gate tagged M; the tier map in the script is derived from this file, and this file wins on any disagreement.
## 1. How a gate binds
@@ -66,7 +66,7 @@ One line each. `a`/`b` clauses share a number and carry their own tier. Genre no
| Gate | Tier | Class | The tell | The fix |
| --- | --- | --- | --- | --- |
| 1 | Reflex | M | Inter, Roboto, Open Sans, Poppins, Lato or a system face as the display | a display face from the theme or `fonts.md` |
-| 25 | Reflex | M | Prose `max-width` outside 45 to 75ch | `max-width: 65ch` |
+| 25 | Reflex | M | Running prose `max-width` outside 45 to 75ch; a one-sentence lede or caption may sit from 28ch | `max-width: 65ch` |
| 37 | Reflex | M | More than three font families | display, body, one outlier |
| 38i | Floor | M | One italic word inside an otherwise roman heading | a line break, or the whole head set one way |
| 38ii | Reflex | M | An italic display system. Guard: declared on `--font-display`, applied to every head at that level, true italic with `font-synthesis: none` | roman display |
@@ -83,13 +83,13 @@ One line each. `a`/`b` clauses share a number and carry their own tier. Genre no
| 3 | Reflex | M | Card tells: three equal columns of icon-above-heading tiles, an icon in a rounded tile above a heading, a thick coloured side stripe on a card | vary widths and heights, inline icons, hairline or no border |
| 4 | Floor | M | A card inside a card | one containment layer |
| 6a | Floor | M | Hero sized in `vh` | `dvh` or `svh` |
-| 6b | Reflex | J | Hero runs 92dvh or taller outside a stamped Poster, or title, lede, CTA and mark all sit on one centred axis. Guard: a `hero:` posture is stamped and 44b passes. **at**, **pl** reach the centred canvas as their normal answer | at most two centred elements; break one alignment |
+| 6b | Reflex | J | Hero runs 92dvh or taller on a page with no stamped `hero:` posture, or title, lede, CTA and mark all sit on one centred axis. Guard: 44b passes. **at**, **pl** reach the centred canvas as their normal answer | at most two centred elements; break one alignment |
| 8 | Reflex | J | The AI template (hero, three features, CTA, footer) or the same shape as one of the last three logged builds | build differently; read `.hallmark/log.json` |
| 9 | Reflex | J | Every section separated the same way with the same gap | climb different rungs of the surface ladder in different places |
| 24a | Floor | M | Raw `padding`, `margin` or `gap` length where a `--space-*` token exists for it | the token |
| 24b | Reflex | M | Off-scale spacing values. Guard: at most three, each an optical nudge | the scale |
| 34 | Floor | M/R | Horizontal scroll at any width 320 to 1920; `overflow-x` missing on `html` and `body`; `100vw` widths | `overflow-x: clip` on both, `width: 100%` |
-| 44a | Reflex | R/J | Hero padding ratio off its posture: Settled, Banner, Corridor, Stage want block-end at least 1.3 times block-start; Ledge inverts; Poster waives when anchored | bottom-heavy padding |
+| 44a | Reflex | R/J | Hero padding ratio off its posture, measured on what is painted: from the nav's bottom to the hero's first content, against the hero's last content to the next section's first. Settled, Banner, Corridor, Stage want the second at least 1.3 times the first; Ledge inverts; Poster waives when anchored | bottom-heavy padding |
| 44b | Floor | R/J | Headline, lede, primary CTA and the visual's focal point not all visible at 1280 x 800 without scrolling | pull the display clamp down, tighten leading, two-line lede, trim padding |
| 44c | Reflex | R/J | At 1440 x 900 the next section starts above y 760 or below y 900, or the hero visual's vertical centre is more than 60px from the text block's, or its left edge more than 120px from the text, or it is pinned to the viewport edge. Guard: Poster, Ledge or Banner posture, or a stamped full-bleed E1 | visual beside the text, hero fills its screen and only its screen |
| 44d | Floor | M/R | At 1920 x 1080 the container has no `max-width`, gutters under 120px, a grid gains columns, or the hero no longer fits | cap 1360 to 1520 and centre; hold column counts; cap `vw` visuals |
@@ -155,7 +155,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) · 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 2px · 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, 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.
+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) · 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 2px · 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.
## 5. Judged clauses
@@ -215,9 +215,9 @@ The thread that built the page is its weakest reviewer. Spawn a reviewer with no
**The hero review** runs the same way, once, at Step 6, before any section below the fold exists. Give the reviewer the four `hero-*` screenshots that `sloplint --render --stage hero` wrote, the stamp's first two lines, the Picks block's Material and Signature rows, and on a theme build the theme's picture. Its brief:
-> Review the first screen of a page that is still being built. You did not build it. First line: `ship` or `fix`. Then at most five findings, one line each, worst first: does the headline say something only this product could say, in seven words or fewer; is the visual beside the text, real or a labelled slot, and does it hold its half of the screen; does anything read as a template (a centred stack, a pill or label above the headline, a gradient blob, a drawn dashboard, two filled buttons side by side; a primary with a quiet text link beside it is fine); is the signature move on this screen; does the type carry the theme at this size; if you have the theme's picture, is this first screen as finished as its first screen, in a composition of its own. Do not fix anything.
+> Review the first screen of a page that is still being built. You did not build it. First line: `ship` or `fix`. Then at most five findings, one line each, worst first: does the headline say something only this product could say, in seven words or fewer; is the visual beside the text, real or a labelled slot, and does it hold its half of the screen (on a Poster or Banner hero the type is the visual: does it fill the screen); does anything read as a template (a centred stack, a pill or label above the headline, a gradient blob, a drawn dashboard standing in for a product, two filled buttons side by side; a filled primary beside an outlined or text action that goes somewhere else is the control pair, and a slot's sketch of the product's own structure is its placeholder, neither a finding); is the signature move on this screen; does the type carry the theme at this size; if you have the theme's picture, is this first screen as finished as its first screen, in a composition of its own. Do not fix anything.
-Fix, recapture with `--stage hero`, and build the sections once the answer is `ship`. Record `hero-review: ship after 1 fix` in the stamp's finish-review field.
+Fix, recapture with `--stage hero`, send the recaptures back to be scored, and build the sections once the answer is `ship`. Two rounds is the ceiling here too: after the second, fix what is still owed, record what stays open (`hero-review: fix after 2 rounds, 1 open: the void at 1920`), and build on. Record the verdict in the stamp's finish-review field.
Score the return: fix what is real, mark each finding `resolved`, `partial` or `unresolved` with a reason, recapture the same files, and send the recaptures back to be scored, not re-reviewed. Two rounds is the ceiling. Record `finish-review: subagent · 4 findings · 3 resolved 1 unresolved · gap: none` in the stamp. No subagents: re-read the artifact cold, run the same brief against yourself, and record `finish-review: in-thread`.
diff --git a/skills/hallmark/references/hero-enrichment.md b/skills/hallmark/references/hero-enrichment.md
index b0884ca..8a0277f 100644
--- a/skills/hallmark/references/hero-enrichment.md
+++ b/skills/hallmark/references/hero-enrichment.md
@@ -20,11 +20,11 @@ The default is typography only. Match the brief against this table and act on th
| team, staff, about us, portraits, hiring, careers | A team `data-slot` sized for the user's real photos; kit avatars ([`imagery-kit.md`](imagery-kit.md) § Categories) may hold the slot with no name, title or quote attached; never pravatar, dicebear or unsplash faces (F9) |
| travel, hotel, destination, real estate, listing, property | A cover photo and tile photos; slots until the user provides them |
| news, blog, magazine, journal, publication | A feature image per post; slots until the user provides them |
+| API, docs, changelog, CLI, library, SDK, package | No imagery. Typography only; code blocks if needed |
| SaaS landing, platform, dashboard, developer tool | A real capture in a slot: E4 (screenshot) or E1 (demo video). No capture, a designed placeholder (`craft.md` § 8), never a drawn mockup (47c) |
| atmospheric, slow and editorial | E7 (a two-colour gradient with grain) or E6 (one small loop), built in-page at tier A or B; any external asset obeys [`imagery-kit.md`](imagery-kit.md) (no URL outside its manifest) and [`assets.md` § Placeholder strategy](assets.md) |
| agency, studio | E8 photography, or none |
| manifesto, essay, letter, foundry, type specimen, broadside | No imagery. Display typography is the design |
-| API, docs, changelog, CLI, library, SDK, package | No imagery. Typography only; code blocks if needed |
| anything else, vague or unspecified | Typography only |
Rules:
@@ -32,7 +32,7 @@ Rules:
- When the user attached an image (or `.hallmark/preflight.json` cached one), use it. Never overwrite it with a placeholder.
- When the brief sits between a "needs photos" row and a "no imagery" row, ask one short question: *Will you have product photos, or should I leave swappable placeholders?*
- A placeholder looks like a placeholder, never like a confident decision. The skill never invents stock photos as if they were the final design.
-- The rows above do not override the genre file. Modern-minimal still suppresses decorative kit imagery (`imagery-kit.md` § Anti-patterns).
+- The rows above do not override the genre file or the theme file. Modern-minimal still suppresses decorative kit imagery (`imagery-kit.md` § Anti-patterns), and a theme whose object is hand-built (a drawn jar, a lamp, a record) keeps it in the hero; a capture or photo row then puts its slot below the fold.
The tier is chosen after this check says imagery is needed. Skipping the check is what produces a blob illustration on every page.
diff --git a/skills/hallmark/references/texture.md b/skills/hallmark/references/texture.md
index 3aa5f91..2a8c0a9 100644
--- a/skills/hallmark/references/texture.md
+++ b/skills/hallmark/references/texture.md
@@ -43,16 +43,16 @@ Placeholder image regions, plate fills, section bands. Never under or overlappin
Riso's signature, portable to any print-lineage custom:
```css
-.misreg { position: relative; }
+.misreg { position: relative; display: inline-block; isolation: isolate; }
.misreg::before, .misreg::after {
- content: attr(data-text); position: absolute; inset: 0;
- mix-blend-mode: multiply; pointer-events: none;
+ content: attr(data-text); position: absolute; inset: 0; z-index: -1;
+ white-space: nowrap; pointer-events: none;
}
.misreg::before { color: var(--color-accent); transform: translate(-2px, -2px); }
.misreg::after { color: var(--color-accent-2); transform: translate(2px, 2px); }
```
-**1-2 focal words per page, never every heading.** The echo colours are the theme's declared spot inks; the offset stays 1-3px (more reads broken, not printed). May settle once on load (<= 400ms, reduced-motion static); never loops.
+**1-2 focal words per page, never every heading.** The span is an inline block so the copies sit on the glyphs whatever the head's line-height, and they print behind the ink so the word keeps its colour; only the fringes carry the echoes. The echo colours are the theme's declared spot inks (`--color-accent` and `--color-accent-2` here, or the theme's own echo tokens); the offset stays 1-3px (more reads broken, not printed). May settle once on load (<= 400ms, reduced-motion static); never loops.
## 4 · Scanline (CRT)
diff --git a/skills/hallmark/references/themes/README.md b/skills/hallmark/references/themes/README.md
index 455cf8c..1af4d22 100644
--- a/skills/hallmark/references/themes/README.md
+++ b/skills/hallmark/references/themes/README.md
@@ -39,7 +39,7 @@ Every theme ships `<slug>.jpg` beside its file: the first screen and one lower s
1. **One paragraph:** what the theme feels like and what it is not. No brand names, ever: describe the register, never the sites that have it.
2. **Tokens:** a `:root` block with the real values in OKLCH: paper, paper-2, paper-3, ink, ink-2, muted, rule, accent, accent-ink, focus; the three font tokens; `--radius-card`, `--radius-pill`, `--rule-hair`, `--shadow-card`; `--tracking-display`. No comments inside the block: `theme.mjs scaffold` copies it verbatim into a page's `tokens.css`. A theme with dials (colourways, cabinets) lists the alternates in a short table under the block and says the page states its choice in the stamp.
-3. **Faces:** display, body, and the outlier if any, with weights, tracking, case. Labels, captions, table heads, tags and nav links are the body face at a smaller size, sentence case, untracked, unless mono is this theme's material; say which. A head is one weight and one colour; a theme built on an accented word names it as the signature and says it appears once.
+3. **Faces:** display, body, and the outlier if any, with weights, tracking, case. Labels, captions, table heads, tags and nav links are the body face at a smaller size, sentence case, untracked, or one label face the theme names (a small sans under a serif body, say), never mono unless mono is this theme's material; say which. A head is one weight and one colour; a theme built on an accented word names it as the signature and says it appears once.
4. **Material:** four to six bullets: rule weight, radius, shadow stance, texture budget (naming the `texture.md` recipe if any), the control pair, the one object family the theme builds (plates, cards, a ledger, a marquee).
5. **Motion:** one to three lines: how fast, how it eases, what may move.
6. **Voice:** one or two lines on the copy's register.
diff --git a/skills/hallmark/references/themes/almanac.md b/skills/hallmark/references/themes/almanac.md
index 809d142..d2d327b 100644
--- a/skills/hallmark/references/themes/almanac.md
+++ b/skills/hallmark/references/themes/almanac.md
@@ -78,5 +78,5 @@ td.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; t
tbody tr:nth-child(even) { background: var(--color-paper-2); }
.label { font: 500 0.8125rem/1.3 var(--font-body); color: var(--color-muted); }
a { color: var(--color-accent); text-underline-offset: 0.15em; }
-::selection { background: oklch(38% 0.135 250 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/arcade.md b/skills/hallmark/references/themes/arcade.md
index ddf620b..9d979e5 100644
--- a/skills/hallmark/references/themes/arcade.md
+++ b/skills/hallmark/references/themes/arcade.md
@@ -25,6 +25,7 @@ An aubergine CRT ground carrying a grille, a scanline and a vignette, Bungee mar
--color-rule: oklch(32% 0.04 315);
--color-accent: oklch(66% 0.215 40); --color-accent-2: oklch(88% 0.195 115); --color-accent-ink: oklch(15% 0.035 315);
--color-focus: oklch(88% 0.195 115);
+ --color-crt-r: oklch(63% 0.24 25); --color-crt-g: oklch(80% 0.25 140); --color-crt-b: oklch(60% 0.24 265); --color-crt-c: oklch(78% 0.14 200); --color-shade: oklch(8% 0.02 315);
--font-display: "Bungee", "Impact", sans-serif; --font-body: "Chivo", ui-sans-serif, sans-serif; --font-outlier: "Silkscreen", monospace;
--radius-card: 4px; --radius-pill: 0; --rule-hair: 1px; --rule-bar: 2px;
--shadow-card: 6px 6px 0 var(--color-accent-2);
@@ -78,11 +79,11 @@ Coin-op plain: the credit, the night, the machine, the buzzer.
```css
body::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
background-image:
- repeating-linear-gradient(to right, oklch(63% 0.24 25 / 0.05) 0 1px, oklch(80% 0.25 140 / 0.05) 1px 2px, oklch(60% 0.24 265 / 0.05) 2px 3px),
- repeating-linear-gradient(to bottom, transparent 0 2px, oklch(8% 0.02 315 / 0.16) 2px 3px),
- radial-gradient(120% 90% at 50% 50%, transparent 55%, oklch(8% 0.02 315 / 0.45) 100%); }
+ repeating-linear-gradient(to right, color-mix(in oklab, var(--color-crt-r) 5%, transparent) 0 1px, color-mix(in oklab, var(--color-crt-g) 5%, transparent) 1px 2px, color-mix(in oklab, var(--color-crt-b) 5%, transparent) 2px 3px),
+ repeating-linear-gradient(to bottom, transparent 0 2px, color-mix(in oklab, var(--color-shade) 16%, transparent) 2px 3px),
+ radial-gradient(120% 90% at 50% 50%, transparent 55%, color-mix(in oklab, var(--color-shade) 45%, transparent) 100%); }
.marquee { font-family: var(--font-display); text-transform: uppercase; color: var(--color-ink);
- text-shadow: -1.5px 0 0 oklch(63% 0.24 25), 1.5px 0 0 oklch(78% 0.14 200), 0 0 0.05em var(--color-accent); }
+ text-shadow: -1.5px 0 0 var(--color-crt-r), 1.5px 0 0 var(--color-crt-c), 0 0 0.05em var(--color-accent); }
.side-art { background: repeating-linear-gradient(22deg, var(--color-accent) 0 18px, var(--color-accent-2) 18px 36px); clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.hud { font-family: var(--font-outlier); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--color-accent-2); }
.btn { background: var(--color-accent); color: var(--color-accent-ink); border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card);
diff --git a/skills/hallmark/references/themes/atelier.md b/skills/hallmark/references/themes/atelier.md
index dc7a8b1..28014fc 100644
--- a/skills/hallmark/references/themes/atelier.md
+++ b/skills/hallmark/references/themes/atelier.md
@@ -74,5 +74,5 @@ h1, .display { font: var(--display-weight) clamp(2.75rem, 6vw + 1rem, 6.25rem)/1
.lede::first-letter { float: left; font: var(--display-weight) 3.9em/0.82 var(--font-display); padding: 0.06em 0.08em 0 0; color: var(--color-accent); }
.btn { border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); padding: 0.75rem 1.5rem; color: var(--color-ink); }
a { color: inherit; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
-::selection { background: oklch(40% 0.080 250 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/bloom.md b/skills/hallmark/references/themes/bloom.md
index 0802f7c..ef56339 100644
--- a/skills/hallmark/references/themes/bloom.md
+++ b/skills/hallmark/references/themes/bloom.md
@@ -73,11 +73,11 @@ Warm, daylight, expressive, specific: say the verb (make, hum, describe) and say
```css
body { background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
- background: radial-gradient(42% 38% at 72% 16%, oklch(54% 0.13 35 / 0.10), transparent 70%),
- radial-gradient(46% 40% at 18% 90%, oklch(64% 0.09 55 / 0.07), transparent 72%); }
+ background: radial-gradient(42% 38% at 72% 16%, color-mix(in oklab, var(--color-accent) 10%, transparent), transparent 70%),
+ radial-gradient(46% 40% at 18% 90%, color-mix(in oklab, var(--color-accent-2) 7%, transparent), transparent 72%); }
.display { font: var(--display-weight) clamp(2.75rem, 6vw + 1rem, 5.75rem)/1.06 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.lede--serif { font: 400 1.5rem/1.35 var(--font-outlier); font-style: normal; }
.card { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); }
-::selection { background: oklch(54% 0.13 35 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/blueprint.md b/skills/hallmark/references/themes/blueprint.md
index 9689a10..46825eb 100644
--- a/skills/hallmark/references/themes/blueprint.md
+++ b/skills/hallmark/references/themes/blueprint.md
@@ -85,5 +85,5 @@ body { background-color: var(--color-paper); background-position: var(--sheet-in
.dim { font-family: var(--font-outlier); font-size: 12px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.btn { border: 1px solid var(--color-rule); color: var(--color-ink); background: transparent; padding: 13px 20px; font-weight: 500; }
.btn--primary { background: var(--color-ink); color: var(--color-accent-ink); border-color: var(--color-ink); }
-::selection { background: oklch(97% 0.01 240 / 0.28); }
+::selection { background: color-mix(in oklab, var(--color-ink) 28%, transparent); }
```
diff --git a/skills/hallmark/references/themes/broadside.md b/skills/hallmark/references/themes/broadside.md
index 61f4a7b..38ea051 100644
--- a/skills/hallmark/references/themes/broadside.md
+++ b/skills/hallmark/references/themes/broadside.md
@@ -86,5 +86,5 @@ An auctioneer's bill: the date, the place, the lot, the estimate, without reserv
.diamonds { text-align: center; color: var(--color-accent); letter-spacing: 1em; font-size: 12px; } .diamonds::before { content: "\25C6 \25C6 \25C6"; }
.btn { background: var(--color-ink); color: var(--color-paper); padding: 18px 54px; font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: uppercase; border-radius: 0; }
.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); }
-::selection { background: oklch(46% 0.19 32 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/carnival.md b/skills/hallmark/references/themes/carnival.md
index 6c2677f..2f1b61d 100644
--- a/skills/hallmark/references/themes/carnival.md
+++ b/skills/hallmark/references/themes/carnival.md
@@ -83,5 +83,5 @@ h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: upp
.hard { border: var(--rule-bar) solid var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tile--a { background: var(--color-accent); color: var(--color-accent-ink); }
.tile--b { background: var(--color-accent-2); color: var(--color-paper); }
-::selection { background: oklch(86% 0.18 95 / 0.6); }
+::selection { background: color-mix(in oklab, var(--color-accent) 60%, transparent); }
```
diff --git a/skills/hallmark/references/themes/cobalt.md b/skills/hallmark/references/themes/cobalt.md
index 65951c9..90cba54 100644
--- a/skills/hallmark/references/themes/cobalt.md
+++ b/skills/hallmark/references/themes/cobalt.md
@@ -37,7 +37,7 @@ Cool near-white paper ruled with hairlines, Familjen Grotesk heads over IBM Plex
- **Display:** Familjen Grotesk 500 and 600, `--tracking-display`, roman. Flared terminals keep it from reading as a default grotesk.
- **Body:** IBM Plex Sans 400 and 500, body only.
-- **Labels, captions, table heads, status, meta:** Familjen Grotesk 500 one step smaller, sentence case, in `--color-muted`. Never mono.
+- **Labels, captions, table heads, status, meta:** Familjen Grotesk 500 one step smaller, sentence case, in `--color-muted`, the theme's label face. Never mono.
- **Code register:** JetBrains Mono 400 and 500, lowercase, for code blocks, commands, the request and response object, and syntax tokens. Mono is this theme's material only there, because the content is code; never a label, a head or a chip.
## Material
@@ -77,5 +77,5 @@ h1, h2, .display { font-family: var(--font-display); font-weight: 600; letter-sp
.graphite figcaption { font: 500 0.8125rem/1.4 var(--font-display); color: var(--color-graphite-ink); padding: 0.5rem 1rem; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.code { font: 400 0.875rem/1.6 var(--font-outlier); } .code .token { color: var(--color-accent-2); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-input); }
-::selection { background: oklch(51% 0.20 256 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/console.md b/skills/hallmark/references/themes/console.md
index 139247e..3671128 100644
--- a/skills/hallmark/references/themes/console.md
+++ b/skills/hallmark/references/themes/console.md
@@ -87,5 +87,5 @@ A lab notebook kept by a careful person: the value, its unit, the time, who sign
.reading { font-family: var(--font-outlier); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--color-cool); }
.btn { border-radius: var(--radius-pill); padding: 9px 14px; font-weight: 500; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
-::selection { background: oklch(78% 0.14 80 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/coral.md b/skills/hallmark/references/themes/coral.md
index f0ea5fe..2cc8109 100644
--- a/skills/hallmark/references/themes/coral.md
+++ b/skills/hallmark/references/themes/coral.md
@@ -73,5 +73,5 @@ Declarative, warm, specific: the number, the product, the outcome. Never hype.
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--secondary { border: 1px solid var(--color-rule); color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
-::selection { background: oklch(52% 0.165 28 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/darkroom.md b/skills/hallmark/references/themes/darkroom.md
index d1ceacb..baaeb37 100644
--- a/skills/hallmark/references/themes/darkroom.md
+++ b/skills/hallmark/references/themes/darkroom.md
@@ -88,5 +88,5 @@ Lab notes: the roll, the frame, the grade, the minute. Exact numbers, short line
@media (max-width: 40rem) { .hang { flex-wrap: wrap; } .print { flex-basis: 100%; } }
.btn { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 20px; border: 1px solid var(--color-ink); color: var(--color-ink); background: transparent; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
-::selection { background: oklch(78% 0.16 68 / 0.35); }
+::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }
```
diff --git a/skills/hallmark/references/themes/dose.md b/skills/hallmark/references/themes/dose.md
index 8385ff2..0531e00 100644
--- a/skills/hallmark/references/themes/dose.md
+++ b/skills/hallmark/references/themes/dose.md
@@ -89,5 +89,5 @@ A pharmacist's plainness: the name, the dose, the time, who it is for. Reassurin
.card { background: var(--color-paper); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.band { background: var(--color-paper-2); }
.time { font: 500 44px/1 var(--font-outlier); letter-spacing: -0.02em; color: var(--color-accent); }
-::selection { background: oklch(50% 0.13 160 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/editorial.md b/skills/hallmark/references/themes/editorial.md
index 4904521..9bd1e0f 100644
--- a/skills/hallmark/references/themes/editorial.md
+++ b/skills/hallmark/references/themes/editorial.md
@@ -77,5 +77,5 @@ Contemporary, lightly literary. Verbs over adjectives; name the piece, the issue
.folio .numeral { font-family: var(--font-display); font-weight: 700; }
.btn--primary { border-radius: 0; background: var(--color-ink); color: var(--color-paper); }
.tag { background: var(--color-accent); color: var(--color-accent-ink); border-radius: 0; }
-::selection { background: oklch(50% 0.160 35 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/formwork.md b/skills/hallmark/references/themes/formwork.md
index 7fbf69c..67a8eb6 100644
--- a/skills/hallmark/references/themes/formwork.md
+++ b/skills/hallmark/references/themes/formwork.md
@@ -26,6 +26,7 @@ A warm grey concrete surface that keeps its board lines and tie holes, Oswald ca
--color-rule: oklch(64% 0.01 80);
--color-accent: oklch(66% 0.21 38); --color-accent-ink: oklch(18% 0.005 270); --color-focus: oklch(42% 0.15 38);
--color-accent-deep: oklch(48% 0.17 38);
+ --color-tie: oklch(58% 0.01 80); --color-seam-light: oklch(97% 0.01 80); --color-seam-dark: oklch(8% 0.01 80);
--texture-opacity: 0.08;
--font-display: "Oswald", ui-sans-serif, sans-serif; --font-body: "Archivo", ui-sans-serif, sans-serif;
--font-outlier: "Archivo Narrow", ui-sans-serif, sans-serif;
@@ -81,13 +82,13 @@ The foreman's sheet: the radius in millimetres, the pour number, the week, the l
```css
body { background-color: var(--color-paper); background-image:
- radial-gradient(circle at 22px 48px, oklch(58% 0.01 80) 4px, oklch(64% 0.01 80) 5px, transparent 6.5px),
- repeating-linear-gradient(180deg, transparent 0 94px, oklch(97% 0.01 80 / 0.22) 94px 95px, oklch(8% 0.01 80 / 0.10) 95px 97px);
+ radial-gradient(circle at 22px 48px, var(--color-tie) 4px, var(--color-paper-3) 5px, transparent 6.5px),
+ repeating-linear-gradient(180deg, transparent 0 94px, color-mix(in oklab, var(--color-seam-light) 22%, transparent) 94px 95px, color-mix(in oklab, var(--color-seam-dark) 10%, transparent) 95px 97px);
background-size: 480px 288px, 100% 96px; }
.display { font: 700 var(--text-display)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.plate { padding: 14px 32px; font: 600 15px var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; background: var(--color-accent); color: var(--color-accent-ink);
box-shadow: 0 3px 0 var(--color-accent-deep); transition: translate 120ms ease-out, box-shadow 120ms ease-out; }
.plate:active { translate: 0 3px; box-shadow: 0 0 0 var(--color-accent-deep); }
.card { background: var(--color-plate); border: var(--rule-bar) solid var(--color-ink); box-shadow: var(--shadow-card); }
-::selection { background: oklch(66% 0.21 38 / 0.35); }
+::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }
```
diff --git a/skills/hallmark/references/themes/furrow.md b/skills/hallmark/references/themes/furrow.md
index d8bae3e..4d00dcb 100644
--- a/skills/hallmark/references/themes/furrow.md
+++ b/skills/hallmark/references/themes/furrow.md
@@ -75,5 +75,5 @@ Plain and unit-bearing: 214 ha, 6.1 t/ha, 12 days withdrawal, GBP per hectare. N
.tag { display: inline-grid; place-items: center; width: 54px; height: 44px; border-radius: 6px 6px 10px 10px; background: var(--color-tag); color: var(--color-tag-ink); font: 500 14px var(--font-outlier); }
.btn { border-radius: var(--radius-pill); padding: 0.625rem 1rem; font-weight: 600; border: 1px solid var(--color-rule); background: var(--color-paper-2); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
-::selection { background: oklch(70% 0.19 40 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/garden.md b/skills/hallmark/references/themes/garden.md
index 60e98ef..dae16b8 100644
--- a/skills/hallmark/references/themes/garden.md
+++ b/skills/hallmark/references/themes/garden.md
@@ -40,7 +40,7 @@ Warm oat paper, a near-black green ink, Vollkorn heads over Hanken Grotesk, one
## Material
-- The season bar (the signature): twelve months as one bar ruled in 1px hairlines, the months in season filled leaf green under `--color-accent-ink`, the rest left as paper with the month in `--color-muted`, and the current month marked by a 1px ink hairline that runs past the bar's edges. It shows the real season of the thing sold, or it does not appear.
+- The season bar (the signature): twelve months as one bar ruled in 1px hairlines, the months in season filled leaf green under `--color-accent-ink`, the rest left as paper with the month in `--color-muted`, and the current month marked by a 1px ink hairline that runs past the bar's edges. It shows the real season of the thing sold, or it does not appear; a brief that gives one date fills one month and says what the month is ("poured in September") in a caption under the bar, so it never reads as a month picker.
- Hand-built botanical craft: the imagery is pure CSS and hand-authored SVG (a honeycomb wash, a jar of amber, corked vials, a pressed leaf, a drawn specimen beside its caption), never a stock photo. It is the thing being sold, not decoration, and not the signature.
- Tint bands, not boxed cards: soft full-bleed washes in `--tint-moss` or `--tint-clay`; structure is 1px hairlines plus whitespace, never a drop-shadowed box. Flat paper, no texture.
- Every neutral carries a green cast (hue 90 to 152), no pure grey. Leaf-green stays under 5% of a viewport. Clay lives inside the craft, almost never as chrome.
@@ -49,7 +49,7 @@ Warm oat paper, a near-black green ink, Vollkorn heads over Hanken Grotesk, one
## Motion
-Nothing moves except state: one hover on a piece of craft, a jar filling or a leaf tilting, on transform and opacity only. No reveal, no stagger, no parallax.
+Nothing moves except state: a control's hover, and where a piece of craft is itself a link or a button, one hover on it (a jar filling, a leaf tilting), on transform and opacity only. No reveal, no stagger, no parallax.
## Voice
@@ -71,6 +71,7 @@ Warm, honest, seasonal, unhurried. Say the ridge, the flower, the pour date, the
```css
body { font-family: var(--font-body); font-variant-numeric: oldstyle-nums; color: var(--color-ink-2); }
+h1, h2, h3, .display, .season, td { font-variant-numeric: lining-nums tabular-nums; }
.display { font: 700 clamp(2.25rem, 4vw + 1rem, 5rem)/1.05 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.tag { font-size: 0.8125rem; font-weight: 500; color: var(--color-muted); }
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: var(--rule-hair) solid var(--color-rule-2); }
@@ -81,5 +82,5 @@ body { font-family: var(--font-body); font-variant-numeric: oldstyle-nums; color
.band--moss { background: var(--tint-moss); }
.btn--solid { border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); }
.btn--line { border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); }
-::selection { background: oklch(47% 0.130 140 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/halftone.md b/skills/hallmark/references/themes/halftone.md
index 18e7613..7fcf84d 100644
--- a/skills/hallmark/references/themes/halftone.md
+++ b/skills/hallmark/references/themes/halftone.md
@@ -86,5 +86,5 @@ The label: the fruit, the grams of sugar, the fridge by street. Blunt, sweet and
.panel { border: var(--rule-bar) solid var(--color-ink); background: var(--color-paper-2); }
.panel hr { border: 0; border-top: 8px solid var(--color-ink); }
.list { border-top: var(--rule-bar) solid var(--color-ink); } .list > li { border-bottom: var(--rule-hair) solid var(--color-rule); }
-::selection { background: oklch(52% 0.21 30 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/hedgerow.md b/skills/hallmark/references/themes/hedgerow.md
index fa41be2..a6baa10 100644
--- a/skills/hallmark/references/themes/hedgerow.md
+++ b/skills/hallmark/references/themes/hedgerow.md
@@ -86,5 +86,5 @@ A field guide's: the plant and where it grows, then how far and when only where
.btn { border-radius: var(--radius-pill); padding: 14px 26px; font-weight: 700; font-size: 14px;
background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { background: transparent; color: var(--color-accent); border: 1.5px solid var(--color-accent); }
-::selection { background: oklch(86% 0.19 115 / 0.3); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/hum.md b/skills/hallmark/references/themes/hum.md
index d6d74c3..d4fe51f 100644
--- a/skills/hallmark/references/themes/hum.md
+++ b/skills/hallmark/references/themes/hum.md
@@ -25,7 +25,7 @@ Cream pulled toward pear-yellow, three accents that never blend, Chillax for eve
--color-rule: oklch(88% 0.014 95);
--color-accent: oklch(86% 0.18 95); --color-accent-deep: oklch(72% 0.16 95); --color-accent-ink: oklch(20% 0.012 250);
--color-accent-2: oklch(54% 0.17 235); --color-accent-3: oklch(68% 0.24 18);
- --color-mint: oklch(80% 0.16 150); --color-lavender: oklch(74% 0.16 305); --color-focus: oklch(54% 0.17 235);
+ --color-mint: oklch(80% 0.16 150); --color-glow: oklch(76% 0.20 95); --color-lavender: oklch(74% 0.16 305); --color-focus: oklch(54% 0.17 235);
--font-display: "Chillax", "Geist", ui-rounded, ui-sans-serif, sans-serif; --font-body: var(--font-display);
--font-outlier: "Geist Mono", ui-monospace, monospace;
--radius-card: 20px; --radius-input: 12px; --radius-pill: 999px; --rule-hair: 1px;
@@ -73,10 +73,10 @@ Warm, smart, casual, direct. Sentence case, verbs over nouns, honest numbers onl
```css
h1, h2, h3 { font-weight: var(--display-weight); letter-spacing: var(--tracking-display); }
.btn { background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; border: 0; border-radius: var(--radius-pill);
- box-shadow: 0 4px 0 0 var(--color-accent-deep), 0 6px 12px -3px oklch(76% 0.20 95 / 0.45);
+ box-shadow: 0 4px 0 0 var(--color-accent-deep), 0 6px 12px -3px color-mix(in oklab, var(--color-glow) 45%, transparent);
transition: transform 140ms var(--ease-spring), box-shadow 140ms var(--ease-spring); }
-.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--color-accent-deep), 0 12px 22px -4px oklch(76% 0.20 95 / 0.45); }
+.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--color-accent-deep), 0 12px 22px -4px color-mix(in oklab, var(--color-glow) 45%, transparent); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--color-accent-deep); transition-duration: 70ms; }
a { color: var(--color-accent-2); }
-::selection { background: oklch(86% 0.18 95 / 0.6); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 60%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/kiln.md b/skills/hallmark/references/themes/kiln.md
index ef05878..71c1295 100644
--- a/skills/hallmark/references/themes/kiln.md
+++ b/skills/hallmark/references/themes/kiln.md
@@ -79,12 +79,12 @@ Calm and physical: degrees, cones, minutes, the schedule.
```css
.display { font: 400 var(--text-display)/1.02 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: var(--tracking-display); }
.plate { position: relative; overflow: hidden; border-radius: var(--radius-card); color: var(--heat-6); isolation: isolate; background-color: var(--heat-1);
- background-image: radial-gradient(in oklch 40% 30% at 86% 104%, oklch(99% 0.02 95 / 0.7), transparent 70%),
+ background-image: radial-gradient(in oklch 40% 30% at 86% 104%, color-mix(in oklab, var(--heat-6) 70%, transparent), transparent 70%),
radial-gradient(in oklch 130% 120% at 88% 104%, var(--heat-6) 0%, var(--heat-5) 10%, var(--heat-4) 24%, var(--heat-3) 40%, var(--heat-2) 60%, var(--heat-1) 82%, var(--heat-0) 100%); }
.plate::after { content: ""; position: absolute; inset: 0; opacity: 0.14; mix-blend-mode: overlay; pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.smoke { border-radius: 16px; background: var(--color-paper-2); border: 1px solid var(--color-rule); }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 500; background: var(--color-accent); color: var(--color-accent-ink); }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); }
-::selection { background: oklch(70% 0.2 45 / 0.35); }
+::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }
```
diff --git a/skills/hallmark/references/themes/ledger.md b/skills/hallmark/references/themes/ledger.md
index 0cfe6d7..1e6145e 100644
--- a/skills/hallmark/references/themes/ledger.md
+++ b/skills/hallmark/references/themes/ledger.md
@@ -88,5 +88,5 @@ th { font-size: 12px; font-weight: 500; color: var(--color-muted); }
.total { border-top: 1px solid var(--color-rule); }
.foot::after { content: ""; display: block; height: 3px; border-top: 1px solid var(--color-ink); border-bottom: 1px solid var(--color-ink); }
.btn--primary { border-radius: var(--radius-input); background: var(--color-accent); color: var(--color-accent-ink); }
-::selection { background: oklch(78% 0.12 185 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/loom.md b/skills/hallmark/references/themes/loom.md
index 762fcc3..ce66723 100644
--- a/skills/hallmark/references/themes/loom.md
+++ b/skills/hallmark/references/themes/loom.md
@@ -82,10 +82,10 @@ The studio speaking plainly: the cloth, the width, the days per stage, the Satur
.label { font: 500 12px/1.3 var(--font-body); color: var(--color-muted); }
.count { font: 500 12px/1 var(--font-outlier); font-variant-numeric: tabular-nums; }
.comb { background-image: repeating-linear-gradient(90deg, var(--color-thread) 0 1px, transparent 1px 12px); }
-.band { background: var(--color-accent) repeating-linear-gradient(90deg, oklch(95% 0.015 85 / 0.16) 0 1px, transparent 1px 12px); color: var(--color-accent-ink); }
+.band { background: var(--color-accent) repeating-linear-gradient(90deg, color-mix(in oklab, var(--color-paper) 16%, transparent) 0 1px, transparent 1px 12px); color: var(--color-accent-ink); }
.btn { display: inline-flex; align-items: center; padding: 16px 26px; font: 500 14px/1 var(--font-body); background: var(--color-accent); color: var(--color-accent-ink); }
.link { font-weight: 500; font-size: 14px; padding: 6px 0; border-bottom: 2px solid currentColor; }
.sample { border: 1px dashed var(--color-rule); }
.bar { height: 32px; background: var(--color-accent); color: var(--color-accent-ink); display: flex; align-items: center; padding: 0 12px; }
-::selection { background: oklch(38% 0.15 275 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/lumen.md b/skills/hallmark/references/themes/lumen.md
index 29b2e9a..a5ea36c 100644
--- a/skills/hallmark/references/themes/lumen.md
+++ b/skills/hallmark/references/themes/lumen.md
@@ -57,7 +57,7 @@ Two drops, stated in the stamp (`lumen: night`); consecutive Lumen pages use dif
## Motion
-The night light pulses 3% in intensity on a 4s period and never rotates; the day light reveals once over 320ms then holds. The verb underline draws in over 320ms after a 900ms delay. Nothing else moves: no rising heads, no stagger.
+The night light pulses 3% in intensity on an 8s period (an ambient loop, `craft.md` § 5) and never rotates; the day light reveals once over 320ms then holds. The verb underline draws in over 320ms after a 900ms delay. Nothing else moves: no rising heads, no stagger.
## Voice
@@ -83,10 +83,10 @@ body { font-family: var(--font-body); font-variant-numeric: tabular-nums; color:
h1, h2, h3, nav, .btn, .label { text-transform: lowercase; }
h1, h2, h3 { font: 400 clamp(2.5rem, 5vw + 1rem, 5rem)/1.05 var(--font-display); letter-spacing: var(--tracking-display); }
.readout { font-family: var(--font-outlier); font-size: 12px; text-transform: lowercase; font-variant-numeric: tabular-nums; color: var(--color-muted); }
-.lamp { border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: radial-gradient(circle at 50% 60%, oklch(76% 0.17 50 / 0.6), transparent 70%) var(--color-paper-2); }
+.lamp { border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in oklab, var(--color-accent) 60%, transparent), transparent 70%) var(--color-paper-2); }
.verb { color: var(--color-accent-2); }
.verb::after { content: ""; display: block; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out) 900ms; }
.is-in .verb::after { transform: scaleX(1); }
.btn--primary { border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); }
-::selection { background: oklch(76% 0.17 50 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/midnight.md b/skills/hallmark/references/themes/midnight.md
index 4922337..343d7ff 100644
--- a/skills/hallmark/references/themes/midnight.md
+++ b/skills/hallmark/references/themes/midnight.md
@@ -76,5 +76,5 @@ Cool, spare, a touch cerebral. Name the command or the number. Never hype.
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { border: 1px solid var(--color-rule-2); color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
-::selection { background: oklch(72% 0.16 220 / 0.3); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/newsprint.md b/skills/hallmark/references/themes/newsprint.md
index b61c643..fc6cddc 100644
--- a/skills/hallmark/references/themes/newsprint.md
+++ b/skills/hallmark/references/themes/newsprint.md
@@ -77,5 +77,5 @@ Specific, declarative, a dry editorial wit. Name the section, the date, the fact
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--secondary { border-block: 1px solid var(--color-ink); color: var(--color-ink); }
a { color: var(--color-accent-text); text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; }
-::selection { background: oklch(32% 0.10 28 / 0.2); }
+::selection { background: color-mix(in oklab, var(--color-accent) 20%, transparent); }
```
diff --git a/skills/hallmark/references/themes/overprint.md b/skills/hallmark/references/themes/overprint.md
index a10deff..49fe142 100644
--- a/skills/hallmark/references/themes/overprint.md
+++ b/skills/hallmark/references/themes/overprint.md
@@ -92,5 +92,5 @@ The bill on the wall: the room, the door time, the price, sold out or free.
.btn--secondary { box-shadow: inset 0 0 0 2px var(--color-ink); color: var(--color-ink); }
.list { border-top: var(--rule-bar) solid var(--color-ink); } .list > li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.stamp { display: inline-block; border: 2px solid var(--color-ink); outline: 1px solid var(--color-ink); outline-offset: -5px; padding: 6px 12px; rotate: -2deg; }
-::selection { background: oklch(73% 0.18 55 / 0.4); }
+::selection { background: color-mix(in oklab, var(--color-accent-2) 40%, transparent); }
```
diff --git a/skills/hallmark/references/themes/pasteup.md b/skills/hallmark/references/themes/pasteup.md
index 922a42b..709cce8 100644
--- a/skills/hallmark/references/themes/pasteup.md
+++ b/skills/hallmark/references/themes/pasteup.md
@@ -83,11 +83,11 @@ body { position: relative; isolation: isolate; }
body::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: multiply; pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.03' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.display { font-family: var(--font-display); text-transform: uppercase; line-height: 1.1; letter-spacing: var(--tracking-display); }
-.strip { position: relative; display: inline-block; background: var(--color-ink); color: var(--color-paper); padding: 0.06em 0.24em 0.02em; line-height: 1; transform: rotate(var(--r, -1deg)); box-shadow: 0 2px 0 oklch(18% 0.01 60 / 0.15); }
+.strip { position: relative; display: inline-block; background: var(--color-ink); color: var(--color-paper); padding: 0.06em 0.24em 0.02em; line-height: 1; transform: rotate(var(--r, -1deg)); box-shadow: 0 2px 0 color-mix(in oklab, var(--color-ink) 15%, transparent); }
.strip::after { content: ""; position: absolute; top: -0.12em; left: -0.18em; width: 1.1em; height: 0.32em; background: var(--color-tape); transform: rotate(-8deg); }
.btn { font: 500 15px var(--font-body); padding: 13px 18px; background: var(--color-ink); color: var(--color-paper); box-shadow: 4px 4px 0 var(--color-accent); }
.btn--sheet { background: var(--color-paper-3); color: var(--color-ink); box-shadow: 4px 4px 0 var(--color-ink); }
.price { font: 700 13px var(--font-outlier); font-variant-numeric: tabular-nums; }
.print { position: relative; background: var(--color-paper-3); padding: 12px 12px 42px; box-shadow: var(--shadow-sheet); transform: rotate(var(--r, -2deg)); }
-::selection { background: oklch(43% 0.12 250 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/piste.md b/skills/hallmark/references/themes/piste.md
index acc0627..f231be5 100644
--- a/skills/hallmark/references/themes/piste.md
+++ b/skills/hallmark/references/themes/piste.md
@@ -88,5 +88,5 @@ The morning report: the hour, the depth in centimetres, the lifts open, the run
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { box-shadow: inset 0 0 0 var(--rule-bar) var(--color-ink); color: var(--color-ink); }
th { border-bottom: var(--rule-bar) solid var(--color-ink); font: 500 14px var(--font-body); text-align: left; }
-::selection { background: oklch(52% 0.25 265 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/ribbon.md b/skills/hallmark/references/themes/ribbon.md
index cd02ab2..d7c6a6e 100644
--- a/skills/hallmark/references/themes/ribbon.md
+++ b/skills/hallmark/references/themes/ribbon.md
@@ -80,12 +80,12 @@ Calm and specific: the hour, the sound, how loud.
```css
.display { font: italic 300 var(--text-display)/1.02 var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: var(--tracking-display); font-synthesis: none; }
-.ribbon { display: block; width: 100%; mask: linear-gradient(90deg, transparent, oklch(18% 0.004 80) 15% 85%, transparent); }
+.ribbon { display: block; width: 100%; mask: linear-gradient(90deg, transparent, var(--color-ink) 15% 85%, transparent); }
.ribbon path { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.3; }
.ribbon .a { color: var(--color-strand-a); } .ribbon .b { color: var(--color-strand-b); }
.pill { display: inline-flex; gap: 10px; padding: 12px 20px; border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: var(--color-paper-2); font: 500 14px var(--font-body); }
.pill--accent { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.band { background: var(--color-band); color: var(--color-band-ink); }
-.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-strand-a); box-shadow: 0 0 0 4px oklch(69% 0.07 80 / 0.22); }
-::selection { background: oklch(44% 0.075 190 / 0.22); }
+.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-strand-a); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-strand-a) 22%, transparent); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/rim.md b/skills/hallmark/references/themes/rim.md
index a6d2b73..3def612 100644
--- a/skills/hallmark/references/themes/rim.md
+++ b/skills/hallmark/references/themes/rim.md
@@ -88,5 +88,5 @@ Measured and exact: the pass, the time in UTC, the area in square kilometres, th
.tile { background: radial-gradient(circle at 30% 30%, var(--color-disc-2), transparent 60%), radial-gradient(circle at 75% 70%, var(--color-paper-2), transparent 55%) var(--color-disc); }
.btn { border-radius: 0; padding: 0.625rem 1rem; font-weight: 500; border: 1px solid var(--color-rule); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
-::selection { background: oklch(72% 0.17 45 / 0.35); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/riso.md b/skills/hallmark/references/themes/riso.md
index 9c38955..7373408 100644
--- a/skills/hallmark/references/themes/riso.md
+++ b/skills/hallmark/references/themes/riso.md
@@ -28,7 +28,7 @@ Pink stock, Public Sans 900 heads over a Newsreader body, blue and yellow spot i
--font-display: "Public Sans", ui-sans-serif, sans-serif; --font-body: "Newsreader", serif;
--font-outlier: "Geist Mono", ui-monospace, monospace;
--radius-card: 2px; --radius-pill: 2px; --rule-hair: 1px;
- --shadow-card: none; --texture-opacity: 0.06;
+ --shadow-card: none; --texture-opacity: 0.045;
--tracking-display: -0.015em; --display-weight: 900;
}
```
@@ -41,8 +41,8 @@ Pink stock, Public Sans 900 heads over a Newsreader body, blue and yellow spot i
## Material
-- The off-register overprint, the theme's move: a focal word carries a blue echo nudged up-left 2px and a pink echo nudged down-right 2px, both multiplied over the ink, per `texture.md` § Misregistration: one focal word per page, in the hero head, offset 1 to 3px (the signature; stamp `waive 38iii`).
-- Grain, declared: the `texture.md` § Grain recipe, page-wide at `--texture-opacity` 0.06, never above 0.08, up to 0.15 on a plate, under 0.05 beneath running text. Grain and misregistration are the theme's two artifacts; nothing else.
+- The off-register overprint, the theme's move: a focal word carries a blue echo nudged up-left 2px and a pink echo nudged down-right 2px, printed behind the ink so the word stays black and only the fringes show colour, per `texture.md` § Misregistration: one focal word per page, in the hero head, offset 1 to 3px (the signature; stamp `waive 38iii`).
+- Grain, declared: the `texture.md` § Grain recipe, one page-wide layer at `--texture-opacity` 0.045 (it sits under running text, so it stays under 0.05), up to 0.15 on a plate. Grain and misregistration are the theme's two artifacts; nothing else.
- Blue and yellow are the only inks; where they cross on white or on a plate, multiply makes a third for free. On the pink stock the yellow prints opaque (multiplied over pink it turns mustard). Both under 15% of a viewport.
- Hairlines, a yellow `<mark>` band at x-height in running text and never inside a heading, solid rectangles at 2px, zero shadow; depth comes from overprint and rule.
- The control pair: a blue-filled rectangle with paper text beside one outlined in ink, both 2px. The object family: plates. A print plate with a grained fill, a stockist list, a run sheet, a poster crop in a hairline frame.
@@ -71,13 +71,13 @@ Specific, hand-set, a little literary. Verbs and counts over adjectives: name th
```css
.display { font: var(--display-weight) var(--text-display)/0.92 var(--font-display); letter-spacing: var(--tracking-display); }
-.misreg { position: relative; }
-.misreg::before, .misreg::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; }
+.misreg { position: relative; display: inline-block; isolation: isolate; }
+.misreg::before, .misreg::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; white-space: nowrap; pointer-events: none; }
.misreg::before { color: var(--color-accent); transform: translate(-2px, -2px); }
.misreg::after { color: var(--color-echo); transform: translate(2px, 2px); }
mark { background: var(--color-accent-2); color: var(--color-ink); }
.btn { border-radius: var(--radius-card); padding: 0.7rem 1.2rem; font: 700 0.9375rem/1 var(--font-display); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { border: 1.5px solid var(--color-ink); color: var(--color-ink); }
-::selection { background: oklch(78% 0.18 95 / 0.6); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent-2) 60%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/saffron.md b/skills/hallmark/references/themes/saffron.md
index 6cea93d..7452edd 100644
--- a/skills/hallmark/references/themes/saffron.md
+++ b/skills/hallmark/references/themes/saffron.md
@@ -84,6 +84,6 @@ The atelier's register: the piece, the cloth weight, the bath, the hour of the f
.btn--secondary { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.plate { background: var(--color-plate); color: var(--color-ink); }
.letter { position: absolute; right: -80px; top: -210px; font: italic 400 1150px/1 var(--font-display); color: var(--color-paper-3); pointer-events: none; user-select: none; }
-.cloth { background: linear-gradient(162deg, oklch(97.5% 0.025 90) 0%, oklch(94% 0.045 88) 40%, oklch(88% 0.08 86) 76%, oklch(80% 0.12 84) 100%); }
+.cloth { background: linear-gradient(162deg, var(--color-plate) 0%, color-mix(in oklab, var(--color-plate) 85%, var(--color-paper)) 40%, color-mix(in oklab, var(--color-plate) 60%, var(--color-paper)) 76%, color-mix(in oklab, var(--color-plate) 35%, var(--color-paper)) 100%); }
::selection { background: var(--color-ink); color: var(--color-paper); }
```
diff --git a/skills/hallmark/references/themes/solstice.md b/skills/hallmark/references/themes/solstice.md
index 58f095d..706a004 100644
--- a/skills/hallmark/references/themes/solstice.md
+++ b/skills/hallmark/references/themes/solstice.md
@@ -82,12 +82,12 @@ The almanac: the hour of light, the pressing day, the orchard by name. Never a t
.display { font: 400 var(--text-display)/0.98 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rays::before { content: ""; position: absolute; width: 2600px; height: 2600px; right: -600px; top: -1300px; border-radius: 50%;
- background: repeating-conic-gradient(var(--color-paper-3) 0 4.5deg, transparent 4.5deg 9deg, oklch(92% 0.04 80) 9deg 12deg, transparent 12deg 18deg);
- mask: radial-gradient(circle, transparent 0 320px, oklch(27% 0.05 50) 340px 1300px, transparent 1300px); }
+ background: repeating-conic-gradient(var(--color-paper-3) 0 4.5deg, transparent 4.5deg 9deg, color-mix(in oklab, var(--color-paper) 50%, var(--color-paper-3)) 9deg 12deg, transparent 12deg 18deg);
+ mask: radial-gradient(circle, transparent 0 320px, var(--color-ink) 340px 1300px, transparent 1300px); }
.sun { display: inline-block; width: 1em; height: 1em; border-radius: 50%; background: var(--color-accent); }
.label { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); outline: 1px solid var(--color-gold); outline-offset: -7px; text-align: center; box-shadow: var(--shadow-card); }
.small { font: 600 12.5px var(--font-outlier); color: var(--color-muted); }
.btn { padding: 15px 30px; font: 600 14px var(--font-outlier); background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { background: none; color: var(--color-ink); padding: 15px 0 6px; border-bottom: var(--rule-bar) solid var(--color-ink); }
-::selection { background: oklch(74% 0.14 75 / 0.4); }
+::selection { background: color-mix(in oklab, var(--color-gold) 40%, transparent); }
```
diff --git a/skills/hallmark/references/themes/specimen.md b/skills/hallmark/references/themes/specimen.md
index 0422f5d..0b0f50b 100644
--- a/skills/hallmark/references/themes/specimen.md
+++ b/skills/hallmark/references/themes/specimen.md
@@ -76,5 +76,5 @@ Editorial, hand-set, lightly literary. Verbs over adjectives; name the face, the
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--secondary { border: 1px solid var(--color-ink); color: var(--color-ink); }
a { text-decoration-color: var(--color-accent); text-underline-offset: 0.18em; }
-::selection { background: oklch(46% 0.17 262 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/references/themes/spore.md b/skills/hallmark/references/themes/spore.md
index dd93d67..3064ea6 100644
--- a/skills/hallmark/references/themes/spore.md
+++ b/skills/hallmark/references/themes/spore.md
@@ -83,9 +83,9 @@ body::after { content: ""; position: fixed; inset: 0; z-index: 40; pointer-event
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.display { font: 400 var(--text-display)/1.02 var(--font-display); letter-spacing: var(--tracking-display); }
.cap .stem { fill: var(--color-ink-2); } .cap .top { fill: var(--c); } .cap .hi { fill: var(--color-ink); opacity: 0.35; }
-.gills { height: 26px; background: repeating-linear-gradient(90deg, var(--color-ink-2) 0 1px, transparent 1px 5px); mask: linear-gradient(180deg, oklch(15% 0.01 60 / 0.7), transparent); }
+.gills { height: 26px; background: repeating-linear-gradient(90deg, var(--color-ink-2) 0 1px, transparent 1px 5px); mask: linear-gradient(180deg, color-mix(in oklab, var(--color-paper) 70%, transparent), transparent); }
.shelf { border-bottom: 2px solid var(--color-paper-3); }
.btn { border-radius: var(--radius-pill); padding: 13px 24px; font-weight: 600; background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink-2); }
-::selection { background: oklch(77% 0.09 30 / 0.3); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
```
diff --git a/skills/hallmark/references/themes/squeeze.md b/skills/hallmark/references/themes/squeeze.md
index 0a3e5f3..dff2c82 100644
--- a/skills/hallmark/references/themes/squeeze.md
+++ b/skills/hallmark/references/themes/squeeze.md
@@ -24,6 +24,7 @@ Forest green with real chroma, peach controls, Manrope from 500 to 800 and nothi
--color-ink: oklch(99% 0.005 90); --color-ink-2: oklch(94% 0.020 120); --color-muted: oklch(88% 0.035 150); --color-rule: oklch(50% 0.09 160);
--color-accent: oklch(84% 0.10 55); --color-accent-ink: oklch(30% 0.06 40); --color-focus: oklch(88% 0.14 85);
--color-card: oklch(97% 0.012 85); --color-card-ink: oklch(24% 0.05 160);
+ --color-shade: oklch(20% 0.05 160); --ripe-0: oklch(80% 0.12 130); --ripe-1: oklch(84% 0.12 85); --ripe-2: oklch(70% 0.17 40);
--font-display: "Manrope", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
--font-outlier: "IBM Plex Mono", ui-monospace, monospace;
--radius-card: 20px; --radius-pill: 999px; --rule-hair: 1px; --rule-bar: 2px;
@@ -71,11 +72,11 @@ The stall-holder's: the fruit, the farm, the day it comes, what ripe feels like
```css
.display { font: 800 var(--text-display)/0.98 var(--font-display); letter-spacing: var(--tracking-display); }
.card { background: var(--color-card); color: var(--color-card-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
-.fruit { position: relative; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -6px -8px 14px oklch(20% 0.05 160 / 0.16);
- background: radial-gradient(circle at 35% 32%, var(--f2), var(--f1) 62%, color-mix(in oklab, var(--f1) 70%, oklch(20% 0.05 160))); }
-.ripe { height: 8px; border-radius: 4px; background: oklch(99% 0.005 90 / 0.14); overflow: hidden; }
-.ripe i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, oklch(80% 0.12 130), oklch(84% 0.12 85), oklch(70% 0.17 40)); }
+.fruit { position: relative; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -6px -8px 14px color-mix(in oklab, var(--color-shade) 16%, transparent);
+ background: radial-gradient(circle at 35% 32%, var(--f2), var(--f1) 62%, color-mix(in oklab, var(--f1) 70%, var(--color-shade))); }
+.ripe { height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--color-ink) 14%, transparent); overflow: hidden; }
+.ripe i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--ripe-0), var(--ripe-1), var(--ripe-2)); }
.btn { border-radius: 14px; padding: 0.8rem 1.25rem; font-weight: 700; border: var(--rule-bar) solid var(--color-ink); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
-::selection { background: oklch(84% 0.10 55 / 0.45); color: var(--color-card-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 45%, transparent); color: var(--color-card-ink); }
```
diff --git a/skills/hallmark/references/themes/studio.md b/skills/hallmark/references/themes/studio.md
index 6c74309..3e7f922 100644
--- a/skills/hallmark/references/themes/studio.md
+++ b/skills/hallmark/references/themes/studio.md
@@ -75,5 +75,5 @@ Spare, a little literary. Verbs over adjectives; name the work, the discipline,
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { border: 1px solid var(--color-rule); color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
-::selection { background: oklch(68% 0.17 52 / 0.25); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/terminal.md b/skills/hallmark/references/themes/terminal.md
index e48ebbe..9d2fff2 100644
--- a/skills/hallmark/references/themes/terminal.md
+++ b/skills/hallmark/references/themes/terminal.md
@@ -80,5 +80,5 @@ body { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.btn { border-radius: 0; padding: 0.6rem 1rem; font: 500 0.9375rem/1 var(--font-body); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { border: 1px solid var(--color-ink-2); color: var(--color-ink); }
-::selection { background: oklch(78% 0.19 138 / 0.35); color: var(--color-ink); }
+::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); color: var(--color-ink); }
```
diff --git a/skills/hallmark/references/themes/terrazzo.md b/skills/hallmark/references/themes/terrazzo.md
index 307cd90..e21a09d 100644
--- a/skills/hallmark/references/themes/terrazzo.md
+++ b/skills/hallmark/references/themes/terrazzo.md
@@ -92,5 +92,5 @@ A catalogue's plainness: the count, the drawer, the code, the size at one to one
.drawer-band { background: var(--color-ink); color: var(--color-paper); padding: 16px; }
.frame { background: var(--color-plate); border: var(--rule-bar) solid var(--color-ink); box-shadow: var(--shadow-card); }
.code { font: 500 12px var(--font-outlier); color: var(--color-muted); }
-::selection { background: oklch(78% 0.14 85 / 0.45); }
+::selection { background: color-mix(in oklab, var(--color-chip-ochre) 45%, transparent); }
```
diff --git a/skills/hallmark/references/themes/ultraviolet.md b/skills/hallmark/references/themes/ultraviolet.md
index 6dcc7d6..14a82c6 100644
--- a/skills/hallmark/references/themes/ultraviolet.md
+++ b/skills/hallmark/references/themes/ultraviolet.md
@@ -83,6 +83,6 @@ Lowercase, short, exact: the bar count, the key, the percent, the price. It talk
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { box-shadow: inset 0 0 0 1.5px var(--color-ink); color: var(--color-ink); }
.wave rect { fill: var(--color-dim); } .wave rect.on { fill: var(--color-accent); }
-.disc .face { fill: var(--color-ink); } .disc .groove { fill: none; stroke: oklch(30% 0.03 300); } .disc .label { fill: var(--color-accent); } .disc .hole { fill: var(--color-paper); }
-::selection { background: oklch(50% 0.25 290 / 0.25); }
+.disc .face { fill: var(--color-ink); } .disc .groove { fill: none; stroke: var(--color-ink-2); } .disc .label { fill: var(--color-accent); } .disc .hole { fill: var(--color-paper); }
+::selection { background: color-mix(in oklab, var(--color-accent) 25%, transparent); }
```
diff --git a/skills/hallmark/references/themes/vellum.md b/skills/hallmark/references/themes/vellum.md
index 31f6296..94c78ff 100644
--- a/skills/hallmark/references/themes/vellum.md
+++ b/skills/hallmark/references/themes/vellum.md
@@ -88,5 +88,5 @@ body::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity:
.stamp { display: inline-block; transform: rotate(-7deg); padding: 7px 11px; font-size: 12px; text-align: center; color: var(--color-accent);
border: 1.5px solid var(--color-accent); border-radius: 2px; box-shadow: 0 0 0 2px var(--color-paper), 0 0 0 3px var(--color-accent); }
.ledger .num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; text-align: right; }
-::selection { background: oklch(42% 0.16 275 / 0.22); }
+::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
```
diff --git a/skills/hallmark/scripts/refcheck.mjs b/skills/hallmark/scripts/refcheck.mjs
index 0a86364..2d55d85 100644
--- a/skills/hallmark/scripts/refcheck.mjs
+++ b/skills/hallmark/scripts/refcheck.mjs
@@ -259,6 +259,16 @@ for (const f of MD) if (!reach.has(f) && basename(f) !== 'README.md') add('warn'
const skillBytes = Buffer.byteLength(read(SKILL));
if (skillBytes > 20480) add('warn', SKILL, 1, 'size', `SKILL.md is ${skillBytes} bytes; keep it under 20 KB`);
+for (const f of themeFiles) {
+ const src = read(f);
+ const hint = /## Build hint[\s\S]*?```css\n([\s\S]*?)```/.exec(src);
+ if (!hint) continue;
+ const at = src.indexOf(hint[1]);
+ for (const m of hint[1].matchAll(/(?:^|[{;])\s*(?!--)([a-z-]+)\s*:([^;{}]*)/g)) {
+ if (/oklch\(|#[0-9a-fA-F]{3,8}\b|rgba?\(|hsla?\(/.test(m[2])) add('error', f, lineAt(src, at + m.index), 'literal', `build hint sets ${m[1]} with a colour literal; route it through a token (48)`);
+ }
+}
+
const exemplarDir = join(ROOT, 'references', 'exemplars');
const clean = [...(existsSync(exemplarDir) ? readdirSync(exemplarDir).filter((n) => n.endsWith('.html')).map((n) => join(exemplarDir, n)) : []),
...['eyebrow-pass', 'tailwind-pass'].map((n) => join(ROOT, 'scripts', 'fixtures', n)).filter(existsSync)];
diff --git a/skills/hallmark/scripts/sloplint-render.mjs b/skills/hallmark/scripts/sloplint-render.mjs
index 8c8288f..a50cd4f 100644
--- a/skills/hallmark/scripts/sloplint-render.mjs
+++ b/skills/hallmark/scripts/sloplint-render.mjs
@@ -351,14 +351,33 @@ function observeSpace(atLaptop, heroOnly, heroPosture) {
const seen = [];
for (const e of texts) { if (seen.some((o) => o.contains(e) || e.contains(o))) continue; seen.push(e); }
stack = seen.length;
- const boxes = [h1, ...seen.filter((e) => Math.abs(abs(e).left - abs(h1).left) < 40)].map(abs);
+ const ink = (el) => { let L = Infinity, T = Infinity, R = -Infinity, B = -Infinity; const w = document.createTreeWalker(el, NodeFilter.SHOW_TEXT); for (let t = w.nextNode(); t; t = w.nextNode()) { if (!t.textContent.trim() || t.parentElement.closest('svg')) continue; const rg = document.createRange(); rg.selectNodeContents(t); for (const q of rg.getClientRects()) { if (!q.width || !q.height) continue; L = Math.min(L, q.left); T = Math.min(T, q.top); R = Math.max(R, q.right); B = Math.max(B, q.bottom); } } return L === Infinity ? abs(el) : { top: T + scrollY, bottom: B + scrollY, left: L, right: R }; };
+ const boxes = [h1, ...seen.filter((e) => Math.abs(abs(e).left - abs(h1).left) < 40)].map(ink);
textBox = { top: Math.min(...boxes.map((b) => b.top)), bottom: Math.max(...boxes.map((b) => b.bottom), cta ? abs(cta).bottom : 0), left: Math.min(...boxes.map((b) => b.left)), right: Math.max(...boxes.map((b) => b.right)) };
let bestA = 0;
const clipped = (el) => { const r = el.getBoundingClientRect(); let L = r.left, T = r.top, R = r.right, B = r.bottom; for (let p = el.parentElement; p && p !== document.body; p = p.parentElement) { const cs = getComputedStyle(p); if (/hidden|clip/.test(`${cs.overflow} ${cs.overflowX} ${cs.overflowY}`)) { const q = p.getBoundingClientRect(); L = Math.max(L, q.left); T = Math.max(T, q.top); R = Math.min(R, q.right); B = Math.min(B, q.bottom); } } R = Math.min(R, vw); return { top: T + scrollY, bottom: B + scrollY, left: L, right: R, w: Math.max(0, R - L), h: Math.max(0, B - T) }; };
- for (const e of hero.querySelectorAll('svg, canvas, img, figure, video, picture, [data-slot], [class*="fig"], [class*="visual"], [class*="device"], [class*="demo"], [class*="shot"], [class*="illus"], [class*="panel"]')) {
- if (!vis(e) || e.closest('nav') || e.contains(h1)) continue;
+ const beside = (b) => b.left >= textBox.right - 40 || b.right <= textBox.left + 40;
+ const consider = (e) => {
+ if (!vis(e) || e.closest('nav') || e.contains(h1) || seen.some((t) => e.contains(t))) return;
const b = clipped(e); const a = b.w * b.h;
- if (b.w > 160 && b.h > 120 && a > bestA && b.w < vw * 0.95 && b.left >= textBox.right - 40) { fig = b; bestA = a; }
+ if (b.w > 160 && b.h > 120 && a > bestA && b.w < vw * 0.95 && beside(b)) { fig = b; fig.el = e; bestA = a; }
+ };
+ for (const e of hero.querySelectorAll('svg, canvas, img, figure, video, picture, [data-slot], [class*="fig"], [class*="visual"], [class*="device"], [class*="demo"], [class*="shot"], [class*="illus"], [class*="panel"]')) consider(e);
+ if (!fig) {
+ const heroBg = getComputedStyle(hero).backgroundColor;
+ for (const e of hero.querySelectorAll('div, span, aside, i, b')) {
+ const cs = getComputedStyle(e);
+ if (cs.backgroundImage !== 'none' || (cs.backgroundColor !== 'rgba(0, 0, 0, 0)' && cs.backgroundColor !== heroBg) || parseFloat(cs.borderTopWidth) > 0) consider(e);
+ }
+ }
+ if (fig) {
+ fig.side = fig.left >= textBox.right - 40 ? 'right' : 'left';
+ let lca = h1.parentElement;
+ while (lca && !lca.contains(fig.el)) lca = lca.parentElement;
+ let col = h1;
+ while (col.parentElement && col.parentElement !== lca) col = col.parentElement;
+ const cb = abs(col);
+ fig.colEdge = fig.side === 'right' ? Math.max(textBox.right, cb.right) : Math.min(textBox.left, cb.left);
}
}
@@ -391,7 +410,7 @@ function observeSpace(atLaptop, heroOnly, heroPosture) {
}
if (!heroOnly && secs.length > 9) push(59, 'WARN', `${secs.length} sections`, 'Five to eight sections a page; merge or cut');
- if (hero && !freeFold && !/^corridor$/.test(heroPosture || '')) {
+ if (hero && !/^(poster|ledge)$/.test(heroPosture || '')) {
const hb = abs(hero);
let cTop = Infinity, cBottom = -Infinity;
for (const c of hero.querySelectorAll('*')) {
@@ -414,9 +433,10 @@ function observeSpace(atLaptop, heroOnly, heroPosture) {
}
if (fig && textBox && !freeFold) {
const off = Math.round((fig.top + fig.bottom) / 2 - (textBox.top + textBox.bottom) / 2);
- const gap = Math.round(fig.left - textBox.right);
+ const gap = Math.round(fig.side === 'right' ? fig.left - fig.colEdge : fig.colEdge - fig.right);
+ const edge = Math.round(fig.side === 'right' ? vw - fig.right : fig.left);
if (Math.abs(off) > 60) push('44c', 'REFLEX', `hero visual centre is ${off}px from the text block centre`, 'Align the visual beside the text');
- if (gap > 120 || (fig.right > vw - 8 && gap > 48)) push('44c', 'REFLEX', `hero visual sits ${gap}px from the text and ${Math.round(vw - fig.right)}px from the viewport edge`, 'Bring the visual to within 48 to 120px of the text; never pin it to the corner');
+ if (gap > 120 || (edge < 8 && gap > 48)) push('44c', 'REFLEX', `hero visual sits ${gap}px from the text and ${edge}px from the viewport edge`, 'Bring the visual to within 48 to 120px of the text; never pin it to the corner');
}
} else {
diff --git a/skills/hallmark/scripts/sloplint.mjs b/skills/hallmark/scripts/sloplint.mjs
index 5a32a84..aff1935 100644
--- a/skills/hallmark/scripts/sloplint.mjs
+++ b/skills/hallmark/scripts/sloplint.mjs
@@ -1511,8 +1511,9 @@ function check25(ctx) {
const m = /^([\d.]+)ch$/.exec(resolveVars(d.value, ctx.tokens).trim());
if (m) {
const ch = parseFloat(m[1]);
- if (ch < 45 || ch > 75) {
- report(25, 'WARN', r.file, d.line, `measure ${ch}ch on ${r.selector} (45-75ch range)`, 'Set prose measure between 45 and 75ch');
+ const floor = /lede|hero|caption|figcaption|__line|__sub|subhead|tagline/i.test(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');
}
}
}
@@ -2363,7 +2364,7 @@ function check64(ctx) {
if (monoIsMaterial(ctx)) return;
const monoFam = (v) => /mono|courier|jetbrains|plex mono|geist mono|commit|fira code|space mono|dm mono|roboto mono|source code|silkscreen/i.test(firstFamily(resolveVars(v, ctx.tokens)));
const LABELISH = /label|caption|meta|eyebrow|kicker|tag\b|badge|chip|small|folio|footnote|legend|\bth\b|thead|figcaption|overline|dateline|byline|credit|note\b/i;
- const DATAISH = /code|pre\b|kbd|samp|num|figure|stat|price|value|data|tabular|counter|timer|clock|coord|amount|total|score|version|hash|\bid\b|sku|time|date|hour|utc|eta|lot\b|edition|ref\b|dimension|measure|reading|plate-?no|tag-?no/i;
+ const DATAISH = /code|pre\b|kbd|samp|num|figure|stat|price|value|data|tabular|counter|timer|clock|coord|amount|total|score|version|hash|\bid\b|sku|time|date|hour|utc|eta|lot\b|edition|ref\b|dimension|measure|reading|plate-?no|tag-?no|url|uri\b|path|endpoint|command|cmd|snippet|install/i;
const seen = new Set();
for (const r of ctx.rules) {
if (r.keyframes || r.selector === '@font-face' || isTokenRule(r)) continue;
@@ -2400,7 +2401,7 @@ function checkF15(ctx) {
const gaps = new Map();
for (const r of ctx.rules) {
if (r.keyframes || r.media) continue;
- const cols = r.decls.find((d) => d.prop === 'grid-template-columns' && /\s/.test(d.value.trim()) && !/^repeat\(\s*auto/.test(d.value.trim()));
+ const cols = r.decls.find((d) => d.prop === 'grid-template-columns' && trackCount(d.value) > 1 && !/^repeat\(\s*auto/.test(d.value.trim()));
if (!cols) continue;
const gap = r.decls.find((d) => /^(gap|column-gap)$/.test(d.prop));
if (gap) { const v = resolveVars(gap.value, ctx.tokens).split(/\s+/).pop(); const px = maxPxIn(v); if (px != null && px >= 16) gaps.set(v, r.selector); }
@@ -2408,6 +2409,20 @@ function checkF15(ctx) {
if (gaps.size > 2) report('F15', 'WARN', ctx.cssFiles[0]?.file || ctx.docs[0]?.file, 1, `${gaps.size} different column gaps across multi-column sections (${[...gaps.keys()].join(', ')})`, 'One column gap for every multi-column section');
}
+function trackCount(v) {
+ const t = v.replace(/\[[^\]]*\]/g, ' ').trim();
+ const rep = /^repeat\(\s*(\d+)/.exec(t);
+ if (rep) return Number(rep[1]);
+ let depth = 0, n = 0, inTok = false;
+ for (const ch of t) {
+ if (ch === '(') depth++;
+ else if (ch === ')') depth--;
+ if (depth === 0 && /\s/.test(ch)) inTok = false;
+ else if (!inTok) { inTok = true; n++; }
+ }
+ return n;
+}
+
function checkF16(ctx) {
if (ctx.tokensOnly || !ctx.tokens['--color-accent']) return;
const tw = twGroup(ctx);
@@ -2714,7 +2729,7 @@ function check67(ctx) {
if ((caps && (labelish || smallCaps || tracked || small)) || (tracked && (labelish || small))) {
seen.add(key);
const what = smallCaps ? 'small caps' : upper ? 'uppercase' : 'letter-spaced';
- report(67, 'FAIL', r.file, r.line, `${r.selector}: ${what}${tracked ? ` tracked ${em}em` : ''}${px != null ? ` at ${Math.round(px)}px` : ''} in a label role`, 'Labels, captions, table heads, nav links and meta are the body face, a step smaller, sentence case, untracked');
+ report(67, 'FAIL', r.file, r.line, `${r.selector}: ${what}${tracked ? ` tracked ${em}em` : ''}${px != null ? ` at ${Math.round(px)}px` : ''} in a label role`, 'Labels, captions, table heads, nav links and meta are the body face (or the theme\'s label face), a step smaller, sentence case, untracked');
}
}
check67Html(ctx);
@@ -2766,6 +2781,32 @@ function accentedHeads(ctx) {
seen.add(r.selector);
out.push({ r, head: m[1] });
}
+ const marks = (r) => r.decls.some((d) => (/^(color|background|background-color|-webkit-text-stroke|font-weight|text-decoration|text-decoration-color|border-bottom|box-shadow|font-style)$/.test(d.prop) && !INHERITED38.test(d.value.trim())));
+ for (const doc of ctx.docs) {
+ for (let i = 0; i < doc.tags.length; i++) {
+ const t = doc.tags[i];
+ if (t.close || !/^h[1-3]$/.test(t.name)) continue;
+ const inner = innerOf(doc, i);
+ if (!inner) continue;
+ const headLen = plainText(inner.inner).replace(/\s+/g, '').length || 1;
+ const spans = [...inner.inner.matchAll(/<(span|em|strong|b|i|mark)\b[^>]*\bclass\s*=\s*["']([^"']+)["'][^>]*>([\s\S]*?)<\/\1>/gi)];
+ const cover = (cls) => spans.filter((x) => x[2].split(/\s+/).includes(cls)).reduce((n, x) => n + plainText(x[3]).replace(/\s+/g, '').length, 0) / headLen;
+ for (const m of spans) {
+ if (!/[A-Za-z0-9]/.test(plainText(m[3]))) continue;
+ for (const cls of m[2].split(/\s+/).filter(Boolean)) {
+ if (cover(cls) >= 0.8) continue;
+ for (const r of ctx.rules) {
+ if (r.keyframes || isTokenRule(r) || seen.has(r.selector)) continue;
+ if (!r.selector.split(',').some((part) => !/::?(before|after)\b/.test(part) && baseSelector(part).trim() === `.${cls}`)) continue;
+ if (r.decls.some((d) => (d.prop === 'display' && /^(block|flex|grid|table)/.test(d.value.trim())) || (d.prop === 'position' && /absolute|fixed/.test(d.value)))) continue;
+ if (!marks(r)) continue;
+ seen.add(r.selector);
+ out.push({ r, head: t.name });
+ }
+ }
+ }
+ }
+ }
ctx._acc38 = out;
return out;
}
diff --git a/skills/hallmark/scripts/theme.mjs b/skills/hallmark/scripts/theme.mjs
index d77a0b9..089c37b 100644
--- a/skills/hallmark/scripts/theme.mjs
+++ b/skills/hallmark/scripts/theme.mjs
@@ -74,6 +74,8 @@ function readLog(p) {
const triple = (t) => `${t.paper.band}/${t.display.class}/${t.accent.band}`;
const sameTriple = (a, b) => a === b;
const words = (s) => (s || '').toLowerCase().replace(/[^a-z0-9\s-]/g, ' ').split(/\s+/).filter((w) => w.length > 2);
+const ASK = new Set(['build', 'make', 'create', 'design', 'need', 'want', 'please', 'page', 'site', 'website', 'landing', 'called', 'for', 'and', 'the', 'with', 'that', 'this', 'our', 'your']);
+const briefWords = (s) => words(s).filter((w) => !ASK.has(w));
const hueGap = (a, b) => { const d = Math.abs(((a - b) % 360 + 360) % 360); return Math.min(d, 360 - d); };
function seededRand(key) {
@@ -112,8 +114,8 @@ function deal() {
const recentNames = new Set(recent.map((r) => String(r.theme || '').toLowerCase()));
const lastAxes = recent[0] && recent[0].axes ? String(recent[0].axes) : null;
const occupiedAxes = new Set(recent.map((r) => r.axes).filter(Boolean));
- const bw = new Set(words(brief));
- const slug = words(brief).slice(0, 4).join('-') || 'brief';
+ const bw = new Set(briefWords(brief));
+ const slug = briefWords(brief).slice(0, 4).join('-') || 'brief';
const seedBase = `${slug}·${new Date().toISOString().slice(0, 10)}`;
const seedKey = `${seedBase}·r${reroll}`;
const rand = seededRand(seedBase);