@jonandev/longbeard 0.13.0 → 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 -5
- package/CHANGELOG.md +27 -0
- package/README.md +3 -4
- package/beard.json +6 -17
- package/bin/long-beard.js +2 -2
- package/package.json +1 -1
- package/skills/design/SKILL.md +4 -6
- package/skills/design-brief/SKILL.md +5 -5
- package/skills/design-check/SKILL.md +1 -1
- package/skills/design-check/references/design-rules.md +26 -4
- package/skills/design-check/scripts/rules.mjs +143 -9
- package/skills/design-direction/SKILL.md +70 -52
- package/skills/design-direction/references/design-floor.md +118 -0
- package/skills/design-direction/references/graphic.md +5 -6
- package/skills/design-direction/references/library.md +6 -6
- package/skills/design-direction/references/screen-template.html +2 -2
- 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 +12 -9
- package/skills/design-direction/scripts/colours.mjs +247 -0
- package/skills/design-direction/scripts/moodboard.mjs +1 -1
- package/skills/design-direction/scripts/rules.mjs +747 -0
- package/skills/design-direction/scripts/sheet.mjs +3 -1
- package/skills/design-figma/SKILL.md +1 -1
- package/skills/design-identity/SKILL.md +9 -7
- package/skills/design-identity/references/design-floor.md +118 -0
- package/skills/design-identity/scripts/colours.mjs +35 -1
- package/skills/design-identity/scripts/sheet.mjs +3 -1
- package/skills/design-moodboard/SKILL.md +6 -2
- package/skills/design-moodboard/references/graphic.md +1 -1
- package/skills/design-moodboard/scripts/group.mjs +1 -1
- package/skills/design-moodboard/scripts/moodboard.mjs +1 -1
- package/skills/design-prototype/SKILL.md +51 -48
- package/skills/design-prototype/references/design-floor.md +118 -0
- package/skills/design-prototype/references/design-md-template.md +3 -1
- package/skills/design-prototype/references/graphic.md +6 -5
- package/skills/design-prototype/references/variants.js +43 -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 +6 -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 -204
- package/skills/design-direction/references/full-build.md +0 -20
- package/skills/design-direction/references/grid.md +0 -97
- package/skills/design-direction/scripts/layout-diff.mjs +0 -118
- package/skills/design-families/SKILL.md +0 -139
- 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 -609
- package/skills/design-families/scripts/tag.mjs +0 -289
- package/skills/design-prototype/references/design-rules.md +0 -204
- package/skills/design-prototype/references/five-second.md +0 -46
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
# Design rules
|
|
2
|
-
|
|
3
|
-
How a screen is checked. Read by `design-direction` and `design-prototype` before they prototype and by `design-check` on every frame and build.
|
|
4
|
-
|
|
5
|
-
These rules decide execution, never the look. The direction and `DESIGN.md` decide the look. A rule that seems to ask for a colour, a typeface or a style is misread. It asks only that whatever was chosen is used with intent.
|
|
6
|
-
|
|
7
|
-
## How to use this
|
|
8
|
-
|
|
9
|
-
- Check from a screenshot. Every check below can be passed or failed by looking at a rendered screen at its real size. When a check needs a state you cannot see (focus, error, empty), it needs that state's frame, and a missing frame fails rule 8.
|
|
10
|
-
- Go in order: **Idea** first, then every **hard** check, then **soft**.
|
|
11
|
-
- **Hard** is the floor: structure, contrast, targets, focus and states. A hard failure blocks the screen. `DESIGN.md` cannot waive it, with one exception: a colour the person liked by name and kept under the contrast level, marked `WARN liked, kept` in `DESIGN.md`, is reported as a warning, not a block.
|
|
12
|
-
- **Soft** is a default. `DESIGN.md` may override a soft check on purpose, with a written reason. A soft finding with no reason in `DESIGN.md` is reported, not blocked.
|
|
13
|
-
- A finding is four things: the rule (number and check), hard or soft, where on the screen, and the fix.
|
|
14
|
-
- The shared core applies to everything, except where the Graphics list says it does not. Then add the site, app or graphics list, whichever the brief's surface says.
|
|
15
|
-
|
|
16
|
-
## 0. Idea
|
|
17
|
-
|
|
18
|
-
**Principle:** the screen says one thing about this product that a screen from another product would not.
|
|
19
|
-
|
|
20
|
-
- [soft] Cover the logo and the name. Is it still recognisably this product, from its content, imagery, voice or structure? A screen that could belong to any product in the category fails.
|
|
21
|
-
- [soft] You can say what the screen is for in one sentence, and the most visible element serves that sentence.
|
|
22
|
-
- [soft] The ownable idea in `DESIGN.md` (or the direction, before `DESIGN.md` exists) shows up somewhere you can point to.
|
|
23
|
-
|
|
24
|
-
## 1. Hierarchy
|
|
25
|
-
|
|
26
|
-
**Principle:** the eye lands first on what matters most, then moves in the order the task needs.
|
|
27
|
-
|
|
28
|
-
- [hard] Exactly one element is the most prominent on the screen. Squint or blur the shot: one thing still stands out.
|
|
29
|
-
- [hard] The primary action is easier to find than any secondary action. If two actions look equally important, only one of them should be.
|
|
30
|
-
- [soft] Prominence comes from at most two of size, weight, colour and position at once. Using all four on one element is shouting.
|
|
31
|
-
- [soft] Secondary text (meta, captions, help) is visibly quieter than body text, by lighter colour or smaller size, not both pushed to the limit.
|
|
32
|
-
|
|
33
|
-
## 2. Grouping
|
|
34
|
-
|
|
35
|
-
**Principle:** things that belong together look together, and things that do not are kept apart.
|
|
36
|
-
|
|
37
|
-
- [hard] The space between related items is clearly smaller than the space between groups. A label sits closer to its field than to the field above.
|
|
38
|
-
- [soft] Each group is separated by one device: space, a tone step, a box, or a line. Two at once (a boxed card with a divider inside a tinted panel) is noise.
|
|
39
|
-
- [soft] A reader can count the groups on the screen at a glance, and the count matches the sections the brief describes.
|
|
40
|
-
|
|
41
|
-
## 3. Alignment and grid
|
|
42
|
-
|
|
43
|
-
**Principle:** every element sits on a line shared with something else.
|
|
44
|
-
|
|
45
|
-
- [hard] Left edges of text blocks in one column line up. No block is nudged a few pixels off its neighbours.
|
|
46
|
-
- [soft] The screen has a small number of alignment lines (often a column grid). Draw them on the shot: an element that touches none of them needs a reason.
|
|
47
|
-
- [soft] Centred alignment is used for a single moment (an empty state, a hero line), not as the default for whole sections of left-reading content.
|
|
48
|
-
- [soft] Numbers in a column align on the right or on the decimal, so they compare.
|
|
49
|
-
|
|
50
|
-
## 4. Spacing rhythm
|
|
51
|
-
|
|
52
|
-
**Principle:** space comes from a short scale, and bigger gaps mean bigger separations.
|
|
53
|
-
|
|
54
|
-
- [soft] Every gap on the screen comes from the spacing scale in `DESIGN.md`. Measure five gaps at random: all are on the scale.
|
|
55
|
-
- [soft] There are at most three or four distinct gap sizes in one view, and each has a job (inside a component, between items, between groups, between sections).
|
|
56
|
-
- [soft] Nothing touches the edge of its container. Text inside a box has padding at least as large as the gap between its lines.
|
|
57
|
-
- [soft] Dense views stay dense on purpose: a table or list keeps tight rows rather than inheriting marketing-page spacing.
|
|
58
|
-
|
|
59
|
-
## 5. Typography
|
|
60
|
-
|
|
61
|
-
**Principle:** a few sizes, far apart, set for reading.
|
|
62
|
-
|
|
63
|
-
- [soft] The view uses at most five font sizes, and adjacent sizes are clearly different (roughly a 1.2× step or more), not 15, 16 and 17.
|
|
64
|
-
- [soft] Body text runs about 45 to 80 characters per line on desktop. Count one line.
|
|
65
|
-
- [soft] Body line height is visibly looser than heading line height. Headings of two lines do not drift apart.
|
|
66
|
-
- [soft] Weight does the work before size. A label is not set larger to be noticed when bold would do.
|
|
67
|
-
- [hard] No text is clipped, overlapped, or cut mid-word by its container, in any language the product ships.
|
|
68
|
-
|
|
69
|
-
## 6. Colour
|
|
70
|
-
|
|
71
|
-
**Principle:** colour carries meaning, and the meaning stays the same everywhere.
|
|
72
|
-
|
|
73
|
-
- [hard] Body text has a contrast ratio of at least 4.5:1 against its background. Large text (24px, or 18.66px bold, and up) and the visible parts of controls and icons have at least 3:1. When `DESIGN.md` or the design brief sets the level to AAA: 7:1 for body text and 4.5:1 for large text.
|
|
74
|
-
- [hard] Colour is never the only signal. An error, a selected item or a required field also changes shape, weight, an icon or text.
|
|
75
|
-
- [soft] Every colour on the screen is a token in `DESIGN.md`. Pick three at random: each maps to a named token.
|
|
76
|
-
- [hard] A product with more than one theme has one set of colour tokens, with a value for each theme, and passes every check here in each theme. A colour that stays the same when the theme changes, and should not, fails.
|
|
77
|
-
- [soft] The accent colour marks action or state, and is not also used for decoration on the same screen.
|
|
78
|
-
- [soft] Status colours (error, warning, success) are used for status only.
|
|
79
|
-
|
|
80
|
-
## 7. Consistency
|
|
81
|
-
|
|
82
|
-
**Principle:** the same thing looks and behaves the same everywhere.
|
|
83
|
-
|
|
84
|
-
- [hard] One action has one look. Two primary buttons on different screens are the same component, same size and same label case.
|
|
85
|
-
- [soft] Components come from the Figma library or the codebase's components. A one-off that looks like a library component, but is slightly different, fails.
|
|
86
|
-
- [soft] Icons share a style: one stroke weight or one fill style, one corner treatment, one optical size.
|
|
87
|
-
- [soft] The same word means the same thing. "Delete" and "Remove" are not both used for one action.
|
|
88
|
-
|
|
89
|
-
## 8. States
|
|
90
|
-
|
|
91
|
-
**Principle:** every screen is shown in every state a person will meet.
|
|
92
|
-
|
|
93
|
-
- [hard] The screen has a frame for each of empty, loading and error that a person can reach, next to the default. A state nobody can reach is recorded as not needed, with the reason. A reachable state with no frame is a failure, not a later task.
|
|
94
|
-
- [hard] Empty says what goes here and gives the one action that fills it. Error says what went wrong in plain words and how to recover.
|
|
95
|
-
- [hard] Interactive components show hover (pointer surfaces), focus, pressed, disabled, and selected where they apply. Each state is visibly different from default.
|
|
96
|
-
- [soft] Loading keeps the layout's shape (skeleton or reserved space), so content does not jump when it arrives.
|
|
97
|
-
- [soft] Long content is shown: the longest real name, a big number, a two-line title. Short sample text hides overflow.
|
|
98
|
-
|
|
99
|
-
## 9. Affordance and feedback
|
|
100
|
-
|
|
101
|
-
**Principle:** what can be acted on looks like it, and every action visibly answers.
|
|
102
|
-
|
|
103
|
-
- [hard] Every interactive element looks interactive without hovering. Text links are distinct from body text by more than colour alone, unless their position makes them obvious (a nav bar).
|
|
104
|
-
- [hard] Nothing that looks interactive is not. A card that looks clickable is clickable, or loses the look.
|
|
105
|
-
- [soft] Each action has a visible result frame: a saved state, a toast, the item appearing in the list, a progress indicator for anything over a second.
|
|
106
|
-
- [soft] Destructive actions look different from safe ones and are never the default or most prominent option.
|
|
107
|
-
|
|
108
|
-
## 10. Accessibility
|
|
109
|
-
|
|
110
|
-
**Principle:** the screen works for people who see, move and read differently.
|
|
111
|
-
|
|
112
|
-
- [hard] The focused state of every interactive element shows a visible indicator with at least 3:1 contrast against what is around it. Check it in the focus frame.
|
|
113
|
-
- [hard] Targets are at least 24×24 CSS pixels, or have that much space around them (WCAG 2.2 AA). The app list raises this for touch.
|
|
114
|
-
- [hard] Every input has a visible label. A placeholder alone is not a label.
|
|
115
|
-
- [hard] Text is real text, not text in an image, except in logos.
|
|
116
|
-
- [soft] The screen still reads at 200% text size: nothing important is cut off in the zoomed frame.
|
|
117
|
-
|
|
118
|
-
## 11. Copy
|
|
119
|
-
|
|
120
|
-
**Principle:** words do the job of the screen in the product's own voice, made from facts it has.
|
|
121
|
-
|
|
122
|
-
**Dated 2026-11-21. Reviewed each release.**
|
|
123
|
-
|
|
124
|
-
- [hard] No placeholder copy: no lorem ipsum, no "Title", no "Button", no "User Name".
|
|
125
|
-
- [soft] Buttons say what happens: "Send invoice", not "Submit", "OK", "Get started" or "Learn more".
|
|
126
|
-
- [soft] Headings are short. A heading that runs over two lines at its size is a sentence that belongs in the body.
|
|
127
|
-
- [soft] The voice matches `DESIGN.md`. Read three strings aloud: they sound like one product.
|
|
128
|
-
- [soft] No genre filler: unlock, supercharge, seamless, elevate, effortless, all-in-one, and "not just X, it's Y". Sincerity is shown, not claimed ("honest", "simply").
|
|
129
|
-
- [soft] A rhetorical device (a heading in two fragments, "X, not Y", a row of three figures) appears once on a screen, where it lands hardest.
|
|
130
|
-
- [soft] No detail is invented. Every number, name and quote traces to the brief, or is marked as assumed (see the prototype's stand-in marks). A section with nothing true to say is shorter or gone.
|
|
131
|
-
- [soft] Voice test: would this voice suit a product in another trade? If yes, it is not this product's yet.
|
|
132
|
-
|
|
133
|
-
## 12. Imagery
|
|
134
|
-
|
|
135
|
-
**Principle:** pictures show the real thing, or there are none.
|
|
136
|
-
|
|
137
|
-
- [soft] Images show this product's subject, people or interface. A stock scene that fits any product in the category fails.
|
|
138
|
-
- [soft] Where a picture belongs, there is a picture, not a grey box, a gradient or a text block pretending.
|
|
139
|
-
- [soft] Images share one treatment: one crop logic, one colour handling, one corner shape.
|
|
140
|
-
- [hard] Text over an image meets the contrast floor in rule 6 across the whole text area, not only on the darkest part.
|
|
141
|
-
|
|
142
|
-
## 13. Responsive
|
|
143
|
-
|
|
144
|
-
**Principle:** each size is designed, not squeezed.
|
|
145
|
-
|
|
146
|
-
- [hard] At mobile width (360–390px) nothing scrolls sideways, nothing is clipped, and nothing overlaps.
|
|
147
|
-
- [hard] The primary action is reachable at every size without hunting: visible, or one obvious step away.
|
|
148
|
-
- [soft] The layout changes structure between sizes where it should: columns stack, tables become lists or scroll inside their own box, navigation collapses into one control.
|
|
149
|
-
- [soft] Type and spacing scale down a step on mobile, not to illegible sizes. Body text stays at least 16px.
|
|
150
|
-
|
|
151
|
-
## 14. Tells
|
|
152
|
-
|
|
153
|
-
**Dated 2026-11-25. Reviewed each release.** Add new tells, retire ones that stopped being defaults.
|
|
154
|
-
|
|
155
|
-
A tell is a device that makes a screen look produced by default rather than designed for this product. Most began as good ideas. They are tells because they arrive without a reason. Every check here is **soft**: present, and `DESIGN.md` gives no reason for it. This list never says what to use instead. That comes from the direction. A device that came with a look they chose on rendered screens is there on purpose: `DESIGN.md` says under Decisions what it does for this product.
|
|
156
|
-
|
|
157
|
-
- [soft] Purple-to-blue gradients on backgrounds, buttons, glows or headline text.
|
|
158
|
-
- [soft] Translucent blurred panels used on two or more surfaces.
|
|
159
|
-
- [soft] The same soft grey shadow under every card.
|
|
160
|
-
- [soft] A row of three identical feature cards, each an icon in a rounded square, a heading and two lines.
|
|
161
|
-
- [soft] Emoji used as icons or bullets.
|
|
162
|
-
- [soft] A tiny tracked uppercase label above every heading, or a pill badge ("New", "Beta") above the hero line.
|
|
163
|
-
- [soft] One word of a headline singled out in another face, colour or underline.
|
|
164
|
-
- [soft] A cream ground with a terracotta or rust accent, used as a shortcut to "warm".
|
|
165
|
-
- [soft] Decorative monospace labels, index numbering (01 / 02 / 03) as ornament, hairline rules boxing everything, or design-tool marks (crosshairs, crop marks) as decoration.
|
|
166
|
-
- [soft] A fake dashboard made of grey bars and donut charts where a real interface fragment should be.
|
|
167
|
-
- [soft] Invented social proof: logos, quotes, star rows or user counts the product does not have.
|
|
168
|
-
- [soft] Every section in the same layout, or the stock order hero, logos, features, testimonial, pricing, call to action, when the argument needs another.
|
|
169
|
-
- [soft] One medium corner radius on everything, chosen by default rather than on purpose.
|
|
170
|
-
- [soft] A face that is the platform's or the framework's default (Inter, Roboto, the system UI stack) with no reference behind it.
|
|
171
|
-
|
|
172
|
-
Removing tells is not the goal. A screen with none and no idea fails rule 0.
|
|
173
|
-
|
|
174
|
-
## Sites
|
|
175
|
-
|
|
176
|
-
Add these when the brief's surface is a site: the page a person lands on to understand or choose.
|
|
177
|
-
|
|
178
|
-
- [hard] The first screen at mobile and desktop says what this is and who it is for, without scrolling.
|
|
179
|
-
- [soft] Sections follow the order of the argument the brief makes, and each section is composed differently from the one before.
|
|
180
|
-
- [soft] There is one primary call to action, repeated at most at the end, with the same label.
|
|
181
|
-
- [soft] Proof is real (product shots, named customers the product has, numbers it can stand behind) or absent.
|
|
182
|
-
|
|
183
|
-
## Apps
|
|
184
|
-
|
|
185
|
-
Add these when the brief's surface is an app: the tool a person comes back to.
|
|
186
|
-
|
|
187
|
-
- [hard] Touch targets on touch platforms are at least 44×44 pt (Apple) or 48×48 dp (Material), whichever platform it ships on. The web floor in rule 10 still applies.
|
|
188
|
-
- [hard] The person always knows where they are: the current place in navigation is marked, and the screen title matches the nav item.
|
|
189
|
-
- [soft] Density fits repeated use. Lists and tables show enough rows to work, not marketing-sized cards.
|
|
190
|
-
- [soft] Navigation keeps the same place and shape on every screen of the flow.
|
|
191
|
-
- [soft] Frequent actions are one step away. Rare and destructive ones may be further.
|
|
192
|
-
|
|
193
|
-
## Graphics
|
|
194
|
-
|
|
195
|
-
Add these when the brief's surface is a graphic: a poster, a card, a social post, a piece to look at. A piece counts as a screen.
|
|
196
|
-
|
|
197
|
-
- **Applies:** rules 0 to 3, 5, 6, 11, 12 and 14. Rule 4 holds for the margin and the gaps between groups. Rule 7 holds across the pieces of a set.
|
|
198
|
-
- **Does not apply:** rule 8 (states), rule 9 (affordance), the targets, focus and label checks of rule 10, and rule 13 (responsive). A missing state frame is not a finding.
|
|
199
|
-
- [hard] Readable at its distance. Scale the shot to how the piece is seen (a poster read across a street, about 400 px on its long side; a feed post at phone width). The headline and every fact the brief gives still read.
|
|
200
|
-
- [hard] Nothing important in the trim. On a print piece, no word, fact or logo sits in the trim or the safe margin. A picture or a crop that runs off the edge on purpose is not a finding.
|
|
201
|
-
|
|
202
|
-
## Sources
|
|
203
|
-
|
|
204
|
-
Ideas drawn from, in our own words: Gestalt principles of grouping; WCAG 2.2 (contrast 1.4.3 and 1.4.11, focus visible 2.4.7, target size 2.5.8, labels 3.3.2); Refactoring UI practice (Adam Wathan and Steve Schoger); Apple Human Interface Guidelines and Material Design basics (touch targets, navigation, states); and the tells registry of taste-skill by Leonxlnx (MIT).
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# The full build
|
|
2
|
-
|
|
3
|
-
Read by `design-direction` once they settle on one screen: the jobs that take a quick screen to a full one. It runs once in the step, on that screen only. The principles, the moves and the round's checks are in [grid.md](grid.md).
|
|
4
|
-
|
|
5
|
-
One agent that builds and judges defends its own choices, so the critic is a fresh agent with only what it needs. That is two agents in all: one critic, one fixer.
|
|
6
|
-
|
|
7
|
-
**1. Critique (one fresh agent, pictures only).** It gets: the base reference (cropped to its screen), the screen, `layout-diff.mjs`'s `side.png` and `overlay.png` for it (`--mirror` when the layout turned) and the lines its `diff.json` marks off, the translation's capture, 3× crops of every small device, rule, tight gap and edge beside the same crops of the source (made for it: it runs no scripts), each move's source picture, the moves in words, what they wrote to leave out, and the contrast report. No rules, no brief, no session; only what the product is, in one line. It answers:
|
|
8
|
-
- **Where is this screen less finished than its reference?** Every spot, small ones included (a gap, an edge, a size, a weight, a colour, a picture, text that cannot be read), each with the place in the reference that shows how it should be. The reference is the standard: what it does on purpose is never a fault.
|
|
9
|
-
- **What changed from the translation that no move names?**
|
|
10
|
-
- **In one line, what made the reference work, and does the screen keep it?**
|
|
11
|
-
- **Anything on the screen that no reference has, or that they wrote to leave out?**
|
|
12
|
-
- **What on this screen exists only because of this product?** Not its words or pictures but a thing: its ownable, a mark, a number, a form. An empty answer is a fault, listed like any other: a screen as right for another trade has borrowed and added nothing.
|
|
13
|
-
|
|
14
|
-
It lists; it never redesigns.
|
|
15
|
-
|
|
16
|
-
**2. Fix (one fresh agent), once.** It gets the critic's list, the screen's file and the same pictures, and changes only the spots listed, each toward what the reference does, with what the screen and its references already have; an empty answer to the last question is fixed with the ownable or a thing from the subject's card. The fix is a new version (`<n>-a.html`); the quick version stays theirs to take. Then capture, `layout-diff.mjs` and contrast again, and look at the two side by side yourself: a change that breaks something they liked is undone. No second critic.
|
|
17
|
-
|
|
18
|
-
A spot left is a known fault, said beside the screen, never hidden. A stand-in picture is never a spot: it is listed under what they still supply. When every spot the critic lists is small (within the 15% principle 2 keeps, shows only in a 3× crop and never at the screen's own size, and breaks nothing the reference does on purpose), skip the fix; an empty answer to the product question is never small.
|
|
19
|
-
|
|
20
|
-
Then the round's checks ([grid.md](grid.md)) on the new version: contrast and faults.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# Building the screens
|
|
2
|
-
|
|
3
|
-
Read by `design-direction`, steps 3 and 4. Each screen is one reference rebuilt faithfully with the product's content, changed by one or two things borrowed from others. The agent's own taste adds nothing.
|
|
4
|
-
|
|
5
|
-
Each screen is `.longbeard/design/direction/screens/<n>.html` from [screen-template.html](screen-template.html): plain HTML and CSS in px at 1440 (or the device width for an app), every face and colour a variable in `LOOK`, and a `PROVENANCE` list. The translation before its moves is kept as `screens/<n>-base.html`. Anything the product does not really have yet carries `data-standin="picture"` or `data-standin="fact"`, with `data-standin-note`; their own pictures carry nothing.
|
|
6
|
-
|
|
7
|
-
`.longbeard/design/direction/screens.json`, one entry per screen:
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
[{ "n": 1, "base": "<card name>", "moves": [{ "what": "<the move>", "from": "<card name>", "like": "<their words, or null>" }], "picture": "<its main picture>", "tone": "<light or dark, warm or cool>", "why": "<one line>", "proposed": false, "build": "quick", "state": "built" }]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
`build` is `quick` or `full`. `state` is where it ended: a quick screen `built`; a full screen (their favourite and its hardest screen) `built` while it runs, then `critiqued` (only small spots, nothing fixed) or `fixed`; any job that failed twice `failed` with `"failure": "<why>"`. Optional: `round` (1 when left out), `of` and `part` for a part's version, `of` and `test` for the hardest screen, `fault` (one line), `shot`. The canvas is drawn only when every screen has ended.
|
|
14
|
-
|
|
15
|
-
## Five principles
|
|
16
|
-
|
|
17
|
-
Decide any case by these. They go to every builder as written.
|
|
18
|
-
|
|
19
|
-
### 1. The base stands unless a move names it
|
|
20
|
-
|
|
21
|
-
What no move names stays as the base has it: layout (zones, proportions, margins, where headline, pictures and small text sit), anchors, balance, alignments, devices and picture treatment. The layout always comes from a reference; a move may turn it or take another's, never invent one.
|
|
22
|
-
|
|
23
|
-
- **Left out:** what they wrote to leave out of the base is dropped, or, when the composition needs its role (a ground, a frame, a face), filled from the nearest reference on the board. Never by the agent's own choice.
|
|
24
|
-
- **Liked:** what they like in the base is kept exactly, even against contrast. A liked colour is never stepped to pass: fix the text with what the screen has (the pair's other colour, large text, another crop, the colour moved to a fill behind it); when nothing fits, keep it with a warning and its ratio ("liked terracotta under the label: 3.9:1, AA asks 4.5"). What they never named is kept by its role, and may be swapped for another reference's colour of the same role and strength.
|
|
25
|
-
- A borrowed thing fits around the base's anchors, or goes to another base.
|
|
26
|
-
- Text on a picture sits on a calm area, as light or dark as the source's: the picture is chosen and cropped to the text, never the text moved. With no such picture, say so.
|
|
27
|
-
- A device that held content in its source holds the product's content, or is left out; never empty.
|
|
28
|
-
|
|
29
|
-
### 2. Every measure is a share of the screen, and is kept
|
|
30
|
-
|
|
31
|
-
Sizes, gaps and fills, measured in the source as a share of its width and height, are kept at 1440 within 15%: type sizes, gaps, the room between headline and menu, text to the margin, a label to its picture, a small device's parts, how much of its zone a text block fills.
|
|
32
|
-
|
|
33
|
-
- An element that grew (longer copy) is set smaller within its role; it never eats a neighbour's gap unless the source collides on purpose.
|
|
34
|
-
- A rule ends where it ends in the source; what runs off the screen runs off as there.
|
|
35
|
-
- Text read to act (the menu, a label) takes the size the board's screen references give it, never a poster's smaller size.
|
|
36
|
-
- **A turned layout** turns every gap and alignment with its zone, mirrored, never closed up. Each text block keeps the edge it hangs from and its ragged side; what is grouped with it moves with it.
|
|
37
|
-
|
|
38
|
-
### 3. A borrowed thing keeps its geometry and its why
|
|
39
|
-
|
|
40
|
-
Measure how it sits in its source (size against the screen, what it overlaps and how far, its room) and keep that. **Nothing they left out of a reference is borrowed from it.**
|
|
41
|
-
|
|
42
|
-
**Their why is the rule for using it.** "The orange dot, the only contrast on a quiet page" goes only on a quiet base, alone. A why that describes an arrangement goes only where the arrangement is. If the why would not be true on this base, the move goes to another. A like belongs to its reference, never a house style.
|
|
43
|
-
|
|
44
|
-
### 4. A move changes only what it names
|
|
45
|
-
|
|
46
|
-
One or two moves per screen, spread across the round. A move is one of:
|
|
47
|
-
- **a palette:** another reference's whole palette, or the subject's;
|
|
48
|
-
- **a thing from the subject** they liked (a stamp, a number), changed in form to fit;
|
|
49
|
-
- **a colour by its role:** one they did not name, for another of the same role and strength;
|
|
50
|
-
- **an element:** one device, or a surface finish, from another reference;
|
|
51
|
-
- **the face:** another's display face that can carry the base's headline;
|
|
52
|
-
- **the picture treatment:** another's crop, tone or frame, never its kind of picture;
|
|
53
|
-
- **the layout turned:** mirrored, headline and picture traded, or one zone moved;
|
|
54
|
-
- **the scale:** the headline larger or smaller, as far as another reference goes.
|
|
55
|
-
|
|
56
|
-
A move brings only its one thing: a face move brings no colour, a palette move no face. Moves come from what they like; where they named nothing, propose one from the reading, marked `"proposed": true`. A move the base cannot take is dropped for another.
|
|
57
|
-
|
|
58
|
-
### 5. Nothing from outside the board
|
|
59
|
-
|
|
60
|
-
Every face, colour, element and effect names its reference in `PROVENANCE`; the subject's card counts. The design brief rules out only what it names; a like it rules out is carried by its role.
|
|
61
|
-
|
|
62
|
-
## Which screens
|
|
63
|
-
|
|
64
|
-
Every like is the base of at least one screen, the lead of two; with fewer than eight, the lead and then the likes take a second. **Check the spread on the plan, before building:** no main picture on more than two screens, no tone on more than half, a borrowed thing on two screens at most. A plan that fails changes its pairings. Only a like that says it is the point ("always black and white") repeats.
|
|
65
|
-
|
|
66
|
-
## A quick round
|
|
67
|
-
|
|
68
|
-
**1. Plan (you).** Pair bases and moves, write `screens.json`, check the spread, then one brief per screen, `briefs/<n>.md`: the base's reading and picture path with what they left out of it; each move with its source picture, like and why; the content in fill order; the product's pictures for it; the five principles. Nothing else.
|
|
69
|
-
|
|
70
|
-
**2. Build (a fresh agent per screen, from its brief only).** Translate the base into `screens/<n>-base.html` with the product's content, capture it, and measure it against the reference:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
node <skill>/scripts/layout-diff.mjs <reference picture> .longbeard/design/direction/grid/<n>-base.png --out .longbeard/design/direction/checks/<n>-base
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Fix it until nothing listed is off without a reason. Then make the moves into `screens/<n>.html`, capture, state `built`.
|
|
77
|
-
|
|
78
|
-
**3. Check the round (you).**
|
|
79
|
-
- **Not a copy:** one fresh judge sees every screen beside its base, as numbered thumbnails, and answers yes or no each: *can you tell them apart at a glance* (ground or accent, face, layout turned, a device added or gone, picture treatment)? A no gets another move and is rebuilt; the rebuilt ones go to one judge together.
|
|
80
|
-
- **Spread** again, on what was built.
|
|
81
|
-
- **Contrast,** every screen; a failure blocks the canvas, except a liked colour with its warning. Fixed with the screen's own colours or another crop:
|
|
82
|
-
```
|
|
83
|
-
node <skill>/scripts/screen-contrast.mjs "file://$PWD/.longbeard/design/direction/screens/1.html" --wait-title ready
|
|
84
|
-
```
|
|
85
|
-
- **Faults:** a clipped word, text under 12 px at 1440, a lone last word in a heading, a sentence twice.
|
|
86
|
-
- **Pictures:** `picture-cast.mjs` on the product's pictures; a cast or blown highlights the reference lacks means another picture.
|
|
87
|
-
|
|
88
|
-
**Without fresh agents,** do each job yourself, one screen at a time from its brief alone; as critic, write the list from the prepared pictures before fixing anything. Say the round is weaker, in each screen's `fault` ("built and judged by one agent").
|
|
89
|
-
|
|
90
|
-
## Capture and the canvas
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
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
|
|
94
|
-
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
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
Every screen is captured as `grid/<n>.png` (a full build's newer version as its `shot`). The canvas shows each one with its build (`quick`, `full` or `failed`), its fault, and beside it its base and moves with their pictures and likes; "Beside its base" shows the two together. Rows: each `round`, then each favourite's parts (`of`, `part`) and its hardest screen (`of`, `test`). Without fresh agents, put the round's weakness in a screen's `fault` ("built and judged by one agent"). For an app, or `first seen on: phone`, build and capture at the device size (`?size=390x844`, `--width 390`).
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Put a screen beside the reference it was built from, measured the same way,
|
|
3
|
-
// so the critic's eye has numbers under it. Node 22+, an installed Chrome.
|
|
4
|
-
//
|
|
5
|
-
// node layout-diff.mjs <reference picture> <screen capture> --out <folder> [--mirror]
|
|
6
|
-
//
|
|
7
|
-
// Both pictures are read by measure.mjs (a reference in a presentation frame
|
|
8
|
-
// is read inside it). Writes to --out:
|
|
9
|
-
// diff.json each measure on both sides and whether it is off: the
|
|
10
|
-
// headline's size against the screen, its box, its lines, the
|
|
11
|
-
// type scale, the margins the text keeps on each side, how
|
|
12
|
-
// much is empty and how much is pictures, and every line of
|
|
13
|
-
// text matched to its nearest line in the reference;
|
|
14
|
-
// side.png the reference (cropped to its screen) and the screen, side by side, at one size;
|
|
15
|
-
// overlay.png the screen with the reference faintly over it, at the same size,
|
|
16
|
-
// so a box that moved, a gap that closed or a size that drifted shows.
|
|
17
|
-
// --mirror compares against the reference flipped, for a screen whose layout turned.
|
|
18
|
-
// Sizes are shares of the screen; "off" is more than 15% apart, or a box more
|
|
19
|
-
// than 3% of the screen away. Exit 0 whenever both pictures were read, whatever is
|
|
20
|
-
// off: it reports, the critic decides. Exit 1 when a picture could not be read,
|
|
21
|
-
// 2 when called wrong. A picture that could not be drawn is said on stderr and
|
|
22
|
-
// leaves the exit alone; diff.json is already written.
|
|
23
|
-
// A tall capture is read on its first screen only, and the pictures show that
|
|
24
|
-
// first screen and nothing below it. --out may be relative: it is taken from
|
|
25
|
-
// where this is run, and the pictures land beside diff.json.
|
|
26
|
-
import { spawnSync } from "node:child_process";
|
|
27
|
-
import { mkdirSync, writeFileSync } from "node:fs";
|
|
28
|
-
import { dirname, join, resolve } from "node:path";
|
|
29
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
30
|
-
|
|
31
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
32
|
-
const args = process.argv.slice(2);
|
|
33
|
-
const flag = (name) => {
|
|
34
|
-
const i = args.indexOf(`--${name}`);
|
|
35
|
-
return i === -1 ? null : args.splice(i, 2)[1];
|
|
36
|
-
};
|
|
37
|
-
const has = (name) => {
|
|
38
|
-
const i = args.indexOf(`--${name}`);
|
|
39
|
-
return i === -1 ? false : (args.splice(i, 1), true);
|
|
40
|
-
};
|
|
41
|
-
const out = flag("out");
|
|
42
|
-
const mirror = has("mirror");
|
|
43
|
-
if (args.length !== 2 || !out) {
|
|
44
|
-
console.error("usage: node layout-diff.mjs <reference picture> <screen capture> --out <folder> [--mirror]");
|
|
45
|
-
process.exit(2);
|
|
46
|
-
}
|
|
47
|
-
const [refFile, screenFile] = args.map((f) => resolve(f));
|
|
48
|
-
const outDir = resolve(out);
|
|
49
|
-
mkdirSync(outDir, { recursive: true });
|
|
50
|
-
|
|
51
|
-
function read(file) {
|
|
52
|
-
const r = spawnSync(process.execPath, [join(here, "measure.mjs"), file, "--lines"], { encoding: "utf8", maxBuffer: 1 << 26 });
|
|
53
|
-
if (r.status !== 0) {
|
|
54
|
-
console.error(`layout-diff: could not read ${file}: ${r.stderr.trim()}`);
|
|
55
|
-
process.exit(1);
|
|
56
|
-
}
|
|
57
|
-
return JSON.parse(r.stdout);
|
|
58
|
-
}
|
|
59
|
-
const ref = read(refFile);
|
|
60
|
-
const screen = read(screenFile);
|
|
61
|
-
|
|
62
|
-
// Boxes as [x, y, w, h] shares of the screen read; the reference's flipped when it turned.
|
|
63
|
-
const flip = (b) => (mirror ? [1 - b[0] - b[2], b[1], b[2], b[3]] : b);
|
|
64
|
-
const lines = (m, f = (b) => b) => (m.type?.lines || []).map((l) => ({ size: l.size, px: l.px1440, box: f(l.box), case: l.case }));
|
|
65
|
-
const R = lines(ref, flip);
|
|
66
|
-
const S = lines(screen);
|
|
67
|
-
const round = (n, d = 3) => (n == null ? null : Math.round(n * 10 ** d) / 10 ** d);
|
|
68
|
-
const ratioOff = (a, b) => a != null && b != null && a > 0 && b > 0 && Math.max(a / b, b / a) > 1.15;
|
|
69
|
-
const rows = [];
|
|
70
|
-
const row = (what, r, s, off) => rows.push({ what, reference: r, screen: s, off: Boolean(off) });
|
|
71
|
-
|
|
72
|
-
const rd = ref.type?.display, sd = screen.type?.display;
|
|
73
|
-
row("headline size (share of the screen's height)", round(rd?.size), round(sd?.size), ratioOff(rd?.size, sd?.size));
|
|
74
|
-
if (rd?.box && sd?.box) {
|
|
75
|
-
const rb = flip(rd.box);
|
|
76
|
-
const far = Math.max(...rb.map((v, i) => Math.abs(v - sd.box[i]))) > 0.03;
|
|
77
|
-
row("headline box [x, y, w, h]", rb.map((v) => round(v)), sd.box.map((v) => round(v)), far);
|
|
78
|
-
}
|
|
79
|
-
row("headline lines", ref.type?.headline?.lines ?? null, screen.type?.headline?.lines ?? null, (ref.type?.headline?.lines ?? 0) !== (screen.type?.headline?.lines ?? 0));
|
|
80
|
-
row("type scale (headline over body)", ref.type?.scale ?? null, screen.type?.scale ?? null, ratioOff(ref.type?.scale, screen.type?.scale));
|
|
81
|
-
const margins = (L) => (L.length ? { left: round(Math.min(...L.map((l) => l.box[0]))), right: round(1 - Math.max(...L.map((l) => l.box[0] + l.box[2]))), top: round(Math.min(...L.map((l) => l.box[1]))), bottom: round(1 - Math.max(...L.map((l) => l.box[1] + l.box[3]))) } : null);
|
|
82
|
-
const rm = margins(R), sm = margins(S);
|
|
83
|
-
for (const side of ["left", "right", "top", "bottom"]) if (rm && sm) row(`text margin, ${side}`, rm[side], sm[side], Math.abs(rm[side] - sm[side]) > 0.03 && ratioOff(rm[side] + 0.001, sm[side] + 0.001));
|
|
84
|
-
row("empty (%)", ref.traits?.empty ?? null, screen.traits?.empty ?? null, Math.abs((ref.traits?.empty ?? 0) - (screen.traits?.empty ?? 0)) > 15);
|
|
85
|
-
row("pictures (%)", ref.traits?.pictures ?? null, screen.traits?.pictures ?? null, Math.abs((ref.traits?.pictures ?? 0) - (screen.traits?.pictures ?? 0)) > 15);
|
|
86
|
-
row("small text blocks", ref.type?.small ?? null, screen.type?.small ?? null, (screen.type?.small ?? 0) > (ref.type?.small ?? 0) + 1);
|
|
87
|
-
|
|
88
|
-
// Each line of the screen matched to the nearest line of the reference of a like size.
|
|
89
|
-
const matched = S.map((s) => {
|
|
90
|
-
let best = null, cost = Infinity;
|
|
91
|
-
for (const r of R) {
|
|
92
|
-
const c = Math.hypot(s.box[0] - r.box[0], s.box[1] - r.box[1]) + Math.abs(Math.log(s.size / r.size));
|
|
93
|
-
if (c < cost) (cost = c), (best = r);
|
|
94
|
-
}
|
|
95
|
-
if (!best) return { screen: s, reference: null, off: true };
|
|
96
|
-
const moved = Math.hypot(s.box[0] - best.box[0], s.box[1] - best.box[1]);
|
|
97
|
-
return { screen: { px: s.px, box: s.box.map((v) => round(v)) }, reference: { px: best.px, box: best.box.map((v) => round(v)) }, moved: round(moved), off: moved > 0.03 || ratioOff(s.size, best.size) };
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
const off = rows.filter((r) => r.off).map((r) => r.what);
|
|
101
|
-
const report = { reference: refFile, screen: screenFile, mirror, off, measures: rows, lines: matched, unread: "pictures' boxes and the gaps between them are not measured here: the critic judges them on side.png and overlay.png" };
|
|
102
|
-
writeFileSync(join(outDir, "diff.json"), JSON.stringify(report, null, 1));
|
|
103
|
-
|
|
104
|
-
// The pictures: the reference cropped to the screen measure.mjs read, both at 1440 wide.
|
|
105
|
-
// That is the frame it found, else (a tall capture, firstScreen) the top 1440 by 900 share, else the whole.
|
|
106
|
-
const [fx, fy, fw, fh] = ref.frame?.box || [0, 0, ref.width, ref.firstScreen ? Math.round((ref.width * 900) / 1440) : ref.height];
|
|
107
|
-
const W = 1440, H = Math.round((W * fh) / fw);
|
|
108
|
-
const refLayer = (opacity) => `<div style="position:absolute;inset:0;overflow:hidden;opacity:${opacity}"><img src="${pathToFileURL(refFile)}" style="position:absolute;left:${(-fx * W) / fw}px;top:${(-fy * W) / fw}px;width:${(ref.width * W) / fw}px;${mirror ? "transform:scaleX(-1);transform-origin:" + ((fx + fw / 2) * W) / fw + "px 0;" : ""}"></div>`;
|
|
109
|
-
const shot = `<img src="${pathToFileURL(screenFile)}" style="position:absolute;inset:0;width:${W}px;height:${H}px;object-fit:cover;object-position:top">`;
|
|
110
|
-
const page = (body, w) => `<!doctype html><html><head><title>ready</title><style>*{margin:0}body{width:${w}px;background:#777}.f{position:relative;width:${W}px;height:${H}px;overflow:hidden;display:inline-block;vertical-align:top}</style></head><body>${body}</body></html>`;
|
|
111
|
-
writeFileSync(join(outDir, "side.html"), page(`<div class="f">${refLayer(1)}</div><div class="f" style="margin-left:20px">${shot}</div>`, W * 2 + 20));
|
|
112
|
-
writeFileSync(join(outDir, "overlay.html"), page(`<div class="f">${shot}${refLayer(0.4)}</div>`, W));
|
|
113
|
-
for (const [name, w] of [["side", W * 2 + 20], ["overlay", W]]) {
|
|
114
|
-
const c = spawnSync(process.execPath, [join(here, "capture.mjs"), pathToFileURL(join(outDir, `${name}.html`)).href, "--out", join(outDir, `${name}.png`), "--width", String(w), "--clip", `0,0,${w},${H}`], { encoding: "utf8" });
|
|
115
|
-
if (c.status !== 0) console.error(`layout-diff: ${name}.png not drawn: ${c.stderr.trim()}`);
|
|
116
|
-
}
|
|
117
|
-
console.log(off.length ? `off: ${off.join("; ")}` : "nothing measured is off");
|
|
118
|
-
console.log(`lines off: ${matched.filter((m) => m.off).length} of ${matched.length}. ${join(outDir, "diff.json")}, side.png, overlay.png`);
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: design-families
|
|
3
|
-
description: >
|
|
4
|
-
Optional. Sort a big or messy moodboard (a large Figma board, a folder, a
|
|
5
|
-
wide search) into families: groups of references that look alike from across
|
|
6
|
-
a room. Every reference is measured and tagged, sorted by script, checked by
|
|
7
|
-
eye, and named for what is seen. The families become the headings of the
|
|
8
|
-
board design-direction shows; nothing is dropped, since a reference they
|
|
9
|
-
like can come from any family. Call it by hand, or when
|
|
10
|
-
design or design-moodboard offers it for a board over about 60 references.
|
|
11
|
-
Never worth it for a board someone already curated to a few dozen.
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Design families
|
|
15
|
-
|
|
16
|
-
**Needs:** `docs/design/design-moodboard.md`
|
|
17
|
-
**Uses if there:** `docs/design/design-brief.md`
|
|
18
|
-
**Writes:** `docs/design/design-families.md`
|
|
19
|
-
|
|
20
|
-
One job: sort a board into looks so choosing is easy. It reads and sorts the board; it builds no screens, and it never narrows it: every family stays on the board `design-direction` shows, as its headings.
|
|
21
|
-
|
|
22
|
-
Comes out:
|
|
23
|
-
|
|
24
|
-
- **`docs/design/design-families.md`**, committed: each family named, what it shares, and how big it is.
|
|
25
|
-
- **In Figma**, for a Figma board: a new page, `Families`, with one section per family holding copies of its cards. Their own pages are never moved or changed.
|
|
26
|
-
- **`.longbeard/design/families/`**, gitignored: `profiles.json`, `tags.tsv`, one TSV per family, the families page.
|
|
27
|
-
|
|
28
|
-
**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.
|
|
29
|
-
|
|
30
|
-
## Gate
|
|
31
|
-
|
|
32
|
-
1. No board → `design-moodboard` first, or they give one now (a Figma link, a folder, a list of links).
|
|
33
|
-
2. Under about 60 references → say a board this size is easier to choose from as it is, and stop unless they insist.
|
|
34
|
-
3. A Figma board of hundreds → ask once, "The whole file, or one page or section?", and offer to read only cards their own tags mark as screens. Reading and tagging 1,300 cards cost about 800K tokens.
|
|
35
|
-
|
|
36
|
-
A board `design-moodboard` already read has its captures in `.longbeard/design/moodboard/refs/` and `board.md`. Otherwise run `design-moodboard` on it first: it reads the board (Figma originals, crops from shared sheets, captures for links) and keeps every card, with no picker.
|
|
37
|
-
|
|
38
|
-
## 1. Measure, in one browser run
|
|
39
|
-
|
|
40
|
-
`links.tsv` (`name<TAB>link`) for the keeps with a live page, then:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
node <skill>/scripts/measure.mjs .longbeard/design/moodboard/refs --links .longbeard/design/families/links.tsv --profiles .longbeard/design/families/profiles.json --jobs 6
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
From each picture: how light, how empty, how loud, how busy, its colours, and where things sit on a 6×4 grid. From a live page: the largest type and where it sits, what the screen is made of, its fonts, gradients and patterns. A screen on a presentation surround is measured inside the surround. Never one call per image, and never read the profiles into the chat.
|
|
47
|
-
|
|
48
|
-
## 2. Tag what numbers cannot see
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
node <skill>/scripts/tag.mjs .longbeard/design/families/profiles.json --sheets <scratch>/tag
|
|
52
|
-
node <skill>/scripts/tag.mjs .longbeard/design/families/profiles.json .longbeard/design/families/tags.tsv
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
The first makes sheets of 16 untagged keeps and prints the vocabulary, one vocabulary in two layers:
|
|
56
|
-
|
|
57
|
-
- **The look**, sorted on, stored in `tags`: picture, photo, type, weight, layout, colour, surface, scale, and `motion` (none, kinetic, blur-grain, ui, repetition) for gifs, videos and live pages.
|
|
58
|
-
- **What it is and is for**, stored in `about`, checked but never sorted on: format, domain, mood, hue, density, and `shows` (portrait, close-crop, landscape, still-life, classical-art, cutout, type-only), what the picture shows. It is what a brief and a search pick references by.
|
|
59
|
-
|
|
60
|
-
Write a header row naming the columns (`name<TAB>picture<TAB>…<TAB>scale<TAB>motion<TAB>format<TAB>domain<TAB>mood<TAB>hue<TAB>density<TAB>note`, any order), then one row per keep from the sheets. The eight look fields are required; motion, the about fields and the note are optional, an empty cell when not seen. A row without a header is the old one: name, the eight look fields, an optional note. A header can also name one `line` column: the keep's tags as one flat line of words, the way people keep them by hand, look first, then ` · `, then about: `photo colour serif weight:bold split muted grain large kinetic · web-hero fashion calm red airy portrait`. It fills the fields the cells leave empty; a field in both is refused. A word in two fields (today none, ui, collage, mono, duotone, bold, editorial) is written `field:word`, as `type:mono` or `mood:editorial`; bare, or in no field, it refuses the merge and is named. Leave none out: a line without picture, photo or motion reads them as none. Every tool reads such a line with `parseTagLine` from `tag.mjs`, and writes one with `formatTagLine`. The second command checks every word against its field. Their own board tags seed the rows: map each to the vocabulary and tag only what is left. Tag what is there, never what is good. On a big board, split the sheets across a few agents.
|
|
61
|
-
|
|
62
|
-
## 3. Sort, then the eye
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
node <skill>/scripts/families.mjs .longbeard/design/families/profiles.json --board .longbeard/design/families/board.md --sliders "loud=2,picture=4,rich=2,cool=2,dense=2"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
The sliders are the design brief's personality, copied from its `personality:` line (`picture-led` is `picture`; `playful` and `new` are passed over, since a picture cannot tell them: judge those by eye in step 4). It joins the closest references first and stops when groups no longer look alike, so outliers stay strays. A wide gap on what is seen first (how empty, how loud, type size, where things sit, what the picture is) keeps two apart; light or dark does not. A bin far bigger than the rest is sorted again on its own and said; one it cannot split is sorted alone with `--only .longbeard/design/families/families/f3.tsv --spread 0.4` (its parts land in `families/families/f3-split/`). `--spread` lower splits finer.
|
|
69
|
-
|
|
70
|
-
Then check each family by eye on contact sheets, never picture by picture:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
node <skill>/scripts/contact-sheet.mjs .longbeard/design/families/families/f1.tsv --out <scratch>/f1 --contain
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
- Split a family that holds two looks, merge two that are one, place each stray. Strays are often the most distinctive references: never drop one for being a stray.
|
|
77
|
-
- **Name each family for what is seen**, in words a person outside design would use ("one huge word is the picture", "dark app pages, headline centred"). If the only honest name is a number ("dark, all picture"), it is a bin: break it up.
|
|
78
|
-
- As many families as there are looks. Never merge to reach a number.
|
|
79
|
-
- On hundreds of references: check each family's six most typical now, and every member of a family once it is taken.
|
|
80
|
-
|
|
81
|
-
## 4. Show them, once
|
|
82
|
-
|
|
83
|
-
The families page, each family as its six most typical, its size and what it shares:
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
node <skill>/scripts/moodboard.mjs .longbeard/design/families/board.md --overview 6 --out .longbeard/design/families/families.html
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
For a Figma board, also build the `Families` page with `use_figma` (load `figma-use` first): a section per family, named, with copies of its cards, most typical first. Read the names back from the nodes.
|
|
90
|
-
|
|
91
|
-
In the same message, one line per family: its name, what the eye changed from the numbers, and, as hints only, which fit the design brief's personality, which look like its "never", and which rely on pictures they do not have. Where what they chose sits far from what they said ("you said quiet; your board is loud"), say it once. Then:
|
|
92
|
-
|
|
93
|
-
> These are the headings of your board from here on; every reference stays on it. Note any family that looks like two, or belongs with another, or say go.
|
|
94
|
-
|
|
95
|
-
- **A split or merge note:** apply it, show the page again. `families.mjs` will not overwrite a board: remove `.longbeard/design/families/board.md` before sorting again.
|
|
96
|
-
- **Go:** write the doc.
|
|
97
|
-
|
|
98
|
-
## Write `docs/design/design-families.md`
|
|
99
|
-
|
|
100
|
-
```markdown
|
|
101
|
-
# Families: <product>
|
|
102
|
-
|
|
103
|
-
<n> references sorted into <n> families and <n> strays.
|
|
104
|
-
|
|
105
|
-
## <family name>
|
|
106
|
-
<what its members share, in one or two lines: how much type against picture, how empty, how loud, how pictures are treated> · <n> references
|
|
107
|
-
|
|
108
|
-
## <family name>
|
|
109
|
-
…
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
No names, links or paths. The members of each family are in `.longbeard/design/families/families/f<n>.tsv`, and `.longbeard/design/families/board.md` holds every card under its family: the board `design-direction` shows.
|
|
113
|
-
|
|
114
|
-
Then the next step in one line: `design-direction`.
|
|
115
|
-
|
|
116
|
-
## A library that grows
|
|
117
|
-
|
|
118
|
-
When new references arrive after the families are named, add them without sorting again: nothing already in a family moves, and the names stay. Measure and tag only the new keeps into the same `profiles.json` (steps 1 and 2), then:
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
node <skill>/scripts/families.mjs .longbeard/design/families/profiles.json --assign .longbeard/design/families/families.json
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Every reference in no family is new. Each joins the nearest family when it sits within `--spread`, with a confidence from 0 to 1 and its 5 nearest references already in families. The new ones that join nothing are sorted among themselves: a group of three or more is a **seed**, a proposed new family; the rest are strays with their nearest family. It writes `assign.json` and never changes `families.json`.
|
|
125
|
-
|
|
126
|
-
- Check each join by eye on a contact sheet beside its family, low confidence first. Move one that does not belong.
|
|
127
|
-
- Name each seed for what is seen, as in step 3, or fold it into a family by eye.
|
|
128
|
-
- Place each stray as in step 3.
|
|
129
|
-
- Show only what changed: which family each new reference went to, and any new family. Then update `docs/design/design-families.md`: sizes, and any new family.
|
|
130
|
-
|
|
131
|
-
Sort the whole pool again only when they ask, or when the new references outnumber the ones already sorted.
|
|
132
|
-
|
|
133
|
-
## Do not
|
|
134
|
-
|
|
135
|
-
- Run on a curated board of a few dozen without being asked.
|
|
136
|
-
- Move, rename or delete anything on their own Figma pages.
|
|
137
|
-
- Pick a family for them, ask them to take one, or hide one because it looks like their "never". Every family stays on the board.
|
|
138
|
-
- Sort before every keep is measured and tagged, or read profiles into the chat.
|
|
139
|
-
- Sort a named pool from scratch to add a few new references: use `--assign`.
|