Skip to content

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

CSS

Custom draws seed from the brief, and small rules stop tripping good pages

Youssefff273fbd472d
diff --git a/skills/hallmark/references/direction.md b/skills/hallmark/references/direction.md
index 62e6a59..5832927 100644
--- a/skills/hallmark/references/direction.md
+++ b/skills/hallmark/references/direction.md
@@ -25,7 +25,7 @@ The catalog's own coordinates are spent as well: `node <skill-dir>/scripts/theme
**R.4 The draw and the challengers.** The model never hand-picks from its own slate. Run:
```
-node <skill-dir>/scripts/seed.mjs "<brief-slug>" --n 7
+node <skill-dir>/scripts/seed.mjs --brief "<the brief, as the user wrote it>" --n 7
```
It prints a reproducible line (`draw: n/7 (seed <slug>·<date>·r0) · challengers: <a> · <b> · <c>`) and deals three challengers from `scripts/atlas.json`, one from each tier (a graphic system, an instrument language, an atmosphere world), each with a five-line system grammar and one named browser technique. Judge each against the drawn entry on exactly two axes, audience identification and product clarity, one written line per challenger ending in **wins** (it replaces the drawn entry), **competitive** or **declined**. A winning challenger supplies the form and its grammar; the product supplies every fact, name and claim; clarity wins every conflict. A losing challenger still donates: the strongest loser names the one discipline the drawn direction lacks, and the direction is raised to match (*raise: the mixing desk's per-function control colouring, on the pricing tiers*). Every custom run ships a winning challenger or one named raise. Re-roll only when the user asks (`--reroll 1`). Without Node: N = letter count of the brief mod 7, entry N + 1, printed so it is reproducible; skip challengers; stamp `seed: fallback-<letters>·<date>·r<n>`.
diff --git a/skills/hallmark/references/fonts.md b/skills/hallmark/references/fonts.md
index c13d717..29a525c 100644
--- a/skills/hallmark/references/fonts.md
+++ b/skills/hallmark/references/fonts.md
@@ -26,7 +26,7 @@ Every model reaches for these first, so they read as unchosen: Inter, Roboto, Op
| --- | --- |
| Roman serif | EB Garamond, Cardo, Castoro, Piazzolla, Alegreya, Marcellus (Google); Gambetta, Recia (Fontshare) |
| High-contrast serif | Gloock, Libre Bodoni, Abril Fatface, Rozha One, Besley (Google); Boska, Melodrama (Fontshare) |
-| Slab serif | Arvo, Hepta Slab, Domine, Alfa Slab One, Solway (Google); Bespoke Slab (Fontshare) |
+| Slab serif | Arvo, Hepta Slab, Domine, Alfa Slab One, Solway (Google); Bespoke Slab (Fontshare; old-style figures that ignore `lining-nums`, so figures go in the body face) |
| Grotesk sans | Mona Sans, Hubot Sans, Gabarito, Rethink Sans, Reddit Sans, Wix Madefor Display (Google); Cabinet Grotesk, Clash Grotesk, Supreme (Fontshare) |
| Geometric sans | Lexend, Geologica, League Spartan, Funnel Display, Afacad (Google); Satoshi, Ranade, Technor, Excon (Fontshare) |
| Rounded sans | Inclusive Sans, Nunito Sans at 700 only with an argument, Varela Round (Google); Chubbo, Comico (Fontshare) |
diff --git a/skills/hallmark/references/gates.md b/skills/hallmark/references/gates.md
index 594637e..ea3bcf7 100644
--- a/skills/hallmark/references/gates.md
+++ b/skills/hallmark/references/gates.md
@@ -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 below the hero, more than one radius per nesting level, or more centred heading groups than left-aligned ones · F16 browser surfaces unthemed: no `::selection`, no `caret-color`, no `scrollbar-color` on a page with a committed palette. · F17 a text block squeezed into a sliver at 1440 (under about 16 characters wide over four lines or more), usually a grid placement gone wide (render).
+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 0.25em · F12 a flex row of unequal heights without `align-items: center` · F13 the outlier face carrying more than one role · F14 a helper-text slot with no reserved `min-height: 1lh` · F15 page invariants broken: more than one primary button style, more than one container width, more than one column gap below the hero, more than one radius per nesting level, or more centred heading groups than left-aligned ones · F16 browser surfaces unthemed: no `::selection`, no `caret-color`, no `scrollbar-color` on a page with a committed palette. · F17 a text block squeezed into a sliver at 1440 (under about 16 characters wide over four lines or more), usually a grid placement gone wide (render).
## 5. Judged clauses
diff --git a/skills/hallmark/references/macrostructures/07-manifesto.md b/skills/hallmark/references/macrostructures/07-manifesto.md
index 79b95a9..15e260c 100644
--- a/skills/hallmark/references/macrostructures/07-manifesto.md
+++ b/skills/hallmark/references/macrostructures/07-manifesto.md
@@ -11,7 +11,7 @@ Polemical large type. The page tells the reader what to believe before it tells
Reach for it for repositioning announcements, mission-led indie products, a studio's beliefs page.
-Avoid for transactional pages. Manifesto sells agreement, not action.
+Avoid for checkout, pricing or a product tour. Manifesto sells agreement; a call to show up, sign or join is its one action.
```html
<section class="manifesto bleed-ink">
diff --git a/skills/hallmark/scripts/seed.mjs b/skills/hallmark/scripts/seed.mjs
index ebf76bd..542e8bc 100644
--- a/skills/hallmark/scripts/seed.mjs
+++ b/skills/hallmark/scripts/seed.mjs
@@ -22,16 +22,19 @@ function fnv1a(str) {
}
const args = process.argv.slice(2);
-if (args.length === 0 || args[0].startsWith('--')) {
- console.error('usage: node seed.mjs "<brief-slug>" [--n 7] [--reroll 0] [--wild 3] [--atlas <path>]');
- process.exit(2);
-}
-
-const slug = args[0].toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
const flag = (name, dflt) => {
const i = args.indexOf(`--${name}`);
return i !== -1 && args[i + 1] !== undefined ? args[i + 1] : dflt;
};
+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 briefFlag = flag('brief', null);
+if (!briefFlag && (args.length === 0 || args[0].startsWith('--'))) {
+ console.error('usage: node seed.mjs --brief "<the brief>" [--n 7] [--reroll 0] [--wild 3] [--atlas <path>]');
+ process.exit(2);
+}
+const slug = briefFlag
+ ? briefFlag.toLowerCase().replace(/[^a-z0-9\s-]/g, ' ').split(/\s+/).filter((w) => w.length > 2 && !ASK.has(w)).slice(0, 4).join('-') || 'brief'
+ : args[0].toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
const n = Math.max(2, parseInt(flag('n', '7'), 10) || 7);
const reroll = Math.max(0, parseInt(flag('reroll', '0'), 10) || 0);
diff --git a/skills/hallmark/scripts/sloplint-render.mjs b/skills/hallmark/scripts/sloplint-render.mjs
index 3a6495d..357d660 100644
--- a/skills/hallmark/scripts/sloplint-render.mjs
+++ b/skills/hallmark/scripts/sloplint-render.mjs
@@ -215,7 +215,15 @@ function observe(checkFold, meta) {
const out = [];
for (let node = el; node && node !== document.documentElement; node = node.parentElement) {
const cs2 = getComputedStyle(node);
- if (/gradient/.test(cs2.backgroundImage)) for (const m of cs2.backgroundImage.matchAll(/(?:oklch|oklab|lab|lch|rgba?|hsla?|color)\([^()]*\)|#[0-9a-fA-F]{3,8}\b/g)) out.push(over(toRgb(m[0]), base));
+ if (/gradient/.test(cs2.backgroundImage)) {
+ const layers = []; let depth = 0, cur = '';
+ for (const ch of cs2.backgroundImage) { if (ch === '(') depth++; if (ch === ')') depth--; if (ch === ',' && depth === 0) { layers.push(cur); cur = ''; } else cur += ch; }
+ layers.push(cur);
+ for (const layer of layers) {
+ if (!/^\s*(linear|radial|conic)-gradient/.test(layer) || /[\s,(]\d(?:\.\d+)?px\b/.test(layer)) continue;
+ for (const m of layer.matchAll(/(?:oklch|oklab|lab|lch|rgba?|hsla?|color)\([^()]*\)|#[0-9a-fA-F]{3,8}\b/g)) out.push(over(toRgb(m[0]), base));
+ }
+ }
const c = parse(cs2.backgroundColor);
if (c && c.a >= 0.9) break;
}