Skip to content

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

CSS

The finish layer: the last 2% that separates set from generated

Youssefd90fd6960c10
diff --git a/skills/hallmark/SKILL.md b/skills/hallmark/SKILL.md
index 45ae5d0..a4e3af8 100644
--- a/skills/hallmark/SKILL.md
+++ b/skills/hallmark/SKILL.md
@@ -234,7 +234,7 @@ A custom system is complete (palette + pairing + axes), never a colour swap; its
- [`references/hero-enrichment.md`](references/hero-enrichment.md) → load its slim index at Step 4 to run the image-need check it contains; load an archetype file from `references/enrichment/` only when the answer is YES.
- [`references/custom-craft.md`](references/custom-craft.md) → only when the picked enrichment requires construction, then only the picked tier / recipe file from `references/craft/` (the craft tiers are lettered by construction method; match by name, not letter).
-**Every build:** [`references/typography.md`](references/typography.md) · [`references/color.md`](references/color.md) · [`references/layout-and-space.md`](references/layout-and-space.md) · [`references/motion.md`](references/motion.md) · [`references/copy.md`](references/copy.md) · [`references/anti-patterns.md`](references/anti-patterns.md).
+**Every build:** [`references/typography.md`](references/typography.md) · [`references/color.md`](references/color.md) · [`references/layout-and-space.md`](references/layout-and-space.md) · [`references/motion.md`](references/motion.md) · [`references/copy.md`](references/copy.md) · [`references/anti-patterns.md`](references/anti-patterns.md) · [`references/finish.md`](references/finish.md).
**Conditionally (be honest, no defensive pre-loads):** [`references/microinteractions.md`](references/microinteractions.md) when anything is interactive (most pages); [`references/interaction-and-states.md`](references/interaction-and-states.md) for stateful UI; [`references/responsive.md`](references/responsive.md) when mobile is in scope; [`references/structure.md`](references/structure.md) only when deviating from a named macrostructure; [`references/assets.md`](references/assets.md) only when an enrichment needs an external asset; [`references/texture.md`](references/texture.md) only when the picked theme earns texture (Riso, Carnival, Arcade, faint Newsprint) or a custom draw has print lineage; [`references/scroll-choreography.md`](references/scroll-choreography.md) only when the brief asks for scroll story / cinematic pacing or the macro is Feature-stack / Narrative Workflow; [`references/dark-mode.md`](references/dark-mode.md) only when the user asks for both modes; [`references/data-viz.md`](references/data-viz.md) when the brief involves charts / data / dashboards or the macro is Stat-Led / Workbench; [`references/brand-truth.md`](references/brand-truth.md) when the brief names a real brand or company to build for; [`references/custom-theme.md`](references/custom-theme.md) only on the custom route; [`references/design-md.md`](references/design-md.md) only when the user asks to lock the system; [`references/preview-examples.md`](references/preview-examples.md) only if the Step 5 spec is not scaffolding enough.
diff --git a/skills/hallmark/references/finish.md b/skills/hallmark/references/finish.md
new file mode 100644
index 0000000..441c19b
--- /dev/null
+++ b/skills/hallmark/references/finish.md
@@ -0,0 +1,68 @@
+# Finish - the last 2% that separates set from generated
+
+Loaded on every build, with the universal set. These are the micro-decisions a good design engineer makes without thinking and a model skips without noticing. Most are mechanically checked by sloplint's F-tier (F1-F9); an F finding is polish feedback, never counted in the 58 gates.
+
+## Type finish
+
+- **Heading measure rides ON the element** (never the wrapper), in `ch`, by size. Body keeps its 45-75ch envelope; headings tighten as they grow:
+
+ | Size | max-width |
+ | --- | --- |
+ | `--text-display` | ~20ch |
+ | `--text-display-s` | ~24ch |
+ | `--text-4xl` | ~30ch |
+ | `--text-3xl` | ~35ch |
+ | `--text-2xl` | ~40ch |
+ | `--text-xl` | ~45ch |
+
+- **`text-wrap: balance` on headings, `text-wrap: pretty` on ledes and body.** A ragged two-word orphan under a display head is a tell. (F3)
+- **Punctuation is typeset**: curly quotes and apostrophes, a true `…` never `...`, a non-breaking space inside unit and key pairs (`10 MB`, `⌘ K`, `v1.2`), and `font-variant-numeric: tabular-nums` wherever numbers compare or column (stats, prices, tables, counters). (F1, F2, F6)
+- **Hanging punctuation on pull-quotes**: the opening quote hangs into the margin so the text edge stays optically flush:
+
+ ```css
+ .quote p::before { content: "\201C"; position: absolute; transform: translateX(-100%); }
+ .quote p { position: relative; }
+ ```
+
+## Control finish
+
+- **One filled primary per page.** Exactly one button style carries the fill (accent or ink); secondaries are outlined or typographic and never higher-contrast than the primary; a repeated filled primary dilutes the ask. (F4)
+- **Button height budget**: marketing CTAs 44-52px visual height. App-UI and component scope may run 32-40px visual ONLY with the hit-target expansion recipe from interaction-and-states.md (the `::before` inset trick keeps the logical target >= 44px; the coarse-pointer 48px rule stands). Max TWO button sizes per page, at least 6px apart; input height locks to button height.
+- **Icon discipline**: one consistent icon set per page, never freestyle hand-drawn SVG icons; render at the set's natural grid (a 24-viewBox icon at 24px, never scaled to 19px); never wrapped in decorative coloured circles or squares (F5); beside multi-line text, align to the FIRST line (`align-items: start`), not center.
+
+## Surface finish
+
+- **Concentric radii**: a rounded child inside a padded rounded parent takes `inner = outer - padding`:
+
+ ```css
+ .card { border-radius: var(--radius-card); padding: var(--space-md); }
+ .card > img { border-radius: calc(var(--radius-card) - var(--space-md)); }
+ ```
+
+ Equal nested radii read as a die-cut mistake; clamp at >= 2px.
+- The escalation ladder governs what earns a card at all: layout-and-space.md § Surfaces. (F7 flags one recipe stamped everywhere.)
+
+## Responsive finish - mobile runs larger
+
+The counterintuitive idiom models never guess: on mobile, BODY-adjacent UI renders LARGER and steps DOWN at the 60rem breakpoint. Thumbs and held-closer screens want bigger targets and bigger labels; density is a desktop luxury.
+
+```css
+.meta, .nav a, .btn { font-size: 1rem; } /* mobile base */
+.checkbox { width: 1.25rem; height: 1.25rem; }
+@media (min-width: 60rem) {
+ .meta, .nav a, .btn { font-size: 0.875rem; } /* desktop tightens */
+ .checkbox { width: 1rem; height: 1rem; }
+}
+```
+
+Display headings are exempt (their `clamp()` already scales the other way); body copy never drops below 16px on mobile.
+
+## Motion finish
+
+- **Exits run 60-75% of their enter** (a 300ms enter pairs with a ~200ms exit, never the reverse).
+- **Stagger bands**: 30-50ms between small rows (menu items, list rows), 60-100ms between content blocks; total stagger <= 500ms; one-shot, never re-fired on scroll.
+- Enters take `--ease-out`, exits take `--ease-in` - already law in motion.md; restated here only because it is the single most-reversed pair in generated CSS.
+
+## The bar
+
+None of this is decoration; every rule here is the difference between a page that was set and a page that was emitted. When an F finding fires at Step 7, fix it or dismiss it with a reason; never ship it unread.
diff --git a/skills/hallmark/references/motion.md b/skills/hallmark/references/motion.md
index 42d7011..c219536 100644
--- a/skills/hallmark/references/motion.md
+++ b/skills/hallmark/references/motion.md
@@ -36,7 +36,7 @@ Use these three. Name them as tokens.
}
```
-Exits use roughly 75% of the enter:
+Exits use 60-75% of the enter:
```css
.menu.is-open { transition: transform var(--dur-short) var(--ease-out); }
diff --git a/skills/hallmark/references/responsive.md b/skills/hallmark/references/responsive.md
index c0bd068..1809071 100644
--- a/skills/hallmark/references/responsive.md
+++ b/skills/hallmark/references/responsive.md
@@ -54,7 +54,7 @@ h1 { font-size: clamp(2.5rem, 4vw + 1rem, 6rem); }
}
```
-Never build a mouse-hover interaction that has no touch equivalent.
+Never build a mouse-hover interaction that has no touch equivalent. And the sizing direction models never guess: body-adjacent UI runs LARGER on mobile and tightens at 60rem (finish.md § Responsive finish).
## Clickable text — never wraps
diff --git a/skills/hallmark/references/typography.md b/skills/hallmark/references/typography.md
index 80d4165..a001237 100644
--- a/skills/hallmark/references/typography.md
+++ b/skills/hallmark/references/typography.md
@@ -205,6 +205,19 @@ Count characters in the rendered hero `h1`. Pick the cap by bucket — the rule
Use no more than five sizes on a single page. If you need more hierarchy, use weight and colour, not another size.
+### Heading measure by size
+
+Max-width rides ON the heading element (never the wrapper), in `ch`; body keeps the 45-75ch envelope above:
+
+| Size | max-width |
+| --- | --- |
+| `--text-display` | ~20ch |
+| `--text-display-s` | ~24ch |
+| `--text-4xl` | ~30ch |
+| `--text-3xl` | ~35ch |
+| `--text-2xl` | ~40ch |
+| `--text-xl` | ~45ch |
+
## Weights
- Body: one weight (typically 400 or 350). Bold for emphasis only.