@jonandev/longbeard 0.12.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +5 -6
- package/CHANGELOG.md +51 -0
- package/README.md +3 -4
- package/beard.json +6 -20
- package/bin/long-beard.js +2 -2
- package/package.json +2 -2
- package/skills/design/SKILL.md +21 -37
- package/skills/design-brief/SKILL.md +7 -5
- package/skills/design-check/SKILL.md +1 -1
- package/skills/design-check/references/design-rules.md +28 -5
- package/skills/design-check/scripts/rules.mjs +143 -9
- package/skills/design-content/SKILL.md +2 -0
- package/skills/design-direction/SKILL.md +87 -95
- package/skills/design-direction/references/design-floor.md +118 -0
- package/skills/design-direction/references/graphic.md +5 -10
- package/skills/design-direction/references/library.md +8 -6
- package/skills/design-direction/references/screen-template.html +3 -3
- package/skills/design-direction/references/subject.md +2 -2
- package/skills/design-direction/references/variants.js +43 -0
- package/skills/design-direction/scripts/canvas.mjs +311 -0
- package/skills/design-direction/scripts/colours.mjs +247 -0
- package/skills/design-direction/scripts/moodboard.mjs +233 -93
- package/skills/design-direction/scripts/rules.mjs +747 -0
- package/skills/design-direction/scripts/sheet.mjs +3 -1
- package/skills/design-figma/SKILL.md +3 -1
- package/skills/design-identity/SKILL.md +17 -8
- package/skills/{design-direction → design-identity}/references/controls.md +10 -10
- package/skills/design-identity/references/design-floor.md +118 -0
- package/skills/design-identity/references/identity-board.html +2 -2
- package/skills/design-identity/scripts/colours.mjs +35 -1
- package/skills/design-identity/scripts/sheet.mjs +3 -1
- package/skills/design-moodboard/SKILL.md +44 -76
- package/skills/design-moodboard/references/graphic.md +1 -1
- package/skills/design-moodboard/references/sources.md +12 -1
- package/skills/design-moodboard/scripts/group.mjs +1 -1
- package/skills/design-moodboard/scripts/moodboard.mjs +233 -93
- package/skills/design-prototype/SKILL.md +66 -82
- package/skills/design-prototype/references/design-floor.md +118 -0
- package/skills/design-prototype/references/design-md-template.md +3 -0
- package/skills/design-prototype/references/graphic.md +6 -5
- package/skills/design-prototype/references/variants.js +43 -0
- package/skills/design-prototype/scripts/drift.mjs +273 -0
- package/skills/design-prototype/scripts/links.mjs +5 -4
- package/skills/design-prototype/scripts/rules.mjs +143 -9
- package/skills/design-prototype/scripts/sheet.mjs +3 -1
- package/skills/design-wordmark/SKILL.md +8 -2
- package/skills/design-wordmark/scripts/sheet.mjs +3 -1
- package/skills/idea/SKILL.md +3 -3
- package/skills/design-direction/references/design-rules.md +0 -203
- package/skills/design-direction/references/five-second.md +0 -47
- package/skills/design-direction/references/full-build.md +0 -19
- package/skills/design-direction/references/grid.md +0 -114
- package/skills/design-direction/scripts/layout-diff.mjs +0 -118
- package/skills/design-families/SKILL.md +0 -138
- package/skills/design-families/scripts/contact-sheet.mjs +0 -259
- package/skills/design-families/scripts/families.mjs +0 -607
- package/skills/design-families/scripts/measure.mjs +0 -1728
- package/skills/design-families/scripts/moodboard.mjs +0 -469
- package/skills/design-families/scripts/tag.mjs +0 -289
- package/skills/design-prototype/references/design-rules.md +0 -203
- package/skills/design-prototype/references/five-second.md +0 -47
|
@@ -18,6 +18,15 @@
|
|
|
18
18
|
// 11 Copy no lorem ipsum, and no text that is only "Title", "Button", "User Name"...
|
|
19
19
|
// 5 Typography text cut by its container, including an ellipsis. Text cut on purpose
|
|
20
20
|
// carries data-crop on the element (or one above it) and is skipped
|
|
21
|
+
// 5 Typography text size: nothing under 12px; text a person acts on (links, buttons,
|
|
22
|
+
// labels, fields, navigation) at least 14px; body (running text of 60
|
|
23
|
+
// characters or more) at least 16px. Text marked data-board-size (on it or
|
|
24
|
+
// above it: the board shows it that small and the person kept it) is a
|
|
25
|
+
// warning with its measure, not a block
|
|
26
|
+
// Soft (reported, never blocking):
|
|
27
|
+
// 6 Colour proportion on the first screen, text and pictures left out: the ground
|
|
28
|
+
// (the largest colour) under 50%, or the accent over 20% (--accent "#hex"
|
|
29
|
+
// names it; else the most saturated colour). A board that does otherwise wins
|
|
21
30
|
// Not checked, on purpose: overlap, collision, alignment, empty space, section height. They are
|
|
22
31
|
// the look's own moves. Not checked either: contrast (screen-contrast.mjs), states, hierarchy.
|
|
23
32
|
//
|
|
@@ -37,7 +46,8 @@
|
|
|
37
46
|
// run. A check that could not run is "not checked", never passed. The first failure on a screen
|
|
38
47
|
// says what to do; the second says to report it as not checked and go on.
|
|
39
48
|
// --widths 1440,390, --screen name, --app, --cookie "a=b; c=d", --wait 300 (ms), --timeout 120000
|
|
40
|
-
// (ms for the whole run; every browser call also has its own 15 s limit), --rounds 2, --dir,
|
|
49
|
+
// (ms for the whole run; every browser call also has its own 15 s limit), --rounds 2, --dir,
|
|
50
|
+
// --accent "#hex" (the accent from DESIGN.md, for the proportion), --json
|
|
41
51
|
import { spawn } from "node:child_process";
|
|
42
52
|
import { createHash } from "node:crypto";
|
|
43
53
|
import { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -65,11 +75,12 @@ const reason = flag("reason");
|
|
|
65
75
|
const shipWords = flag("ship");
|
|
66
76
|
const app = has("app");
|
|
67
77
|
const json = has("json");
|
|
78
|
+
const accentArg = flag("accent");
|
|
68
79
|
const [url] = args;
|
|
69
|
-
const usage = 'usage: node rules.mjs "<file:// or http(s):// url>" [--screen name] [--widths 1440,390] [--app] [--cookie "a=b"] [--wait 300] [--timeout 120000] [--rounds 2] [--dir .longbeard/design] [--json]\n node rules.mjs --screen name --waive <id> --reason "why this finding is false"\n node rules.mjs --screen name --ship "the person\'s words"';
|
|
80
|
+
const usage = 'usage: node rules.mjs "<file:// or http(s):// url>" [--screen name] [--widths 1440,390] [--app] [--cookie "a=b"] [--wait 300] [--timeout 120000] [--rounds 2] [--dir .longbeard/design] [--accent "#hex"] [--json]\n node rules.mjs --screen name --waive <id> --reason "why this finding is false"\n node rules.mjs --screen name --ship "the person\'s words"';
|
|
70
81
|
const recording = Boolean(waiveId || shipWords);
|
|
71
82
|
const usageOk = recording ? Boolean(screenArg || url) && args.length <= 1 : url && args.length === 1 && /^(https?|file):/.test(url);
|
|
72
|
-
if (!usageOk || widths.some((w) => !(w >= 200 && w <= 3840)) || !(wait >= 0 && wait <= 10000) || !(totalMs >= 5000) || !(limit >= 1) || (waiveId && shipWords) || (reason && !waiveId)) {
|
|
83
|
+
if (!usageOk || widths.some((w) => !(w >= 200 && w <= 3840)) || !(wait >= 0 && wait <= 10000) || !(totalMs >= 5000) || !(limit >= 1) || (waiveId && shipWords) || (reason && !waiveId) || (accentArg && !/^#?[0-9a-f]{6}$/i.test(accentArg))) {
|
|
73
84
|
console.error(usage);
|
|
74
85
|
process.exit(2);
|
|
75
86
|
}
|
|
@@ -125,7 +136,7 @@ if (shipWords) {
|
|
|
125
136
|
console.error(`rules: ${screen} has not been checked yet. Run it once, so the open findings are on record.`);
|
|
126
137
|
process.exit(2);
|
|
127
138
|
}
|
|
128
|
-
record.closed = { words: shipWords.trim(), at: today(), open: record.found.filter((f) => !waivers.some((w) => w.screen === screen && w.id === f.id)) };
|
|
139
|
+
record.closed = { words: shipWords.trim(), at: today(), open: record.found.filter((f) => (f.level || "hard") === "hard" && !waivers.some((w) => w.screen === screen && w.id === f.id)) };
|
|
129
140
|
rounds[screen] = record;
|
|
130
141
|
writeJson(roundsFile, rounds);
|
|
131
142
|
console.log(`${screen} closed by the person: "${record.closed.words}". Open findings, to report as open:`);
|
|
@@ -430,9 +441,102 @@ function staticChecks(opt) {
|
|
|
430
441
|
}
|
|
431
442
|
});
|
|
432
443
|
|
|
444
|
+
// 5: text size. Nothing under 12px; what a person acts on 14px; body 16px.
|
|
445
|
+
run("5 size", () => {
|
|
446
|
+
const act = 'a, button, label, input, select, textarea, summary, legend, nav, [role=button], [role=link], [role=tab], [role=menuitem], [role=option]';
|
|
447
|
+
const done = new Set();
|
|
448
|
+
const size = (el) => parseFloat(getComputedStyle(el).fontSize);
|
|
449
|
+
const judge = (el, text) => {
|
|
450
|
+
if (done.has(el)) return;
|
|
451
|
+
done.add(el);
|
|
452
|
+
const px = size(el);
|
|
453
|
+
const acts = !!el.closest(act);
|
|
454
|
+
const block = el.closest("p, li, dd, blockquote");
|
|
455
|
+
const body = !acts && block && !el.closest("figcaption, small, footer, aside, sup, sub") && (block.innerText || "").trim().length >= 60;
|
|
456
|
+
const [floor, role] = acts ? [14, "text a person acts on"] : body ? [16, "body text"] : [12, "text"];
|
|
457
|
+
if (px >= floor - 0.05) return;
|
|
458
|
+
const board = !!el.closest("[data-board-size]");
|
|
459
|
+
found.push({ rule: "5 Typography", check: "size", level: board ? "warn" : "hard", path: path(el), desc: desc(el), detail: `${Math.round(px * 10) / 10}px ${role}, floor ${floor}px${board ? " (data-board-size: the board's size, kept)" : ""}` });
|
|
460
|
+
};
|
|
461
|
+
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
|
|
462
|
+
for (let n = walker.nextNode(); n; n = walker.nextNode()) {
|
|
463
|
+
const el = n.parentElement;
|
|
464
|
+
if (!el || !n.textContent.trim() || el instanceof SVGElement || /^(SCRIPT|STYLE|NOSCRIPT|TEMPLATE|OPTION)$/.test(el.tagName) || !visible(el)) continue;
|
|
465
|
+
const box = el.getBoundingClientRect();
|
|
466
|
+
if (box.width <= 2 || box.height <= 2) continue; // visually hidden text, read by screen readers
|
|
467
|
+
judge(el);
|
|
468
|
+
}
|
|
469
|
+
for (const el of document.body.querySelectorAll("input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea")) if (visible(el)) judge(el);
|
|
470
|
+
});
|
|
471
|
+
|
|
433
472
|
return { found, notChecked };
|
|
434
473
|
}
|
|
435
474
|
|
|
475
|
+
// Colour proportion of the first screen, from a shot with the text hidden. Pictures are left out.
|
|
476
|
+
// Returns { shares: [{ hex, share, chroma }], ground, accent } in shares of the pixels counted.
|
|
477
|
+
async function colourProportion(opt) {
|
|
478
|
+
const out = [];
|
|
479
|
+
for (const el of document.body.querySelectorAll("*")) {
|
|
480
|
+
const s = getComputedStyle(el);
|
|
481
|
+
if (el.matches("img, video, canvas, picture, iframe, svg image, object, embed") || /url\(/.test(s.backgroundImage)) {
|
|
482
|
+
const r = el.getBoundingClientRect();
|
|
483
|
+
if (r.width >= 1 && r.height >= 1) out.push(r);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
const img = new Image();
|
|
487
|
+
img.src = `data:image/png;base64,${opt.png}`;
|
|
488
|
+
await img.decode();
|
|
489
|
+
const c = document.createElement("canvas");
|
|
490
|
+
c.width = img.naturalWidth;
|
|
491
|
+
c.height = img.naturalHeight;
|
|
492
|
+
const g = c.getContext("2d", { willReadFrequently: true });
|
|
493
|
+
g.drawImage(img, 0, 0);
|
|
494
|
+
const px = g.getImageData(0, 0, c.width, c.height).data;
|
|
495
|
+
const lin = (v) => ((v /= 255) <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);
|
|
496
|
+
const lab = (r, gr, b) => {
|
|
497
|
+
const [R, G, B] = [lin(r), lin(gr), lin(b)];
|
|
498
|
+
const l = Math.cbrt(0.4122214708 * R + 0.5363325363 * G + 0.0514459929 * B), m = Math.cbrt(0.2119034982 * R + 0.6806995451 * G + 0.1073969566 * B), s2 = Math.cbrt(0.0883024619 * R + 0.2817188376 * G + 0.6299787005 * B);
|
|
499
|
+
return [0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s2, 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s2, 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s2];
|
|
500
|
+
};
|
|
501
|
+
const buckets = new Map();
|
|
502
|
+
let total = 0;
|
|
503
|
+
const step = 2;
|
|
504
|
+
for (let y = 0; y < c.height; y += step)
|
|
505
|
+
for (let x = 0; x < c.width; x += step) {
|
|
506
|
+
if (out.some((r) => x >= r.left && x < r.right && y >= r.top && y < r.bottom)) continue;
|
|
507
|
+
const i = (y * c.width + x) * 4;
|
|
508
|
+
const key = ((px[i] >> 3) << 10) | ((px[i + 1] >> 3) << 5) | (px[i + 2] >> 3);
|
|
509
|
+
const b = buckets.get(key) || { n: 0, r: px[i], g: px[i + 1], b: px[i + 2] };
|
|
510
|
+
b.n++;
|
|
511
|
+
buckets.set(key, b);
|
|
512
|
+
total++;
|
|
513
|
+
}
|
|
514
|
+
if (!total) return { shares: [], ground: null, accent: null };
|
|
515
|
+
// Near colours are one colour: a bucket joins the biggest cluster within a small distance.
|
|
516
|
+
const clusters = [];
|
|
517
|
+
for (const b of [...buckets.values()].sort((a, z) => z.n - a.n)) {
|
|
518
|
+
const L = lab(b.r, b.g, b.b);
|
|
519
|
+
const near = clusters.find((k) => Math.hypot(k.lab[0] - L[0], k.lab[1] - L[1], k.lab[2] - L[2]) < 0.06);
|
|
520
|
+
if (near) near.n += b.n;
|
|
521
|
+
else clusters.push({ n: b.n, lab: L, rgb: [b.r, b.g, b.b] });
|
|
522
|
+
}
|
|
523
|
+
const hex = (rgb) => `#${rgb.map((v) => v.toString(16).padStart(2, "0")).join("")}`;
|
|
524
|
+
const shares = clusters.sort((a, z) => z.n - a.n).map((k) => ({ hex: hex(k.rgb), share: k.n / total, chroma: Math.hypot(k.lab[1], k.lab[2]), lab: k.lab }));
|
|
525
|
+
const ground = shares[0];
|
|
526
|
+
let accent = null;
|
|
527
|
+
if (opt.accent) {
|
|
528
|
+
const h = opt.accent.replace("#", "");
|
|
529
|
+
const A = lab(parseInt(h.slice(0, 2), 16), parseInt(h.slice(2, 4), 16), parseInt(h.slice(4, 6), 16));
|
|
530
|
+
const near = shares.filter((k) => Math.hypot(k.lab[0] - A[0], k.lab[1] - A[1], k.lab[2] - A[2]) < 0.06);
|
|
531
|
+
accent = { hex: `#${h.toLowerCase()}`, share: near.reduce((a, k) => a + k.share, 0), named: true };
|
|
532
|
+
} else {
|
|
533
|
+
// Unnamed, the accent is the most saturated colour other than the ground.
|
|
534
|
+
const pick = shares.slice(1).filter((k) => k.chroma >= 0.1 && k.share >= 0.005).sort((a, z) => z.chroma - a.chroma)[0];
|
|
535
|
+
if (pick) accent = { hex: pick.hex, share: pick.share, named: false };
|
|
536
|
+
}
|
|
537
|
+
return { shares: shares.slice(0, 4).map(({ hex: h, share }) => ({ hex: h, share })), ground: { hex: ground.hex, share: ground.share }, accent };
|
|
538
|
+
}
|
|
539
|
+
|
|
436
540
|
// The focus check. Called once to take the baseline, then after each Tab.
|
|
437
541
|
function focusBaseline() {
|
|
438
542
|
const sig = (el) => {
|
|
@@ -494,10 +598,13 @@ const FIX = {
|
|
|
494
598
|
focus: "Give it a visible :focus-visible style with 3:1 contrast against what is around it (an outline or ring). Never outline: none alone.",
|
|
495
599
|
placeholder: "Write the real copy, in the product's voice.",
|
|
496
600
|
clipped: "Let the box grow or the text wrap, so no word is cut. If the cut is the look, mark that element data-crop.",
|
|
601
|
+
size: "Scale the step up, keeping the reference's proportions between sizes. If the board shows it this small and the person kept it, mark it data-board-size.",
|
|
602
|
+
proportion: "Let the ground dominate, the primary support and the accent stay small (about 60/30/10). If the board clearly does otherwise, keep it and say so in a note.",
|
|
497
603
|
};
|
|
498
604
|
const RULE_OF = { focus: "10 Accessibility" };
|
|
499
605
|
const found = new Map();
|
|
500
606
|
const notChecked = [];
|
|
607
|
+
const proportions = [];
|
|
501
608
|
const checkedAt = new Map();
|
|
502
609
|
const evaluate = async (expression, call) => {
|
|
503
610
|
const r = await call("Runtime.evaluate", { expression, returnByValue: true, awaitPromise: true });
|
|
@@ -521,7 +628,7 @@ try {
|
|
|
521
628
|
}
|
|
522
629
|
const record1 = (item, w, check) => {
|
|
523
630
|
const key = `${item.rule || RULE_OF[check] || ""}|${check}|${item.path}`;
|
|
524
|
-
if (!found.has(key)) found.set(key, { rule: item.rule || RULE_OF[check], check, path: item.path, desc: item.desc, detail: item.detail || "", widths: [] });
|
|
631
|
+
if (!found.has(key)) found.set(key, { rule: item.rule || RULE_OF[check], check, level: item.level || "hard", path: item.path, desc: item.desc, detail: item.detail || "", widths: [] });
|
|
525
632
|
const f = found.get(key);
|
|
526
633
|
if (!f.widths.includes(w)) f.widths.push(w);
|
|
527
634
|
};
|
|
@@ -554,6 +661,25 @@ try {
|
|
|
554
661
|
} catch (e) {
|
|
555
662
|
notChecked.push({ check: "10 focus", width: w, why: String(e.message).slice(0, 80) });
|
|
556
663
|
}
|
|
664
|
+
// Colour proportion, last: it hides the text. The first screen only, as a person meets it.
|
|
665
|
+
try {
|
|
666
|
+
await evaluate(`(() => {
|
|
667
|
+
window.scrollTo(0, 0);
|
|
668
|
+
if (document.activeElement) document.activeElement.blur();
|
|
669
|
+
const s = document.createElement("style");
|
|
670
|
+
s.textContent = "* { color: transparent !important; text-shadow: none !important; -webkit-text-fill-color: transparent !important; text-decoration-color: transparent !important; caret-color: transparent !important; outline: none !important; }";
|
|
671
|
+
document.head.appendChild(s);
|
|
672
|
+
return new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(() => done(true))));
|
|
673
|
+
})()`, call);
|
|
674
|
+
const shot = await call("Page.captureScreenshot", { format: "png" });
|
|
675
|
+
const p = await evaluate(`(${colourProportion})(${JSON.stringify({ png: shot.result.data, accent: accentArg })})`, call);
|
|
676
|
+
proportions.push({ width: w, ...p });
|
|
677
|
+
const pct = (x) => `${Math.round(x * 100)}%`;
|
|
678
|
+
if (p.ground && p.ground.share < 0.5) record1({ rule: "6 Colour", level: "soft", path: "ground", desc: "first screen", detail: `the ground (${p.ground.hex}) covers ${pct(p.ground.share)}; it should dominate (about 60%)` }, w, "proportion");
|
|
679
|
+
if (p.accent && p.accent.share > 0.2) record1({ rule: "6 Colour", level: "soft", path: "accent", desc: "first screen", detail: `the accent (${p.accent.hex}${p.accent.named ? "" : ", read as the most saturated colour"}) covers ${pct(p.accent.share)}; it should stay small (about 10%)` }, w, "proportion");
|
|
680
|
+
} catch (e) {
|
|
681
|
+
notChecked.push({ check: "6 proportion", width: w, why: String(e.message).slice(0, 80) });
|
|
682
|
+
}
|
|
557
683
|
checkedAt.set(w, true);
|
|
558
684
|
}
|
|
559
685
|
ws.close();
|
|
@@ -567,7 +693,9 @@ finished = true;
|
|
|
567
693
|
const id = (f) => createHash("sha1").update(`${f.rule}|${f.check}|${f.path}`).digest("hex").slice(0, 6);
|
|
568
694
|
const rows = [...found.values()].map((f) => ({ ...f, id: id(f), where: `${f.desc}: ${f.detail} (at ${f.widths.sort((a, b) => b - a).join(", ")})` }));
|
|
569
695
|
const waived = rows.filter((f) => waivers.some((w) => w.screen === screen && w.id === f.id));
|
|
570
|
-
|
|
696
|
+
// Hard findings block. Warnings (the board's own small text) and soft ones are reported only.
|
|
697
|
+
const open = rows.filter((f) => !waived.includes(f) && f.level === "hard");
|
|
698
|
+
const reported = rows.filter((f) => !waived.includes(f) && f.level !== "hard");
|
|
571
699
|
|
|
572
700
|
// A run on a changed page is a round; the same page again is the same round. Each url of a screen
|
|
573
701
|
// (a state: ?menu=open) keeps its own fingerprint, so the first look at another state is part of
|
|
@@ -580,15 +708,15 @@ const changed = seen && fps[key] !== fingerprint;
|
|
|
580
708
|
const round = !used ? 1 : changed && used < limit ? used + 1 : used;
|
|
581
709
|
const beyond = changed && used >= limit;
|
|
582
710
|
const closed = changed ? null : record.closed || null;
|
|
583
|
-
rounds[screen] = { round, fps: { ...fps, [key]: fingerprint }, at: today(), failed: 0, found: rows.map((f) => ({ id: f.id, rule: f.rule, where: f.where })), ...(closed ? { closed } : {}) };
|
|
711
|
+
rounds[screen] = { round, fps: { ...fps, [key]: fingerprint }, at: today(), failed: 0, found: rows.map((f) => ({ id: f.id, rule: f.rule, level: f.level, where: f.where })), ...(closed ? { closed } : {}) };
|
|
584
712
|
writeJson(roundsFile, rounds);
|
|
585
713
|
|
|
586
714
|
const widthNote = widths.join(" and ");
|
|
587
|
-
const checks = [["13 sideways", "13 sideways scroll (phone width)"], ["10 targets", `10 targets (${app ? "44 on phone, 24 otherwise" : "24"})`], ["10 labels", "10 visible labels"], ["10 focus", "10 focus shown (not its contrast)"], ["11 copy", "11 placeholder copy"], ["5 clipped", "5 clipped text (data-crop skipped)"]];
|
|
715
|
+
const checks = [["13 sideways", "13 sideways scroll (phone width)"], ["10 targets", `10 targets (${app ? "44 on phone, 24 otherwise" : "24"})`], ["10 labels", "10 visible labels"], ["10 focus", "10 focus shown (not its contrast)"], ["11 copy", "11 placeholder copy"], ["5 clipped", "5 clipped text (data-crop skipped)"], ["5 size", "5 text size (12 / 14 / 16)"], ["6 proportion", "6 colour proportion (soft)"]];
|
|
588
716
|
if (!widths.some((w) => w <= 480)) notChecked.push({ check: "13 sideways", width: widths.join(","), why: "no phone width (480 or less) in --widths" });
|
|
589
717
|
const done = checks.filter(([key]) => !notChecked.some((n) => n.check === key)).map(([, label]) => label);
|
|
590
718
|
if (json) {
|
|
591
|
-
console.log(JSON.stringify({ screen, round, limit, roundsUsedUp: round >= limit && open.length > 0, closed, open, waived, notChecked, checked: done }, null, 1));
|
|
719
|
+
console.log(JSON.stringify({ screen, round, limit, roundsUsedUp: round >= limit && open.length > 0, closed, open, reported, waived, proportions, notChecked, checked: done }, null, 1));
|
|
592
720
|
} else {
|
|
593
721
|
console.log(`rules: ${screen} at ${widthNote}, round ${round} of ${limit}${beyond ? " (this page changed after the last round: not counted)" : changed || !used ? "" : seen ? " (the page has not changed since the last run)" : " (another state of this screen: same round)"}`);
|
|
594
722
|
if (closed) console.log(`closed by the person on ${closed.at}: "${closed.words}". Do not fix more. Report what is open.`);
|
|
@@ -602,6 +730,12 @@ if (json) {
|
|
|
602
730
|
}
|
|
603
731
|
for (const [check, n] of Object.entries(shown)) if (n > 10) console.log(`(${n - 10} more ${check} findings with the same fix, not listed: fix these, run again, or use --json for all)`);
|
|
604
732
|
} else console.log(`passes: ${done.join("; ")}`);
|
|
733
|
+
if (reported.length) {
|
|
734
|
+
console.log("reported, not blocking:\n| Rule | Hard/soft | Where | Fix |\n|---|---|---|---|");
|
|
735
|
+
for (const f of reported.slice(0, 20)) console.log(`| ${f.rule} | ${f.level} | ${f.where.replace(/\|/g, "/")} [${f.id}] | ${FIX[f.check]} |`);
|
|
736
|
+
if (reported.length > 20) console.log(`(${reported.length - 20} more, not listed: --json has all)`);
|
|
737
|
+
}
|
|
738
|
+
for (const p of proportions) if (p.ground) console.log(`colour proportion at ${p.width}: ground ${p.ground.hex} ${Math.round(p.ground.share * 100)}%${p.shares.slice(1).map((k) => `, ${k.hex} ${Math.round(k.share * 100)}%`).join("")}${p.accent ? `; accent ${p.accent.hex} ${Math.round(p.accent.share * 100)}%` : ""}`);
|
|
605
739
|
if (waived.length) {
|
|
606
740
|
console.log(`waived (${waived.length}), listed so the person sees them:`);
|
|
607
741
|
for (const f of waived) console.log(`- ${f.rule}: ${f.where} [${f.id}]: ${waivers.find((w) => w.screen === screen && w.id === f.id).reason}`);
|
|
@@ -24,6 +24,8 @@ Comes out:
|
|
|
24
24
|
- **`docs/design/design-content.md`**, committed: per key screen, what it says and shows.
|
|
25
25
|
- New stand-ins join `.longbeard/design/pictures/` (gitignored), with `credits.tsv`.
|
|
26
26
|
|
|
27
|
+
**At every stop,** say what is new and the one question, in up to five lines: a path or a sheet instead of pasted content, one line per option, nothing they already know.
|
|
28
|
+
|
|
27
29
|
## Gate
|
|
28
30
|
|
|
29
31
|
1. No `docs/design/design-brief.md` → `design-brief` first. Stop.
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: design-direction
|
|
3
3
|
description: >
|
|
4
|
-
Find the direction:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
Find the direction: eight first screens. Six adapt one of their references
|
|
5
|
+
to this product as a designer would (its essence kept, never a copy), with
|
|
6
|
+
one or two things borrowed from their other references; two develop a liked
|
|
7
|
+
reference's concept further, redrawn for this product. Nothing on a screen
|
|
8
|
+
that is not on their board. One agent builds them, scripts check
|
|
9
|
+
contrast and clipped text, and they pick on a rendered canvas, or ask for
|
|
10
|
+
more or a mix. Writes docs/design/design-direction.md. Runs after
|
|
11
|
+
design-brief and design-moodboard; design-identity then refines its type
|
|
12
|
+
and colour.
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
# Design direction
|
|
16
16
|
|
|
17
17
|
**Needs:** `docs/design/design-brief.md`, `docs/design/design-moodboard.md`
|
|
18
|
-
**Uses if there:** `docs/design/design-
|
|
18
|
+
**Uses if there:** `docs/design/design-content.md`
|
|
19
19
|
**Writes:** `docs/design/design-direction.md`
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**They are the designer; you do the craft.** Everything on a screen comes from their board. Understand what they like in each reference and why, and carry that concept onto this product. Make the craft decisions it leaves open, and add no taste of your own.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Style is theirs; structure can be yours.** Faces, colours, finishes, devices and how pictures are treated come only from their board. How this product's content is arranged (composition, hierarchy, pacing) may be your design, as long as it carries a concept they liked: what you know about design serves their taste, never replaces it.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
Writes `docs/design/design-direction.md` (committed) and works in `.longbeard/design/direction/` (gitignored): `library.json`, `screens/<n>.html`, `screens.json`, `prototype/first.html`, captures and the canvas.
|
|
26
|
+
|
|
27
|
+
**At every stop,** say what is new and the one question, in up to five lines: a path or a sheet instead of pasted content, one line per option, nothing they already know.
|
|
27
28
|
|
|
28
29
|
## Gate
|
|
29
30
|
|
|
@@ -32,108 +33,99 @@ Comes out:
|
|
|
32
33
|
|
|
33
34
|
A graphic (the brief's surface): read [graphic.md](references/graphic.md) first.
|
|
34
35
|
|
|
35
|
-
**At `pace: quick`** (the design brief): one round of eight; more, a mix or another round only when they ask, never pressed. What they pick is still built in full.
|
|
36
|
-
|
|
37
36
|
## 0. Pictures of the subject
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
Three or four pictures of what the product is about, not other designs: theirs, or a few licensed stand-ins from `pictures.mjs`, one query per picture. Every screen uses them, and their colours are one more palette. How: [subject.md](references/subject.md). Show them on a contact sheet with step 1's message; do not stop to ask.
|
|
40
39
|
|
|
41
40
|
## 1. The content and the references, in one message
|
|
42
41
|
|
|
43
|
-
**What
|
|
44
|
-
- **The headline** says the takeaway.
|
|
45
|
-
- **The small slots** take real content in a fixed order: the primary action, then the status (open now, in stock), then the thing the product shows (today's bakes, the balance, the ownable). Each screen takes as many as its base has, from the top, and stops.
|
|
46
|
-
- **At most one extra** small element, only where the reference's own system gives it a place.
|
|
47
|
-
- **The rest** (the second action, the full list, how to reach it) is written down for `design-prototype`, which fits it with options where it forks.
|
|
42
|
+
**What a screen carries.** Only as much text as its base carries (its reading's `slots`), filled in this order until they run out: the headline (the takeaway), the primary action, the status (open now, in stock), the thing the product shows. What does not fit waits for `design-prototype`, never squeezed in as one more line.
|
|
48
43
|
|
|
49
|
-
**
|
|
44
|
+
**Headlines and the ownable.** Three or four headlines that say the takeaway outright, in the voice, and the ownable: one thing only this product would show (a stamp, a live count, a mark).
|
|
50
45
|
|
|
51
|
-
**
|
|
46
|
+
**Their board, every reference on it.** Copy the moodboard's `board.md` to `.longbeard/design/direction/board.md`, every card, plus the subject as a card (its contact sheet as the shot, `part: subject`, `screen: no`). Cards with a `topic:` line show under their group: a heading, never a filter.
|
|
52
47
|
|
|
53
48
|
```
|
|
54
|
-
node <skill>/scripts/moodboard.mjs .longbeard/design/direction/board.md --out .longbeard/design/direction/board.html
|
|
49
|
+
node <skill>/scripts/moodboard.mjs .longbeard/design/direction/board.md --one-lead --out .longbeard/design/direction/board.html
|
|
55
50
|
```
|
|
56
51
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Then one message:
|
|
60
|
-
|
|
61
|
-
> Filled in this order: <primary> · <status> · <what it shows>; the rest waits for the prototype: <list>. Headline: 1 "…" · 2 "…" · 3 "…". Ownable: <…>. Pick one or rewrite.
|
|
62
|
-
> Then open the board: **Lead** the reference whose composition should set the tone, **Like** the ones I should draw from, and in each one's note say **what you like in it, and what it does for you** ("the orange dot: the only contrast on a quiet page", "the thin serif: it makes the page feel slow and expensive"). What you like is what the designs borrow, and why you like it is how they use it. A like without a why: I'll ask once. Paste the copy-out.
|
|
63
|
-
|
|
64
|
-
The lead is the base of two screens, every like of at least one, and all of them lend moves. **The spread comes from them:** 6 to 10 together, ideally from more than one family and on different grounds. With fewer, say it before building: "With 3 references the eight screens will look alike. Like a few more for a wider spread?" The subject's card is liked like any other, for a picture, a colour or a thing in it (a stamp, a number, a paper bag), with a why; it lends moves and is never a base. A poster is a reference like any other: its layout is rebuilt at screen size, its proportions kept.
|
|
65
|
-
|
|
66
|
-
**A like against the design brief.** When a like asks for what the brief rules out ("gold on deep green" when the brief says light only), the brief wins, and say it before building, once. The brief rules out only what it names: a lesson from a past site rules out what went wrong there, not every element that site had. Say it:
|
|
52
|
+
It says how many cards it left out for a missing shot: capture those again first. **Likes are asked once:** a card with a `like:` line starts liked, with their words.
|
|
67
53
|
|
|
68
|
-
>
|
|
54
|
+
> Fill order: <primary> · <status> · <what it shows>; later: <list>. Headline: 1 "…" · 2 "…" · 3 "…". Ownable: <…>. Pick or rewrite.
|
|
55
|
+
> Then open the board (your likes are marked): **Lead** the one whose composition sets the tone, Like any more, and for each new like say what you like and why ("the orange dot: the only contrast on a quiet page"). Anything you don't want from a reference goes in its **Leave out** box. Paste the copy-out.
|
|
69
56
|
|
|
70
|
-
|
|
57
|
+
- **What they like** is what is borrowed; **why** is where it may go. A like without a why: ask once.
|
|
58
|
+
- **What they leave out is never on a screen:** dropped, or its role filled from another of their references.
|
|
59
|
+
- With fewer than 6 references, say once that the eight will look alike.
|
|
60
|
+
- **A like the design brief rules out** ("gold on deep green", brief: light only): the brief wins, and the like is carried by its role. Say it once before building; a change goes under **Changes** in the design brief.
|
|
71
61
|
|
|
72
62
|
## 2. Read the references
|
|
73
63
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## 3. Build the screens
|
|
77
|
-
|
|
78
|
-
Eight screens, each `.longbeard/design/direction/screens/<n>.html` from [screen-template.html](references/screen-template.html), recorded in `screens.json` with its base, its moves, its `build` (`quick` or `full`) and its `state`.
|
|
79
|
-
|
|
80
|
-
Five principles decide every case: the base stands unless a move names it; every measure is a share of the screen and is kept; a borrowed thing keeps its geometry and its why; a move changes only what it names; nothing from outside the board.
|
|
81
|
-
|
|
82
|
-
**The first round is quick.** Each screen is its base and its moves, built once by a fresh agent, with no critic loop and no device close-ups. **The full build** (plan, build, critique, fix, every version kept) runs only on what they pick (step 4). Before any screen is built, the plan is checked for spread: pictures, tones and moves across the eight.
|
|
83
|
-
|
|
84
|
-
Then the round: not a copy (one judge for the whole round), as varied as the board, contrast (a failure blocks the sheet, rough or not, unless it is a colour they liked, kept with a warning), faults. **The round is done when every screen in `screens.json` has ended in a `state`.** Wait for each helper before drawing the sheet; a failed screen is shown as failed. With no fresh agents, do each job yourself in turn and say the round is weaker.
|
|
64
|
+
Read the lead and every like closely: its grid, the share of the screen each block takes, type sizes against the width, spacing, colours, faces (the closest Google Font), and what they like in it and why. A live page is measured (`measure.mjs <link>`): its numbers are the page's own. A picture is read by eye at full size; `measure.mjs <picture> --lines` only for a number you cannot read, and the face through `fonts.mjs --shape`. Write it to `library.json`, with the subject and its palette from `subject-colours.mjs`: [library.md](references/library.md).
|
|
85
65
|
|
|
86
|
-
|
|
66
|
+
**Never invent a key part.** Once the readings show what each reference has: if none shows a hero or a header and menu, or their picks leave one unclear, ask once, in one message: the cards that show it, to pick from, or a search for that one part (`design-moodboard`'s one piece). **Never block on it:** build on with that part from the closest system on the board, marked `data-standin`, and put their answer in when it comes, in the next round or the prototype.
|
|
87
67
|
|
|
88
|
-
**
|
|
68
|
+
**The accent** ([rule 6](references/design-floor.md#6-colour)): unless the board clearly shows one or they named it, add the options as swatches to that message, or send them alone, never waiting: `colours.mjs --harmony --primary <#> --ground <#> --family "<board's colours>" --level <AA|AAA>`, plus the subject's accent. Never pick or rank.
|
|
89
69
|
|
|
90
|
-
|
|
70
|
+
## 3. Eight first screens
|
|
91
71
|
|
|
92
|
-
|
|
72
|
+
Read [Before you build](references/design-floor.md#before-you-build) first, and apply it to each screen while you draw it. Build them yourself, one after another, each `screens/<n>.html` from [screen-template.html](references/screen-template.html) at 1440 by 900 (an app, or `first seen on: phone`: 390 by 844).
|
|
93
73
|
|
|
94
|
-
|
|
74
|
+
- **Every screen does a first screen's job:** what this is, for whom, the one action. A reference that is not a first screen (a section from mid-page, an inner page, a poster) lends its system and its moves; what only works in its own role is left out.
|
|
75
|
+
- **Every screen adapts its base, as a designer would, never copies it.** First its essence (the reading's `concept`: what it is, why it works). Keep that essence and its scene: the composition's logic, the proportions that make it work, the character of its type and colour. Then adapt the specifics to this client: their content and pictures, only the text its `slots` allow, and where the brief or the subject asks, a colour or face of the same character (another vibrant for a vibrant, a near cousin of the face from `fonts.mjs`). Sizes are scaled to this screen, at [rule 5](references/design-floor.md#5-typography)'s size floor. Two questions for every screen: would a designer call it the same idea (it must be yes), and would they call it a copy (it must be no)? A copy fails, and so does a screen that drifts from the idea.
|
|
76
|
+
- **Then one or two moves** borrowed from their other liked references. A move is what they said they like, placed where their why says it belongs, and it changes only what it names. A why that would not be true on this base sends the move to another base.
|
|
77
|
+
- **Never a collage.** A screen is its base and at most two moves, nothing more. The lead may set the round's tone, but its devices are moves like any other's: a device sits on its own reference's screens and on at most two others, so the eight stay eight different screens.
|
|
78
|
+
- **Spread:** the lead is the base of two screens; four stand on one of their liked references each; two are **concepts**, each from a liked reference no other screen stands on. Eight screens, seven references: only with fewer than six likes does a reference take a second screen, the lead first, then the likes. Accent options still unanswered: about two screens each. Only the lead and their likes are used, never a card they did not pick. No main picture on more than two screens.
|
|
79
|
+
- **What they like is taken whole.** A liked reference's scene, and any device borrowed from it (a ring of text, a block of colour, prints laid on a table), keeps the form, the job and the space around it that it has there. It is never taken apart, restyled or given another job: a block of colour that is a ground does not become a button, a ring of text gets no extra line, pictures laid over each other stay far enough apart to read as separate pictures. A move changes where things sit, never what they are.
|
|
80
|
+
- **A concept** goes further: it develops one liked reference that no other screen is built on (the like with the clearest why first) and redraws its arrangement. First write its `concept` in the reading as a designer would defend it: what it is, and why it works (the tension, the hierarchy, what does the work). Then redraw the arrangement for this product's content so that idea still does the work, with that reference's devices, type, colour and picture treatment. Before you check it, two questions: would a designer call it the same concept (it must be yes), and would they call it a copy (it must be no)? Either answer wrong: redraw. A screen with no concept behind it is not a concept: it is generic, and goes.
|
|
81
|
+
- **Nothing off their board's character:** no face, colour, gradient, shadow, radius, button style or effect their references do not show in kind. An adapted colour or face keeps the role and energy of the one it replaces and comes from the board, the subject or the accent options. `PROVENANCE` names the reference for each, and what was adapted; before the checks, go through the screen's CSS, and anything it cannot name goes.
|
|
82
|
+
- **Where the board shows nothing for a part** (a field, a price, a badge), take it from the base's own system; if the base has none, from another of their references. The name is set in the base's type; a mark is `design-wordmark`'s.
|
|
83
|
+
- **Marked, not hidden:** anything the product does not really have yet carries `data-standin="picture"` or `"fact"`, with `data-standin-note`.
|
|
95
84
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- **More of some:** each pick, if still rough, is built in full ([full-build.md](references/full-build.md)), and gets three more screens on the same base with other moves, also built in full. Capture, sheet with `--cols 4`, show.
|
|
99
|
-
- **A mix:** "4 with the colours of 7": the base of one with the move of another, built in full.
|
|
100
|
-
- **More, or none:** a fresh round of eight, quick like the first, as often as they ask: other pairings of bases and moves from what they liked, none shown before. After two rounds with nothing taken, ask once what is missing; a search for it is `design-moodboard`.
|
|
85
|
+
Record each in `.longbeard/design/direction/screens.json`:
|
|
101
86
|
|
|
102
|
-
|
|
87
|
+
```
|
|
88
|
+
[{ "n": 1, "base": "<card name>", "moves": [{ "what": "<the move>", "from": "<card name>", "like": "<their words, or null>" }], "accent": "<#hex from the options, or null>", "state": "built" }]
|
|
89
|
+
```
|
|
103
90
|
|
|
104
|
-
|
|
91
|
+
A concept also has `"kind": "concept"` and `"idea": "<the concept it keeps, in one line>"`; its `base` is the reference it develops.
|
|
105
92
|
|
|
106
|
-
|
|
93
|
+
`state` is `built`, or `failed` with `"failure": "<why>"`. Optional: `round` (1 when left out), `fault` (one line), `shot`.
|
|
107
94
|
|
|
108
|
-
**
|
|
95
|
+
**Check each screen by script:**
|
|
109
96
|
|
|
110
|
-
|
|
97
|
+
```
|
|
98
|
+
node <skill>/scripts/capture.mjs "file://$PWD/.longbeard/design/direction/screens/1.html" --out .longbeard/design/direction/grid/1.png --clip 0,0,1440,900
|
|
99
|
+
node <skill>/scripts/screen-contrast.mjs "file://$PWD/.longbeard/design/direction/screens/1.html" --wait-title ready
|
|
100
|
+
node <skill>/scripts/rules.mjs "file://$PWD/.longbeard/design/direction/screens/1.html" --screen direction-1 --widths 1440
|
|
101
|
+
```
|
|
111
102
|
|
|
112
|
-
|
|
103
|
+
Act here on `rules.mjs`'s clipped text, text size and placeholder copy; targets, focus and labels are the prototype's. Fix clipped text by setting it smaller within its role or cutting words. Look at each capture yourself, beside the pictures of what it is made from (its base, each move's reference): as a designer would, check that every borrowed scene and device still reads as it does there, whole, with its job and its spacing. Fix what broke before you show it.
|
|
113
104
|
|
|
114
|
-
|
|
105
|
+
**The floor, inside the concept** ([how they split](references/design-floor.md#how-to-use-this)). Text a person acts on must pass contrast and size, fixed with the screen's own colours or another crop, never by moving it off the picture. Display type over a picture, overlaps, crops and wide empty space are the look when a reference does them: never tidied away. A liked colour or size stays, its measure in `fault`. A finding left is theirs to decide: `fault` says it as a choice (what it costs, and what would fix it: keep, or change?), and that line goes in your message with the canvas.
|
|
115
106
|
|
|
116
|
-
**
|
|
107
|
+
**Show the canvas:**
|
|
117
108
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
- **Something plainly off.** A clipped word, text hidden where it cannot be read, a control that looks tappable and is not, the same line twice.
|
|
122
|
-
- **Rank, only when inverted.** The headline outranked by smaller text: the smaller one is brought down, not the headline restyled.
|
|
109
|
+
```
|
|
110
|
+
node <skill>/scripts/canvas.mjs .longbeard/design/direction/screens.json --board .longbeard/design/direction/board.md --shots .longbeard/design/direction/grid --out .longbeard/design/direction/canvas.html
|
|
111
|
+
```
|
|
123
112
|
|
|
124
|
-
|
|
113
|
+
It shows every screen in a strip and, for the one they open, what it is made from: its base and each move, with the reference and their words. Give its path, and one line per screen only for a fault or for what sits against the brief (its never, its words, its personality, or could be mistaken for what it must stand apart from). Then one recommendation, as a studio would give it: the screen that best does what the design brief asks, and why, naming the line it serves (the takeaway, the never, what it must stand apart from). Never a preference of your own: the brief's case, theirs to overrule.
|
|
125
114
|
|
|
126
|
-
|
|
115
|
+
> Which is closest? Or "more", "more of 3", "3 with 6's accent".
|
|
127
116
|
|
|
128
|
-
|
|
117
|
+
## 4. More, mix, choose
|
|
129
118
|
|
|
130
|
-
|
|
119
|
+
- **More of 3:** three more on 3's base with other moves, in round 2.
|
|
120
|
+
- **A mix** ("4 with 7's colours"): one screen.
|
|
121
|
+
- **More:** a fresh round of eight, new pairings. After two rounds with nothing taken, ask once what is missing (`design-moodboard`).
|
|
122
|
+
- **A part,** only when they ask ("other menus for 3"): three or four versions of that part on the real screen, everything else kept, each from a reference that shows that part. **Options live on the page:** each version is an element with `data-variant="<n>"` and `data-from="<card name>"`, and the page loads [variants.js](references/variants.js) (copy it beside the page): `?variant=<n>` shows one, a small bar names its reference, and ← → flip between them. Capture each with `?variant=<n>&bar=0`, and record each in `screens.json` as `"of": <n>, "part": "<name>"`.
|
|
131
123
|
|
|
132
|
-
|
|
124
|
+
Every version stays theirs. A pick that breaks a why they gave: ask once whether the why still holds; never block it.
|
|
133
125
|
|
|
134
|
-
|
|
126
|
+
On their yes, read it back in one line, with three to five **principles**: what this design does on every screen, drawn from their whys and the chosen screen, in their words where they gave some ("one loud thing per screen", "pictures always run to the edge", "type does the decorating"). Each is specific enough that a page could break it. A correction rewrites a principle. Then read its base's motion unless the brief's is none ([library.md](references/library.md)), copy it to `prototype/first.html`, and set `"chosen": n` in `screens.json`. When the brief's `decides` names someone else, they confirm it first.
|
|
135
127
|
|
|
136
|
-
|
|
128
|
+
**In context, before the identity.** A studio shows a chosen concept where it will live before it is signed off. Build two more pages from the chosen screen: its phone view (390 wide), and the brief's key screen that is hardest for this look (the densest list, a form), in the chosen screen's frame and principles, each page opening with its own job. Check them like the eight, and show them beside the chosen screen with the direction. If the look breaks on real content, say where in one line: going back to another pick is still cheap. The prototype starts from these pages.
|
|
137
129
|
|
|
138
130
|
## Write `docs/design/design-direction.md`
|
|
139
131
|
|
|
@@ -142,26 +134,28 @@ Record the result in `first.html` itself, its `LOOK` and its CSS, never as a que
|
|
|
142
134
|
|
|
143
135
|
- takeaway: <from the design brief>
|
|
144
136
|
- headline: "<the one they picked>"
|
|
145
|
-
- carries: <what the chosen screen holds, in
|
|
146
|
-
- for the prototype: <everything else the first screen needs
|
|
137
|
+
- carries: <what the chosen screen holds, in fill order>
|
|
138
|
+
- for the prototype: <everything else the first screen needs>
|
|
147
139
|
- ownable: <what, from the product's world>
|
|
148
|
-
- five seconds: <what it is n of 3, what to do n of 3, feel words; people's answers when given; "not run" and why otherwise>
|
|
149
140
|
|
|
150
141
|
## Composition
|
|
151
142
|
<The chosen first screen in words, complete enough to rebuild with no picture: where everything sits, what overlaps or runs off, how much is empty, how big type is against the rest.>
|
|
152
143
|
|
|
153
144
|
- navigation: <one sentence>
|
|
154
|
-
- zones: <
|
|
155
|
-
- holds across screens: <
|
|
145
|
+
- zones: <one line each>
|
|
146
|
+
- holds across screens: <how empty, type scale, picture share, margin, radius, edges, density>
|
|
156
147
|
- pictures: <how they are treated>
|
|
157
|
-
- motion: <what moves,
|
|
158
|
-
- finish: <
|
|
148
|
+
- motion: <what moves, trigger, ms, easing, within the brief's pick; or "none">
|
|
149
|
+
- finish: <a pasteable recipe; or "none">
|
|
150
|
+
|
|
151
|
+
## Principles
|
|
152
|
+
- <three to five, as confirmed: what every screen of this design does>
|
|
159
153
|
|
|
160
154
|
## Hierarchy
|
|
161
155
|
1. <first read> 2. <second> 3. <the rest>. Primary action: <what, where>.
|
|
162
156
|
|
|
163
157
|
## Voice
|
|
164
|
-
<from the design brief,
|
|
158
|
+
<from the design brief, with the headline as its sample>
|
|
165
159
|
|
|
166
160
|
## Look, as built
|
|
167
161
|
Proposal; `design-identity` refines it.
|
|
@@ -169,17 +163,15 @@ Proposal; `design-identity` refines it.
|
|
|
169
163
|
- colours: ground <#…>, ink <#…>, accent <#… or none>
|
|
170
164
|
```
|
|
171
165
|
|
|
172
|
-
No reference names, links or paths
|
|
173
|
-
|
|
174
|
-
> Change anything, or take this into the identity (type and colour, refined on this screen)?
|
|
166
|
+
No reference names, links or paths. Then the direction in up to five lines:
|
|
175
167
|
|
|
176
|
-
|
|
168
|
+
> Change anything, or go on to the identity?
|
|
177
169
|
|
|
178
170
|
## Do not
|
|
179
171
|
|
|
180
|
-
- Rank the screens, or
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
- Fit more
|
|
184
|
-
-
|
|
172
|
+
- Rank the screens, or recommend from taste: the one recommendation names the design brief line it serves.
|
|
173
|
+
- Add anything their board does not have, or anything they wrote to leave out.
|
|
174
|
+
- Show a concept that drops the idea it develops, or copies its reference's layout.
|
|
175
|
+
- Fit more text on a screen than its base carries.
|
|
176
|
+
- Undo what they like because a check flagged it.
|
|
185
177
|
- Take a reference's content, pictures or words.
|