diff --git a/CHANGELOG.md b/CHANGELOG.md index 8be44e6..9e52443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.8.0 + +Driven by the verdicts "good but replaceable" and "nothing sets this apart". The craft floor was solid; the weak point was that pages were their own skeleton and nothing else. The skill now makes an agent decide what is ownable before it builds, and gives it grounds and artwork that are not the default. + +- **A concept step** inside step 3 (the run is still nine steps): the product's native artifact and its moment of value, the first screen described without the category word, and one signature (an artwork or an interaction) with everything else calm, written as three lines. The report and the log carry it. +- **The swap-the-name test** (`scripts/swap.mjs`, and a required one-line answer at the gate). With the product name removed, does the first screen still use the nouns of the product's own subject, and does its artwork name them? It refuses nouns that fit any product. It checks that, and only that: a pass is not a verdict on the picture, which is why the gate also asks for a sentence. +- **First-class grounds.** The soft grainy gradient is now described, everywhere it is taught, as the default of machine-built pages that needs a reason in the concept. `scaffold --ground flat` (one saturated colour: `--palette cobalt`, `mint` or `sand`) and `--ground frame` (a dark rounded panel set into the page) are built, tested and sit beside it in a choose-the-ground table in `directions.md`. +- **A card hero** (`--hero card`): a centred headline, then the product card cropped by the bottom of the first screen, with a thin traced diagram behind it and annotation chips with pointer arrows on it. +- **Duotone prints with no photograph** (`assets/recipes/duotone.mjs`): five computed subjects (column, vase, sphere, drape, strata) as a halftone, an engraving or a dither in two colours, or your own field. `scaffold --art` puts one in the split hero as a stand-in; `dotify.mjs --mode lines` engraves any picture. One subject drawn in testing (hills) read as a flat slab and was dropped. +- **Annotation and headline helpers** (`annotate.mjs`, `headline.mjs`): chips, a connecting-line diagram, a lighter-tint word inside a headline, and big figures with grey decimals. +- **Tracking follows size.** The starter set -0.055em on a 48 px phone headline, while `house-rules.md` said -0.02em from 40 px and `landing-craft.md` said -0.04 to -0.06em. `evals/tracking.mjs` now measures real letter gaps in Chrome, and the guidance is one table by size. Both numbers were right at their own size. Instrument Serif takes no tightening at all. The starter steps its tracking by width, and a test holds it to the measurement at six widths (it fails on the old CSS). +- **Round 6, and what it found.** `evals/mask.mjs` renders a page with the product name masked (and, optionally, the text blurred) for blind judging; briefs 13 (a product with an obvious native artifact) and 14 (a dull one). Two judge agents compared the skilled and baseline pages for three products. The skilled pages won on the mechanical checks (89 against 43 mean) and **lost on distinctiveness in all six judgements**: the three skilled pages shared one frame (pill nav, sand hero, steps, price band), while the baselines carried the product's own material through the whole page. `swap.mjs` passes every page, so it does not catch that. The write-up (`evals/results/2026-11-25-r6.md`) lists the limits and what to change next; none of those changes is in this release. +- **Fixes from the builders' reports.** `shoot.mjs --full` scrolls the page through first, so scroll-revealed sections are in the picture. `swap.mjs` counts a framed box built from HTML as artwork (it first failed two baselines whose picture was HTML). `direction.md` says its concept example is an example, because three of three agents copied its ground. `landing-craft.md` notes that the starter's mobile rules are overridden by a later rule with the same selector. + ## 0.7.0 - **The website is rebuilt on the skill's own landing starter** and set in a type system (five working sizes, four display sizes, roles not sizes). It ships the same motion kit, fonts and lit ground it teaches, and passes `signs`, `check` and `craft` at all four widths. diff --git a/README.md b/README.md index 1a89687..79c1203 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,11 @@ node scripts/scaffold.mjs my-app --kind app --theme dark | **Landing page** | A lit grainient ground, a floating nav, a product frame, an uneven bento, steps, one big number, a closing call and a footer. The motion kit is wired in: ordered entrance, scroll reveals, count-up, and a hover and press state on every control. | | **App screen** (`--kind app`) | A sidebar that becomes a menu on a phone, a page header with one primary action, four key numbers, one chart, a table whose status is a word and a dot, and an empty state that says what to do. | -Seven grounds are built in (`--shape pools`, `horizon`, `bowl`, `blob`, `sweep`, `rays` or `contour`). Add `--hero split` to put the headline beside the one object only your product has, or `--minimal` for a short brief with few facts. Every placeholder is marked `data-todo`, and `signs.mjs` reports any left, so unfinished copy cannot ship. +Seven lit grounds are built in (`--shape pools`, `horizon`, `bowl`, `blob`, `sweep`, `rays` or `contour`). The soft grainy gradient is also what most machine-built pages reach for now, so there are first-class alternatives: `--ground flat` (one saturated colour, `--palette cobalt`, `mint` or `sand`) and `--ground frame` (a dark rounded panel set into the page). `--hero split` puts the headline beside the one object only your product has, and `--art column` (or `vase`, `sphere`, `drape`, `strata`) fills it with a duotone print as a stand-in. `--hero card` centres the headline and crops the product card at the fold, with a traced diagram behind it and annotation chips on it. `--minimal` is for a short brief with few facts. + +```bash +node scripts/scaffold.mjs my-page --ground flat --palette cobalt --hero card +``` Every placeholder is marked `data-todo`, and `signs.mjs` reports any left, so unfinished copy cannot ship. ## The tools @@ -146,10 +150,10 @@ Plain Node scripts with no dependencies. The agent runs them for you, and you ca | `scripts/signs.mjs ` | Finds tells in the rendered page: hue gradients, glows, emoji, hype words, unverified claims, looping animation and more. | `--allow` licenses a device your committed direction uses on purpose | | `scripts/check.mjs ` | Reads WCAG contrast from the rendered pixels, so gradients, images and pseudo-element backgrounds are judged too. Also checks touch targets, small text, missing names, focus styles, layout shift and document basics. | `--widths` | | `scripts/craft.mjs ` | Hovers every control with a real pointer and diffs the result, so a control that ignores the pointer is caught, not missed. Also flags layout-property transitions and motion that ignores the reduced-motion setting. | `--shots` writes a rest and hover crop per control | -| `scripts/scaffold.mjs ` | Starts a landing page or an app screen from a tested starter. | `--kind`, `--theme`, `--palette`, `--shape`, `--hero`, `--minimal` | +| `scripts/scaffold.mjs ` | Starts a landing page or an app screen from a tested starter. | `--kind`, `--theme`, `--palette`, `--shape`, `--ground`, `--hero`, `--art`, `--minimal` | | `scripts/inline.mjs ` | Folds a finished page, with its styles, script and fonts, into one file you can send. | `--out page.html` | | `scripts/lib-add.mjs add ` | Pulls real source from Bencho, BoardUI, Aceternity or any shadcn registry. Files only, with the licence notice. | `--dry-run`, `--out` | -| `scripts/dotify.mjs ` | Turns a picture or drawn SVG into dithered, halftone, hex-dot or ASCII art for a hero object. | `--invert` | +| `scripts/dotify.mjs ` | Turns a picture or drawn SVG into dithered, halftone, hex-dot, engraved-line or ASCII art for a hero object. | `--mode`, `--invert`, `--fill`, `--bg` | | `scripts/swap.mjs ` | The swap-the-name test. With the product name removed, does the first screen still use the nouns of the product's own subject, and does its artwork name them? It catches a page where only the skeleton is the product's own. It cannot judge the picture. | `--nouns`, `--name`, `--typographic` | | `scripts/score.mjs ` | Runs every check and prints one score out of 100, with what cost points. | | | `scripts/term-shot.mjs -- ` | Runs a terminal program at a set width in a real pseudo-terminal and captures its text and an image. | | @@ -180,9 +184,9 @@ references/ assets/motion/ the motion kit: entrance, reveal, count-up, magnetic, tilt, spotlight, marquee, draw, sweep buttons assets/starters/ the landing and app starters, tested in a browser assets/fonts/ Geist, Geist Mono and Instrument Serif under the Open Font Licence -assets/recipes/ tested generators and kits: grounds, contours, stones, vessels, dither, halftone, HUD callouts, isometric art +assets/recipes/ tested generators and kits: grounds, flat colour tones, duotone prints, annotation chips and diagrams, headline helpers, contours, stones, vessels, dither, halftone, HUD callouts, isometric art scripts/ the measuring and building tools above -evals/ briefs, scoring and the write-up of every test round +evals/ briefs, scoring, a tracking measurement and the write-up of every test round examples/ real before and after runs ``` @@ -192,7 +196,9 @@ Each brief was built twice by the same model, once with no skill and once with i Across the first three rounds the skill won 9 of 12 comparisons, with a mean mechanical score of 96 against 62. On a later plain brief that never mentioned how it would be judged, the motion and hover score was 75 with the skill and 31 without. -The limits are real: one reviewer, a round that was not blind, and both sides on the same model. The skill lost two comparisons in the first round, because it made clean pages where the other side drew something memorable. The guide and recipes for that one rich moment came from those losses. [Read all five rounds.](evals/results) +In round 6 the comparison was blind, with the product name masked and two judge agents, and it went the other way on distinctiveness: the skilled pages scored 89 against 43 on the mechanical checks, but the judges found the baseline pages more ownable and more memorable in all six comparisons, because the three skilled pages shared one frame. The write-up says what that means and what to change. + +The limits are real: one reviewer in the early rounds, a round that was not blind, and both sides on the same model. The skill lost two comparisons in the first round, because it made clean pages where the other side drew something memorable. The guide and recipes for that one rich moment came from those losses. [Read all six rounds.](evals/results) ## Questions diff --git a/SKILL.md b/SKILL.md index e0773d6..a188c28 100644 --- a/SKILL.md +++ b/SKILL.md @@ -34,7 +34,7 @@ One fixed run for every request. Do the steps in order. Each step names the file | 8 | **Report** | Short, plain, honest about what is left | [references/report.md](references/report.md) | | 9 | **Log** | Project lessons into the project; skill lessons proposed, never self-applied | [references/lessons.md](references/lessons.md) | -Also load, as the work needs them: the surface file for the mode ([web-app](references/surfaces/web-app.md), [landing](references/surfaces/landing.md), [reading](references/surfaces/reading.md), [showpiece](references/surfaces/showpiece.md), [terminal](references/surfaces/terminal.md), [iOS](references/surfaces/native-ios.md), [Android](references/surfaces/native-android.md)); [house-rules.md](references/house-rules.md) for default numbers; [anti-slop.md](references/anti-slop.md) for the tells to remove; [libraries.md](references/libraries.md) before adding any outside component, kit or library; [principles.md](references/principles.md) for the reason under every rule, when a case is not covered; [visual-craft.md](references/visual-craft.md) for the one rich moment on a new screen; [landing-craft.md](references/landing-craft.md) for why the best landing pages work and which kit piece builds each decision; [directions.md](references/directions.md) for committed looks and the hero object pipeline; [devices.md](references/devices.md) for the structural moves that make a page memorable, each with the reason it works; [materials.md](references/materials.md) for surface, light and grain; [hover.md](references/hover.md) for hover and press states. +Also load, as the work needs them: the surface file for the mode ([web-app](references/surfaces/web-app.md), [landing](references/surfaces/landing.md), [reading](references/surfaces/reading.md), [showpiece](references/surfaces/showpiece.md), [terminal](references/surfaces/terminal.md), [iOS](references/surfaces/native-ios.md), [Android](references/surfaces/native-android.md)); [house-rules.md](references/house-rules.md) for default numbers; [anti-slop.md](references/anti-slop.md) for the tells to remove; [libraries.md](references/libraries.md) before adding any outside component, kit or library; [principles.md](references/principles.md) for the reason under every rule, when a case is not covered; [visual-craft.md](references/visual-craft.md) for the one rich moment on a new screen; [landing-craft.md](references/landing-craft.md) for why the best landing pages work and which kit piece builds each decision; [directions.md](references/directions.md) for committed looks, choosing the ground (lit, flat, frame, duotone) and the hero object pipeline; [devices.md](references/devices.md) for the structural moves that make a page memorable, each with the reason it works; [materials.md](references/materials.md) for surface, light and grain; [hover.md](references/hover.md) for hover and press states. ## Rules that always hold @@ -61,10 +61,10 @@ Plain Node 22+ scripts in `scripts/`, no installs, using the Chrome on the machi | `scripts/drift.mjs --save before.json` | Counts font sizes, weights, radii, colours, spacing in use; later `--against before.json` | | `scripts/signs.mjs [--allow "Tell"]` | Finds machine-made tells in the rendered page; `--allow` licenses devices a committed direction uses on purpose | | `scripts/check.mjs ` | Contrast, touch-target size, small text, missing names | -| `scripts/scaffold.mjs --theme dark --palette midnight` | Starts a landing page from a complete, tested starter: lit grainient ground, floating nav, product frame, bento, steps, closing call, footer, with the motion kit and open fonts wired in. Replace every `data-todo`; `signs.mjs` reports any left. `--minimal` drops the optional sections for a short brief. `--kind app` starts an app screen instead: sidebar, header, key numbers, chart, table and empty state, tested the same way. `inline.mjs --out page.html` folds the result into one file | +| `scripts/scaffold.mjs --theme dark --palette midnight` | Starts a landing page from a complete, tested starter: lit grainient ground, floating nav, product frame, bento, steps, closing call, footer, with the motion kit and open fonts wired in. Replace every `data-todo`; `signs.mjs` reports any left. `--minimal` drops the optional sections for a short brief. The lit gradient is the default of machine-built pages, so choose the ground on purpose: `--ground flat --palette cobalt|mint|sand` or `--ground frame` are first-class; `--hero card` crops the product card at the fold with a traced diagram and annotation chips; `--art column|vase|sphere|drape|strata` puts a duotone print in the split hero (a stand-in for the product's own artifact). `--kind app` starts an app screen instead: sidebar, header, key numbers, chart, table and empty state, tested the same way. `inline.mjs --out page.html` folds the result into one file | | `scripts/lib-add.mjs add bencho ` | Pulls real source from Bencho, BoardUI, Aceternity or any shadcn registry (files only, with a licence notice and the packages to install). See `libraries.md` | | `scripts/craft.mjs [--shots dir]` | Hovers every control with a real pointer and diffs both the computed style and the pixels, so a control that ignores the pointer, or answers it invisibly, is caught; also flags transitions on layout properties and motion that ignores the reduced-motion setting | -| `scripts/dotify.mjs --mode hex` | Turns any picture or drawn SVG into dithered, halftone, hex-dot or ASCII art for a hero object | +| `scripts/dotify.mjs --mode hex` | Turns any picture or drawn SVG into dithered, halftone, hex-dot, engraved-line or ASCII art for a hero object; `--fill` and `--bg` make it a two-colour duotone | | `scripts/swap.mjs --nouns "clause,redline" --name Marrow` | The swap-the-name test: with the product name removed, does the first screen still use the product's own nouns, and does its artwork name the artifact? Refuses nouns that fit any product. Catches a page where only the skeleton is owned | | `scripts/score.mjs ` | Runs every check and prints one score out of 100 | | `scripts/term-shot.mjs -- ` | Runs a terminal command at a given width and captures text and image (needs Python 3) | diff --git a/assets/recipes/annotate.mjs b/assets/recipes/annotate.mjs index 3611375..cd6b8bd 100644 --- a/assets/recipes/annotate.mjs +++ b/assets/recipes/annotate.mjs @@ -4,7 +4,7 @@ // // import { chip, heroDiagram, annotationCss } from './annotate.mjs'; // chip({ label: 'Clause 4.2 deviates', x: 8, y: 30, pointer: 'br' }) // HTML, positioned in % of its parent -// heroDiagram({ width: 1200, height: 520, card: { x: 230, y: 250, w: 740 }, seed: 2 }) // an SVG string +// heroDiagram({ width: 1200, height: 520, card: { x: 200, y: 250, w: 800 }, seed: 2 }) // an SVG string // // Rules that keep it honest (references/directions.md, "Annotations"): a chip points at something real in the // picture, says one thing in plain words, and never claims a number the product cannot back. Three chips at most. @@ -69,18 +69,17 @@ export function elbow([x1, y1], [x2, y2], { first = 'h', radius = 14 } = {}) { return roundedPolyline([[x1, y1], [x2, y1], [x2, y2]], radius); } -// A diagram that sits behind a card: nodes at the left, right and top, each joined to the card by a thin traced line. +// A diagram that sits behind a card: nodes at the left and right, each joined to the card by a thin traced line. // Seeded, so the same page always gets the same diagram. `card` is { x, y, w }: where the card's top edge is. // Every label is a placeholder (data-todo): replace each with the name of one of the product's own parts. -export function heroDiagram({ width = 1200, height = 520, card = { x: 230, y: 250, w: 740 }, seed = 1, stroke = 'var(--line-strong)', text = 'var(--ink-3)', labels } = {}) { +export function heroDiagram({ width = 1200, height = 520, card = { x: 200, y: 250, w: 800 }, seed = 1, stroke = 'var(--line-strong)', text = 'var(--ink-3)', labels } = {}) { const rand = rng(seed); - const names = labels ?? ['Part one', 'Part two', 'Part three', 'Part four', 'Part five']; + const names = labels ?? ['Part one', 'Part two', 'Part three', 'Part four']; const slots = [ { side: 'l', x: 36, y: 70 + rand() * 50, join: [card.x + card.w * 0.12, card.y], first: 'h' }, { side: 'l', x: 36, y: 200 + rand() * 40, join: [card.x, card.y + 56 + rand() * 30], first: 'hvh' }, { side: 'r', x: width - 36, y: 56 + rand() * 50, join: [card.x + card.w * 0.88, card.y], first: 'h' }, { side: 'r', x: width - 36, y: 190 + rand() * 50, join: [card.x + card.w, card.y + 56 + rand() * 30], first: 'hvh' }, - { side: 'l', x: card.x + card.w * 0.46, y: 30 + rand() * 20, join: [card.x + card.w * 0.5, card.y], first: 'v' }, ]; const paths = []; const nodes = []; diff --git a/assets/recipes/annotate.test.mjs b/assets/recipes/annotate.test.mjs index e7e10e5..7f3d3ef 100644 --- a/assets/recipes/annotate.test.mjs +++ b/assets/recipes/annotate.test.mjs @@ -41,13 +41,13 @@ test('the diagram is the same for a seed, decorative, flat, and every label is a assert.match(a, /aria-hidden="true"/); assert.doesNotMatch(a, /gradient|filter|animate/i); const texts = a.match(/]*>/g); - assert.equal(texts.length, 5); + assert.equal(texts.length, 4); for (const t of texts) assert.match(t, /data-todo/); assert.match(heroDiagram({ labels: ['Clause', 'Redline'] }), /Clause/); }); test('every line of the diagram stays inside the picture', () => { - const svg = heroDiagram({ width: 1200, height: 520, card: { x: 230, y: 250, w: 740 }, seed: 7 }); + const svg = heroDiagram({ width: 1200, height: 520, card: { x: 200, y: 250, w: 800 }, seed: 7 }); for (const d of svg.match(/ d="[^"]+"/g)) for (const [, x, y] of d.matchAll(/(-?\d+(?:\.\d)?) (-?\d+(?:\.\d)?)/g)) { assert.ok(Number(x) >= 0 && Number(x) <= 1200 && Number(y) >= 0 && Number(y) <= 520, `${x},${y}`); } diff --git a/assets/recipes/flat.mjs b/assets/recipes/flat.mjs index 9412d75..6f088e5 100644 --- a/assets/recipes/flat.mjs +++ b/assets/recipes/flat.mjs @@ -17,7 +17,7 @@ import { grainCss } from './mesh.mjs'; export const FLATS = { cobalt: { base: '#1f43d6', dark: true, ink: '#f6f4ee', ink2: '#e1e6fb', ink3: '#d3daf9', accent: '#f7d63a', onAccent: '#14120a', panel: '#0a1250', panelAccent: '#f7d63a' }, - mint: { base: '#8fe3bd', dark: false, ink: '#0b2e22', ink2: '#1d4a3a', ink3: '#2f5f4d', accent: '#0b5c3f', onAccent: '#ffffff', panel: '#0b2e22', panelAccent: '#8fe3bd' }, + mint: { base: '#8fe3bd', dark: false, ink: '#0b2e22', ink2: '#1d4a3a', ink3: '#245241', accent: '#0b5c3f', onAccent: '#ffffff', panel: '#0b2e22', panelAccent: '#8fe3bd' }, sand: { base: '#e8dfca', dark: false, ink: '#1a1914', ink2: '#3d3a31', ink3: '#5c574b', accent: '#a82e17', onAccent: '#ffffff', panel: '#1a1914', panelAccent: '#e9a98a' }, }; export const FLAT_NAMES = Object.keys(FLATS); @@ -88,7 +88,7 @@ export function flatThemeCss({ tone = 'cobalt' } = {}) { // The tokens re-pointed at the panel, so everything inside it (type, buttons, cards, lines) reads as dark-theme // without a second set of rules. The kit's buttons and the starter's type use these names only. -const PANEL_SCOPE = `--bg: var(--panel); --ink: var(--panel-ink); --ink-2: var(--panel-ink-2); --ink-3: var(--panel-ink-3); --line: var(--panel-line); --line-strong: var(--panel-strong); --surface: var(--panel-surface); --accent: var(--panel-accent); --on-accent: #0b0a0f; color-scheme: dark;`; +const PANEL_SCOPE = `--bg: var(--panel); --ink: var(--panel-ink); --ink-2: var(--panel-ink-2); --ink-3: var(--panel-ink-3); --line: var(--panel-line); --line-strong: var(--panel-strong); --surface: var(--panel-surface); --accent: var(--panel-accent); --on-accent: #0b0a0f; color: var(--ink); color-scheme: dark;`; export function flatGroundCss({ tone = 'cobalt', ground = 'flat', grain = 0.3 } = {}) { const f = FLATS[tone]; @@ -99,14 +99,15 @@ export function flatGroundCss({ tone = 'cobalt', ground = 'flat', grain = 0.3 } if (ground === 'frame') { return `${common} /* Frame: the page stays in the tone; the hero is a dark panel set in below the nav. */ -.hero { ${PANEL_SCOPE} margin-top: 5.25rem; min-height: min(100svh - 6rem, 60rem); background: var(--panel); } +.hero.is-frame { ${PANEL_SCOPE} margin-top: 5.25rem; min-height: min(100svh - 6rem, 60rem); background: var(--panel); } .closer { ${PANEL_SCOPE} background: var(--panel); } ${grained('.hero .ground::after, .closer .ground::after', true)} `; } return `${common} -/* Flat: the hero is the tone itself; the closing call is a darker panel of the same hue. */ +/* Flat: the hero is the tone itself; the product card and the closing call are darker panels of the same hue. */ .closer { ${PANEL_SCOPE} background: var(--panel); } +.hero-card .window { ${PANEL_SCOPE} background: var(--panel); border-color: var(--panel-strong); } ${grained('.hero .ground::after', f.dark)} ${grained('.closer .ground::after', true)} `; diff --git a/assets/recipes/flat.test.mjs b/assets/recipes/flat.test.mjs index dd58494..f7b7566 100644 --- a/assets/recipes/flat.test.mjs +++ b/assets/recipes/flat.test.mjs @@ -12,7 +12,8 @@ for (const tone of FLAT_NAMES) { test(`${tone}: every text colour passes on the ground and on the card, and so do the accent and the panel`, () => { const t = flatTokens(tone); for (const [name, c] of [['ink', t.ink], ['ink-2', t.ink2], ['ink-3', t.ink3]]) { - assert.ok(contrast(c, t.bg) >= 4.5, `${name} on the ground: ${contrast(c, t.bg).toFixed(2)}`); + const floor = name === 'ink-3' ? 5 : 4.5; // the lighter tint carries small text, and the grain darkens the ground a little + assert.ok(contrast(c, t.bg) >= floor, `${name} on the ground: ${contrast(c, t.bg).toFixed(2)}`); assert.ok(contrast(c, t.surfaceHex) >= 4.5, `${name} on the card: ${contrast(c, t.surfaceHex).toFixed(2)}`); } assert.ok(contrast(t.accent, t.bg) >= 4.5, `accent as text on the ground: ${contrast(t.accent, t.bg).toFixed(2)}`); @@ -36,8 +37,8 @@ test('the theme writes every token the starter uses, and the panel set', () => { test('flat keeps the hero in the tone and the closing call in the panel; frame puts the hero in the panel', () => { const flat = flatGroundCss({ tone: 'mint', ground: 'flat' }); assert.match(flat, /\.closer \{ --bg: var\(--panel\)/); - assert.doesNotMatch(flat, /\.hero \{/); + assert.doesNotMatch(flat, /\.hero\.is-frame/); const frame = flatGroundCss({ tone: 'sand', ground: 'frame' }); - assert.match(frame, /\.hero \{ --bg: var\(--panel\)/); + assert.match(frame, /\.hero\.is-frame \{ --bg: var\(--panel\)/); assert.match(frame, /margin-top: 5\.25rem/); }); diff --git a/assets/starters/landing/index.html b/assets/starters/landing/index.html index e1d360e..ef4b2ce 100644 --- a/assets/starters/landing/index.html +++ b/assets/starters/landing/index.html @@ -56,6 +56,7 @@

See it working +
120K+
A real figure
@@ -63,6 +64,7 @@

24h
A real figure

+ @@ -75,6 +77,31 @@

Replace with the object only this product has. Label anything drawn as an example.
+ +
+ + + +
+ diff --git a/assets/starters/landing/landing.css b/assets/starters/landing/landing.css index ca5dfff..f04b5f3 100644 --- a/assets/starters/landing/landing.css +++ b/assets/starters/landing/landing.css @@ -50,7 +50,10 @@ a { color: inherit; } @media (min-width: 48rem) { .display { letter-spacing: -0.04em; } } @media (min-width: 62rem) { .display { letter-spacing: -0.05em; } } @media (min-width: 80rem) { .display { letter-spacing: -0.055em; } } -.display .dim { color: var(--ink-3); } +.display .dim, .h2 .dim, .dim { color: var(--ink-3); } +/* Figures: tabular digits, with the decimals set back (assets/recipes/headline.mjs writes this markup). */ +.num { font-variant-numeric: tabular-nums; } +.dec { color: var(--ink-3); } .hero-main { display: grid; gap: 2.5rem; } .hero-object { display: none; margin: 0; } .hero-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: end; } @@ -72,6 +75,37 @@ a { color: inherit; } .hero-in.split .stats { justify-content: flex-start; } @media (max-width: 62rem) { .hero-in.split { grid-template-columns: 1fr; } .hero-in.split .hero-object { order: -1; aspect-ratio: 16 / 10; max-width: 28rem; padding: 1rem; } .hero-in.split .hero-object { display: flex; flex-direction: column; gap: .5rem; } .hero-in.split .hero-object svg { flex: 1; min-height: 0; } .hero-in.split .hero-object figcaption { position: static; } } +/* Card hero (scaffold --hero card): a centred headline, then the product card cropped by the bottom of the first screen, + with a thin traced diagram behind it and annotation chips on it. The hero is one screen tall and clips the card. */ +.hero.has-card { align-items: flex-start; height: min(100svh - 1.5rem, 62rem); min-height: 40rem; } +.hero-in.card { padding: 8rem 0 0; justify-items: center; text-align: center; gap: 2.5rem; } +.hero-in.card .hero-main { justify-items: center; gap: 1.75rem; } +.hero-in.card .display { max-width: 15ch; margin-inline: auto; font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -0.03em; } +@media (min-width: 64rem) { .hero-in.card .display { letter-spacing: -0.035em; } } +@media (min-width: 80rem) { .hero-in.card .display { letter-spacing: -0.045em; } } +@media (min-width: 96rem) { .hero-in.card .display { letter-spacing: -0.05em; } } +.hero-in.card .hero-foot { grid-template-columns: 1fr; justify-items: center; gap: 0; } +.hero-in.card .lede { margin-inline: auto; margin-bottom: 1.5rem; } +.hero-in.card .actions { justify-content: center; } +.hero-card { position: relative; width: min(100%, 56rem); } +.hero-card .window { position: relative; z-index: 1; } +.hero-card .diagram { position: absolute; z-index: 0; left: -25%; top: 0; width: 150%; max-width: none; height: auto; transform: translateY(-48.08%); pointer-events: none; overflow: visible; } +.hero-card .window-body { min-height: 24rem; } +@media (max-width: 62rem) { .hero-card .diagram { display: none; } } +@media (max-width: 40rem) { .hero.has-card { height: min(100svh - 1rem, 56rem); } .hero-in.card { padding-top: 7rem; gap: 2rem; } } + +/* A duotone print in the split hero's object slot (scaffold --art): the picture is the whole plate. */ +.hero-in.split .hero-object.is-art { padding: 0; overflow: hidden; display: flex; flex-direction: column; aspect-ratio: 4 / 5; background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; } +.hero-in.split .hero-object.is-art svg { flex: 1; min-height: 0; width: 100%; height: 100%; } +.hero-in.split .hero-object.is-art figcaption { position: static; margin: 0; padding: 0.75rem 1.25rem 1rem; background: var(--ink); color: var(--bg); } +@media (max-width: 62rem) { .hero-in.split .hero-object.is-art { aspect-ratio: 4 / 3; max-width: 28rem; padding: 0; } } + +/* Split hero tracking follows its own, smaller size (evals/tracking.mjs). */ +.hero-in.split .display { letter-spacing: -0.03em; } +@media (min-width: 62rem) { .hero-in.split .display { letter-spacing: -0.04em; } } +@media (min-width: 80rem) { .hero-in.split .display { letter-spacing: -0.05em; } } +@media (min-width: 96rem) { .hero-in.split .display { letter-spacing: -0.055em; } } + /* ---------- Sections ---------- */ .section { padding: clamp(5rem, 11vw, 9rem) 0 0; } .eyebrow { display: inline-flex; align-items: center; gap: 0.625rem; margin: 0 0 1.25rem; font: 400 0.8125rem/1 var(--mono); color: var(--ink-3); letter-spacing: 0.02em; } diff --git a/evals/README.md b/evals/README.md index 0fbcbec..9017e0a 100644 --- a/evals/README.md +++ b/evals/README.md @@ -55,6 +55,10 @@ A page's visual score is the sum (out of 50). Judge blind where possible: shuffl 4. Write the round in `results/YYYY-MM-DD-rN.md`: scores per brief and arm, what the skilled arm still did badly, what in the skill caused it, and the edits made. 5. Re-run the briefs where the skill changed. +## Judging distinctiveness blind + +`mask.mjs --name --out dir --label A` renders a page with the product name removed from its text, labels and title (add `--blur-text` to blur every word, so a judge sees only composition, ground and artwork). Give a fresh judge agent, one that built neither page, the masked shots of both arms with a plain description of the product, and ask which page could more easily belong to a different product, which is more memorable, and for an ownability score from 1 to 5. Randomise A and B for each judge, keep the key outside the folder the judge can read, and run more than one judge. `tracking.mjs` measures how tight display type can be set before letters touch. + ## Why two arms Without the baseline you cannot tell whether the skill helped or the model is simply good. Without the skilled arm's own report you cannot tell why it fell short. Both are needed to improve the skill rather than admire it. diff --git a/evals/briefs/13-native-artifact.md b/evals/briefs/13-native-artifact.md new file mode 100644 index 0000000..f1641a9 --- /dev/null +++ b/evals/briefs/13-native-artifact.md @@ -0,0 +1,14 @@ +# Landing page: a product with an obvious native artifact + +Build a landing page for **Coreline**, a field-logging app for geologists who log drill core. On site they record each sample of a core run, and the app assembles the strip log (the vertical column that shows the layers by depth) that goes into the report. + +Facts you may use, and nothing else: + +- Log a core run on a phone, offline, in the field; it syncs when there is signal. +- Each sample records the depth from and to (in metres), a rock type from the firm's own list, a colour and a photo. +- The strip log is drawn automatically from the samples and exports as PDF or CSV. +- A geologist signs off each run. Nothing is final until it is signed. +- Free for one project; then £19 per geologist per month. +- Made in Aberdeen. + +Do not invent customer names, counts, accuracy figures, awards or claims. Any log, depth or figure you draw must be marked as example data. One call to action: start a free project. Output one self-contained HTML file. diff --git a/evals/briefs/14-plain-scheduling.md b/evals/briefs/14-plain-scheduling.md new file mode 100644 index 0000000..34a7fa6 --- /dev/null +++ b/evals/briefs/14-plain-scheduling.md @@ -0,0 +1,13 @@ +# Landing page: a dull product + +Build a landing page for **Tern**, a shift-scheduling app for small cafes and shops. The manager builds the week as a grid of shifts, staff see their own shifts on their phones, and it warns when the rota breaks a rule. + +Facts you may use, and nothing else: + +- Staff enter when they can and cannot work; the manager drags shifts onto a weekly grid. +- It warns when someone is double-booked, or would go over the hours agreed in their contract. +- Staff see their shifts on their phone and can ask to swap; the manager approves every swap. +- Free for up to 10 staff; then £2 per person per month. +- Made in Manchester. + +Do not invent customer names, counts, savings, ratings or claims. Any rota or figure you draw must be marked as example data. One call to action: try it free. Output one self-contained HTML file. diff --git a/evals/mask.mjs b/evals/mask.mjs new file mode 100644 index 0000000..7097c55 --- /dev/null +++ b/evals/mask.mjs @@ -0,0 +1,88 @@ +#!/usr/bin/env node +// Screenshots of a page with the product name masked, for a judge who must not know which product it is. +// +// node evals/mask.mjs --name Marrow --out dir --label P1 [--blur-text] [--scroll 900] +// +// Writes