@sloppy-ai/skill 0.0.0-stage → 1.10.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.
@@ -0,0 +1,188 @@
1
+ # Motion
2
+
3
+ The rules for everything that moves: the story, the loop, pace, text that changes, things that arrive and leave, the cursor, drags, scrolling and the camera. The still frame is in `craft.md`; each kit part's props are in `kit.md`; the timing, easing, property, and anti-slop audit is in `motion-review.md`.
4
+
5
+ ## Index
6
+
7
+ 1. [Story](#story): the shape, the beats, the payoff, satellites
8
+ 2. [Loops](#loops): caused resets, data never rewinds, the seam, exits, conveyors
9
+ 3. [Pace and easing](#pace-and-easing): two curves, fast feedback, overlap, stagger
10
+ 4. [Changing text and values](#changing-text-and-values): change only what changed, footprints, numbers, chips
11
+ 5. [Things that appear, travel and leave](#things-that-appear-travel-and-leave): nothing pops, whole arrivals, flights, handoffs, landings
12
+ 6. [The cursor](#the-cursor): its kind, never over the label, every move explained, keys
13
+ 7. [Drags and selection](#drags-and-selection): pickup, held cards, the grab offset, slots, I-beam selections
14
+ 8. [Scrolling and the camera](#scrolling-and-the-camera)
15
+ 9. [Phones in motion](#phones-in-motion): touch, swipes, the Dynamic Island, reactions
16
+ 10. [Recipes](#recipes): page swaps, stepped demos, replay, annotations, motion on a page
17
+
18
+ ## Story
19
+
20
+ Pick the shape from what the product is valued for; a demo forced into the wrong shape gets busier, not better.
21
+
22
+ - **How it feels to use:** the gesture is the story; a cursor does one satisfying thing and the result appears under its hand (`examples/hero-demo`).
23
+ - **A flow in an app:** a few screens told as one continuous object with the payoff on the last; no bolted-on second device (`examples/phone-touch`).
24
+ - **What the system does:** the consequence lands somewhere else; make the link visible (a value on a connector, a card flying into a list); usually no cursor (`examples/subscriptions`).
25
+ - **Beauty decides.** The calmer, fuller, better-framed version beats the one with more story (`examples/payout-flow`).
26
+ - **A hero loop is 10 to 16 seconds;** a repeat is a short beat, never the whole flow twice (`examples/subscriptions`).
27
+ - **Three to five beats building to a payoff;** one gesture and a response can be enough; add beats only when they clarify.
28
+ - **Open on a finished screen that works as a still.** The first real content is on screen before the beat. A thread opens with a real message, not bars (`examples/messages`).
29
+ - **A short history sits at the top of its pane** under the header, never pinned to the bottom with a void above; size the pane to what it holds.
30
+ - **The cursor rests on empty surface between beats,** near its next move, never on an unused control, never an I-beam over a button.
31
+ - **A satellite arrives at the beat it pays off,** carrying its payload, or is present from the first frame in a reserved column; never an empty parked object.
32
+ - **The payoff is visible at the shown size:** a panel, a window coming forward, a clear state change. A 16px avatar at the edge is not a payoff (`examples/hero-demo`).
33
+ - **A button whose label or icon changes changes on itself.** Put the new words in the same kit `Button` (`{done ? 'Resolved' : 'Resolve'}`, an `icon` that arrives) and it crossfades the label and eases its width so neighbors move with it. Never swap in a second button or a lookalike row for its new state.
34
+ - **A draft becomes the posted comment in place.** Use the kit's `Draft` (`<Draft value={s.draft} full={COMMENT} editing={typing} />`) in the column the comment's words belong to: it puts the typing box's edges on that column, holds the finished comment's height from the first keystroke, takes its typing shape at once and eases only on post. Posting adds no line: a time or "Just now" goes on the name's line and fades in, since a new line under the name shifts the name and pushes the comment down while its box is closing. Don't move it while typing to line the typed words up with the name (a margin shift on the editing state): the box's edge is what lines up, and the words sit inset by its padding. Don't hand-build the box: drawn by hand, its ring hangs past the column, runs into the name above, or drops a line's height in one frame.
35
+ - **The payoff arrives full.** A panel or card opens with its content; with `Collapse`, put the first lines in before `open`. Never a blank surface for a quarter second.
36
+ - **Things connect.** A `Connector` draws on over about a second after both ends are placed, routes around cards, and ends on a dot (`examples/story`).
37
+ - **A small label with a leader line can name what just happened** (`examples/hero-demo`); the full rules are in `annotations.md`.
38
+ - **Motion without hierarchy:** cover each moving element in turn; if the story gets clearer without it, cut it.
39
+ - **The poster is the frame most people see:** a thumbnail, reduced motion, a screenshot. Set `poster` to the beat that tells the story on its own (the row mid-swipe with Archive showing, the card over its new column), and let the result stay on screen after the action instead of tidying it away. Cover the motion and ask what happened; if the poster can't answer, choose another beat. A poster is never caught mid-change: a digit mid-roll, a label mid-morph or a surface mid-fade reads as a glitch when it holds still, so choose the frame after it lands.
40
+
41
+ ## Loops
42
+
43
+ - **A reset removes what the loop added as one thing.** A reply and its reaction leave together, never reaction then message; a list that grew loses its new rows in one motion. The fewest steps that return the frame, with a seen cause where one exists.
44
+ - **A loop keeps a complete product picture:** open on context and return to it; a header over a blanked list is not an anchor. Film the seam at 60ms.
45
+ - **Every reset has a cause or is invisible,** in order: a seen cause (undo with its keycaps, clear, close), an exit around an anchor, a snap while hidden (`act.snap`). See `examples/subscriptions` and `examples/story`.
46
+ - **A loop never plays a navigation backwards.** An app opened from a notification doesn't shrink back into it, and a pushed screen doesn't slide back in reverse; no product does that. Undo the state in place, in a quick reverse stagger (the last change first, about 70ms apart), so the screen rewinds to its opening frame as one motion, or cut while something covers it. Don't lock the phone or go home to reset a story that happens inside one app: a black screen on a white page reads as the demo ending, not looping. A lock is the reset only for a lock-screen story.
47
+ - **Data never rewinds in view.** Snap it back hidden (off camera, under a closed panel, behind the exit) or bring the next loop's data in as new.
48
+ - **No dead air at the seam:** within about a second of the exit ending, the next action has begun.
49
+ - **Exiting around an anchor:** what the story added leaves in one reverse stagger, everything moving within half a second, 40 to 80ms apart, while product content stays. Never everything at once.
50
+ - **A story that accumulates runs as a conveyor:** exit the built batch, bring a fresh one in from the crop, reset unseen.
51
+ - **The payoff holds for 2s** before the exit (`examples/payout-flow`); nothing on screen sits still for more than three seconds.
52
+ - **A second scene earns its length** by adding something new (a different outcome, surface or side); repeating the beat doubles the loop for nothing (`examples/subscriptions`).
53
+ - **A looping video starts on a calm frame,** never mid fast motion.
54
+
55
+ ## Pace and easing
56
+
57
+ Product timing and the curves the scanner checks are in `motion-review.md` (timing by job, `MOT-06`..`MOT-14`).
58
+
59
+ - **Unhurried, on two curves.** Travel: `cubic-bezier(0.45, 0, 0.1, 1)`. Arrival from nowhere: `cubic-bezier(0.25, 0.8, 0.25, 1)` over 0.8 to 1s. Judge distance and overlap, not duration (`examples/payout-flow`).
60
+ - **Travel has a departure, clear travel and a soft arrival;** length alone does not make it fluid.
61
+ - **Choose durations and easings together by job;** one easing everywhere flattens the hierarchy; an accumulating number may take longer than its transfer (`choreography.md`).
62
+ - **UI feedback stays as quick as the real product;** only storytelling motion slows down. Feedback starts on the input; a presentation delay feels unresponsive.
63
+ - **Related responses overlap.** A changed setting leads its label, then its dependents, while the frame holds; a confirmation still follows its cause (`examples/choreography`).
64
+ - **Related updates can each take a different time;** the result still follows its cause.
65
+ - **Stagger groups in reading order 40 to 80ms apart** within a scene (`act.stagger` default 60); 80 to 120ms between tiles of a grid. One object enters whole; holds are beats too (`examples/calendar`).
66
+ - **Introducing a composition:** a small front-loaded movement can settle longer than its busy part; don't scale readable text much.
67
+ - **A small expressive icon may overshoot** while its card and text settle without bounce; keep the accent local; give the final state time to read. Overshoot belongs to that icon, never to a dialog or a card (`MOT-16`).
68
+ - **One entrance motif per page:** the same fade-up on four or more blocks, or any mount motion on headings, paragraphs and navigation, reads as a template (`MOT-15`); animate the focal element and let the rest arrive visible.
69
+ - **Color changes between distant hues take about 200ms** (they pass through mud however done); let the label carry the slower motion.
70
+ - **Holding a result means stop:** a useful still needs no new pulse or repeated count.
71
+
72
+ ## Changing text and values
73
+
74
+ - **Inspect the glyphs, not only the box.** Text can shimmer as a layer finishes; keep its transform layer through cleanup, never `will-change` over the whole scene.
75
+ - **Settle geometry before chasing a text shift.** Compare the last moving frame with the first settled one (`lands on a transform`, `steps in its box`).
76
+ - **Other text shifts:** a released measured width, a transform losing its layer, a late-loading font; inspect at real size.
77
+ - **A status word that changes (Queued, Running, Passed) rolls with `Roll`,** never two hand-built spans crossfading in place (they overlap mid-fade and read as a smudge). When several rows change at once, as a loop resets, cascade them about 60ms apart with `delay`: a column rolling in unison reads as flicker.
78
+ - **Every change moves.** Text that turns into a pill, a menu replaced by another in one frame, a number that jumps: a submenu slides, text rolls, a surface morphs.
79
+ - **Change only what changed.** `Roll` animates the changed span and moves what follows by its measured width; pick the anchor on purpose (`examples/story`).
80
+ - **Decide a control's footprint before its label transition:** `States` holds the largest, `Roll variant="fade"` resizes; never roll unchanged words (`examples/parts`).
81
+ - **Button states share one slot.** Keep the button mounted, variants in one grid cell, each icon-and-label variant default-centered; check shortest, longest and pending (`examples/hero-demo`).
82
+ - **Added content opens its space with its neighbor:** the icon's width and gap open together while the label travels; both close on removal (`examples/annotations`).
83
+ - **A right-pinned value changes against that edge** (`Roll align="end"`); a status icon beside it keeps a fixed slot (`examples/payout-flow`).
84
+ - **Numbers roll with `Count`,** last digit first, unchanged digits still; no per-frame lerp blur; give it a slot; hold the completed value (`examples/subscriptions`).
85
+ - **Typed text becomes a chip in place** (`Field chip`): the words stay, the surface grows around them, the x opens beside.
86
+ - **Result follows press feedback:** a small press and surface response before the result; change state after `a.click` completes.
87
+ - **An object keeps its identity when it changes** (a plus becoming a close): rotate the same strokes; replacing the icon skips the relationship.
88
+ - **A spinner turns before it is visible** and keeps turning through its fade out.
89
+
90
+ ## Things that appear, travel and leave
91
+
92
+ - **A thing that grows as it travels takes the long settle.** A thumbnail becoming a card swells on a soft start and a long deceleration (the kit's `Fly` curves, 600ms or more); a quick ease-in-out lurches.
93
+ - **Nothing pops.** Everything has an entrance and stays mounted until its exit finishes; `Bubble` and `Fly` hand off at the same geometry.
94
+ - **No holes or blank frames.** What replaces something arrives as it leaves; reopening rows fade content in as their height finishes (`Collapse`) (`examples/subscriptions`).
95
+ - **Neighbors make room continuously** as the newcomer arrives; its fade rides with its travel, not before.
96
+ - **A new row carries the rows below it:** animate the containing track so the line below moves with its height, or reserve the space.
97
+ - **A resizing surface moves size, position and content as one transition,** never stretching its text, and retargets from its current geometry when interrupted (`examples/choreography`).
98
+ - **Replacing content keeps the container, alignment and reading interval,** masking only the moving slot.
99
+ - **Keep header, outer surface and action positions steady** while variable content changes inside; old and new content stay in tracks.
100
+ - **Solid things do not fade through.** Windows, phones and cards arrive by moving, opaque or nearly; a half-transparent phone is a ghost.
101
+ - **Cards, toasts, pills and reactions arrive whole from just above** (`Collapse reveal="drop"`), never uncovered by a hard edge; clip only rows of text.
102
+ - **Content arrives after its container:** a pin's number appears once its circle is nearly full size.
103
+ - **A popup fits before its first frame:** sized and scrolled before showing; it never corrects its size while opening (`examples/parts`).
104
+ - **An open surface holds its anchor.** A popover, palette, menu or sheet is pinned by the edge it opened from. Reserve height for the longest list (`anchor drift`, `examples/linear`).
105
+ - **Overlays close where they were:** keep `{ open, at }` apart, never a nullable `menu` point.
106
+ - **A zone becoming something else takes its new size** (a drop zone into an upload card); the fixed-footprint rule is for optional content inside a surface.
107
+ - **A value chip grows from the value's own words,** gains fill and lift as it departs, and wears one of its two looks, never a third color. The recipe is in `kit.md` (`examples/subscriptions`).
108
+ - **A dashed edge never changes size:** draw it at final size on its own layer and only fade it (`dashed edge resizes`, `examples/controls`).
109
+ - **Border style does not transition:** keep the solid hairline and fade a dashed `::before` layer out over it.
110
+ - **Switching versions morphs in place** or crossfades with the plate's height eased; never a flash or hard swap.
111
+ - **A released marquee fades;** it never sits still then vanishes.
112
+ - **A moving edge never slices text.** `Collapse` fades before and after the height moves; otherwise sequence fade and movement, or mask locally without softening the whole interface (`hard edge`).
113
+ - **One object, one trip, ending in its final place:** open the room (`Collapse`), measure the slot, then `Fly`; never land then re-lay out around it (`examples/subscriptions`).
114
+ - **After motion nothing moves.** A handoff is the same size, place and look on the swap frame. Measure the landing element itself, never its padded wrapper (`handoff shift`, `settle snap`, `fly size`).
115
+ - **A flight's ends are fixed at take-off** (`Fly` holds its rects when `go` turns true); a moving start retargets every frame and jumps.
116
+ - **A flyer changes to its resting look during the last third** (`.ss-fly[data-go]` with a delayed transition); never swap looks on the landing frame.
117
+ - **Landings are soft:** decelerate over the last third, back to size before arrival, no bounce, no ring pulse.
118
+ - **A selection ring or highlight moving between items uses `Follow`,** so it keeps momentum when retargeted; re-keying its entrance restarts it (`examples/figma`).
119
+ - **Look at every motion finding** (`appears, then moves`, `near-empty frames`, `lands on a transform`, `steps in its box`). Fix the real ones, name the intentional, never cut good motion to quiet a detector.
120
+
121
+ ## The cursor
122
+
123
+ - **No cursor means no stand-in.** Never walk a focus ring, halo or spotlight between controls; states and timing carry a system story (`examples/cursors`).
124
+
125
+ ## Open-Source Motion, Scroll, 3D & Lottie Discipline (`MOT-02`..`MOT-05`)
126
+
127
+ Sloppy enforces runtime craft discipline across 21 permissive (`MIT` / `Apache-2.0`) animation, scroll, SVG, 3D/WebGL, and Lottie ecosystems (excluding copyleft/Commons-Clause editor or bundle tools such as `@theatre/studio`):
128
+
129
+ - **Core Animation** (`motion`, `animejs`, `@react-spring/web`, `@formkit/auto-animate`, `@tweenjs/tween.js`, `@theatre/core`, `@motion-canvas/core`): Honor `useReducedMotion()` / `<MotionConfig reducedMotion="user">` (`MOT-03`), replace `repeat: Infinity` / `loop: true` on non-loader UI with caused transitions (`MOT-02`), and animate compositor-only properties (`x`, `y`, `scale`, `opacity`) instead of `width`, `height`, `top`, `left`, `margin`, or `padding` (`MOT-04`).
130
+ - **Scroll & Parallax** (`lenis`, `aos`, `rellax`, `lax.js`, `atropos`): Guard wheel smoothers with `prefers-reduced-motion` (`MOT-03`), initialize `AOS` with `once: true`, destroy scroll instances on unmount (`MOT-05`), and keep parallax subtle.
131
+ - **Text & SVG** (`splitting`, `vivus`): Preserve semantic heading labels, split only short headlines, and keep SVG draws finite (`MOT-02`).
132
+ - **3D & WebGL** (`three`, `@react-three/fiber`, `pixi.js`): Dispose geometries/materials/renderers on unmount, cap R3F `<Canvas dpr={[1, 2]} frameloop="demand">`, and pause loops when hidden or under reduced motion (`MOT-05`).
133
+ - **Lottie & Interactive** (`lottie-web`, `@lottiefiles/dotlottie-web`, `@rive-app/*`): Bind playback to user/state machines instead of blind loops (`MOT-02`) and always call `.destroy()` / cleanup (`MOT-05`).
134
+ - **Animated UI** (`magicui`): Restrict ambient beams/grids/particles to single focal regions under neutral palettes.
135
+ - **The elements decide the cursor's kind** via `data-cursor` (`ibeam`, `hand`, `open`, `crosshair`, `resize-ns` or `resize-ew` on an edge that drags, `resize-nwse` or `resize-nesw` on a corner, with `drag(..., { cursor: 'preserve' })` so it doesn't close to a fist), switching mid-path as it crosses the edge, never after arriving (`examples/cursors`, `examples/cursor-resize`).
136
+ - **`drag()` closes and reopens the hand itself;** a drag over text stays an I-beam; `{ cursor: 'preserve' }` keeps the arrow for arrow-based creation (`examples/google-calendar`).
137
+ - **Native app buttons keep the arrow,** and a button inside a marked area is the arrow again unmarked; `cursor()` is only for kinds nothing implies (`wait`).
138
+ - **The I-beam and crosshair turn white with a dark edge on a dark stage;** the glass circle narrows into a bar over text.
139
+ - **The cursor never covers the words it clicks.** Aim inside the target but off its text (`x: 0.85, y: 0.6`). Rest off a changed label; park in a menu row's empty space (`covers`).
140
+ - **A state the click sets fades in, quickly.** A tool picked in a toolbar, a selected row, an active filter: its fill and color ease in over about 150ms and back out the same, never switch on in one frame. A set of options where one is chosen and the choice moves is a `Segmented` or `Tabs`, whose highlight slides.
141
+ - **The cursor stays where the press happened** while the result changes size; never pin it to a moving button edge.
142
+ - **A cursor changes style by morphing,** never popping (`examples/cursor-morph`).
143
+ - **Every move travels to the next action,** follows a held object or clears the way; the Stage fades a resting cursor after 4s.
144
+ - **Keyboard stories show the keys** with `act.key('cmd+k')`; the cursor can rest or leave (`examples/raycast`).
145
+
146
+ ## Drags and selection
147
+
148
+ - **A pointer drag is one motion.** With a mouse the row follows the pointer the whole way and leaves on release; the short drag then throw is a finger's flick and reads as two motions under an arrow.
149
+ - **A drag starts where the thing is.** A file from outside enters already held with a fixed grab offset. Never a pickup at an empty point or a changing grip (`examples/freeform-drag`).
150
+ - **A text selection reads left to right** from a word boundary; dragging back from the end reads as a correction (`examples/google-docs`).
151
+ - **A text selection stays under the I-beam every frame:** drive it from `a.drag` with `a.caret(name, at)` in the drag's `onMove` and render from the character count. A highlight grown by time or a word count runs ahead of the cursor on one line and behind it on the next; `--gate` fails on `selection drift`. Never clamp it or hit-test with `caretRangeFromPoint` (`examples/google-docs`).
152
+ - **Pickup belongs to the press:** set `lifted` and the first carried position inside `onMove`, never before `drag()`; a long press shows press, hold, lift (`examples/calendar`).
153
+ - **A carried card is held, not slid:** scale 1.03, deeper shadow, a degree or two of tilt, following the hand's arc. The whole card tilts, words and all: a surface tilting under level text reads as a bug. Keep its text from hopping as it lands with a layer it holds throughout (`will-change: transform`), not by leaving the text out of the tilt. It settles flat on drop, with no selection outline in the air (`examples/controls`).
154
+ - **Constrained controls follow their mechanism:** give `drag` a `{ path }` so a knob turns on a circle; check the hand's radius all the way round (`examples/annotations`).
155
+ - **The grab offset is where the hand took hold:** derive it from the pickup fractions, share the `transform-origin`, keep stage translation outside the lifted transform (`examples/freeform-drag`).
156
+ - **A held item rides with the cursor exactly** from `onMove` on both axes with no transition; `Fly` is only for flights the cursor is not carrying.
157
+ - **Drop targets never travel:** the slot appears in a cell and jumps to the next, hides over the card's own cell; `cellOf` for sticky borders (`examples/freeform-drag`).
158
+ - **Moving a card between lists uses `Slot`:** source closes on lift, destination opens in flight, drop aims at the open slot, then the real card swaps in (`examples/controls`).
159
+
160
+ ## Scrolling and the camera
161
+
162
+ - **Nothing scrolls unless the pointer is on it:** `a.scroll` moves the cursor in and holds it; scroll back before the loop ends, never at the seam (`examples/controls`).
163
+ - **Scrolling starts with whole rows;** fade only the edges hiding content once scrolled, and clear the fade at the end.
164
+ - **The camera needs a reason.** Push in only when the payoff would be too small to read at the shown size; cut any zoom nobody would miss.
165
+ - **Frame the wide shot as a good still before any push-in;** the zoom never rescues a weak frame.
166
+ - **A push-in frames the stage's shape:** `Camera` fits the focus to the aspect, so widen the focus to the content column rather than accept leftovers (`examples/calendar`).
167
+ - **One push-in per story,** in and back out; edges feather while zoomed; the cursor holds still while the view moves (`examples/controls`).
168
+ - **Inside an overlay, wrap only the region that zooms** in `Camera`, with `pad={0}` when the region is already the frame.
169
+
170
+ ## Phones in motion
171
+
172
+ - **Act where people do.** A notification is tapped to open its app, and the reply, the accept or the purchase happens in the app. Its long-press actions are a shortcut few people use, so a story told through them reads as invented.
173
+ - **Touch on a phone uses `cursor={{ style: 'touch' }}`,** never the macOS arrow. In-app responses are UIKit-quick, `cubic-bezier(0.3, 0.75, 0.1, 1)` over 0.5s; `Expand` does card-to-screen (`examples/phone-touch`).
174
+ - **A swiped row stays in its list:** the action is the row's own back, the same height and edge to edge, revealed as the row slides off it, not a separate rounded card beside it with a gap. The list clips both, so the row never paints over a neighboring pane, and its text is cut only by that edge. Check the frame at the furthest point of the swipe at full size: it is the one people screenshot (`examples/swipe`).
175
+ - **A swipe is a flick:** a third of the screen in about a quarter second, lifting while moving. The page is thrown on over 0.5s with `cubic-bezier(0.25, 1, 0.5, 1)` (`examples/phone-touch`).
176
+ - **A reaction is `Bubble tapback`:** a white circle on the bubble's bottom corner, growing from the edge as the room opens on the same clock. It fades before the room closes.
177
+ - **Dynamic Island:** animate the black shape's box and radius together, never by stretching its contents; content lives on a separate unfiltered layer and fades into place (`examples/dynamic-island`).
178
+ - **Island timing:** 500ms underdamped growth, 380ms shrink delayed 120ms for content to clear, a press squeeze to 0.965.
179
+ - **Island filters** (blur 2.6, alpha matrix 9 -4) belong to that geometry; filter only the black shapes. Keep the dormant circle inside the pill and inspect the contour at contact, separation and rest.
180
+
181
+ ## Recipes
182
+
183
+ - **A page swap inside one window** keeps the chrome and crossfades only the body (200ms, an 8px rise); tabs move with it; never slide whole pages sideways.
184
+ - **A stepped demo keeps its object across steps;** swapping a Stage's script is a cut. An outside-switched variant gets one stable `play="once"` script; verify skip, reverse and mid-play change.
185
+ - **Replay remounts at the story boundary** with a key; never changing keys for ordinary state, text or variant changes (`kit.md`, Explicit replay).
186
+ - **A look sets tokens only;** the scene keeps the product's own motion habits and real timing (`looks.md`).
187
+ - **Annotations** (leaders, connectors, flows, moving targets) have their own rules in `annotations.md`; `choreography.md` walks one content change end to end.
188
+ - **Motion on a page of demos or in a grid has one place to lead** (`bento.md`, rule 11).
@@ -0,0 +1,26 @@
1
+ # Product studies
2
+
3
+ These examples reproduce recognizable product interfaces. Use them when the brief needs product fidelity, denser content, native chrome or a specific interaction. They sit under **Real products** in the playground. They are illustrations, not working clients, and not affiliated with the products shown.
4
+
5
+ | Product | Source | Focus |
6
+ | --- | --- | --- |
7
+ | Figma | `examples/figma/` | Canvas objects, properties and comments |
8
+ | Linear | `examples/linear/` | Command menu, issue context and assignment |
9
+ | Slack | `examples/slack/` | Reactions, message layout and a thread reply |
10
+ | Raycast | `examples/raycast/` | Keyboard search and clipboard navigation |
11
+ | Finder | `examples/finder/` | Quick Look, file selection and drag |
12
+ | Finder with glass | `examples/finder-glass/` | Translucent window surfaces |
13
+ | Spotify | `examples/spotify/` | Library and media controls |
14
+ | Notion | `examples/notion/` | Document blocks and editing controls |
15
+ | Gmail | `examples/gmail/` | Inbox and message actions |
16
+ | Google Calendar | `examples/google-calendar/` | Event and calendar views |
17
+ | Google Docs | `examples/google-docs/` | Document editing and collaboration |
18
+ | PowerPoint | `examples/powerpoint/` | Slide editing |
19
+ | Excel | `examples/excel/` | Cells, selection and calculations |
20
+ | Wikipedia | `examples/wikipedia/` | Search suggestions and article navigation |
21
+ | Telegram | `examples/telegram/` | Phone conversation and message arrival |
22
+ | iMessage | `examples/imessage/` | Native composer and delivery feedback |
23
+
24
+ Some studies import `lucide-react`, which the playground installs. When copying one into a host, keep its local CSS and assets and install that icon dependency, or swap the icons for the host's own set. The kit itself needs React, react-dom and lucide-react (for its `Icon`). Product names, marks and imagery are covered by `NOTICE.md`.
25
+
26
+ Open the source and look at it at the intended width before borrowing. A recognizable interface can still have a weak crop, reset or transition, so give it the same rehearsal as a new scene. Being in this list is not a review.
@@ -0,0 +1,117 @@
1
+ # Rehearse
2
+
3
+ A dress rehearsal: run the whole demo at real speed and watch it as the audience will, before anyone does. Read every image you make, and confirm the page you filmed runs the code you wrote. The rules the film lines enforce are in `framing.md`, `craft.md` and `motion.md`; this file is how to film and what to watch.
4
+
5
+ ## Prove the still before choreography
6
+
7
+ Render the opening and the payoff at both shipping widths beside the gold at shown size; the reduced-motion poster is not the opening, and it has to work as the only frame (`motion.md`, Story). Ask the still questions in `verify.md` (Framing, Hierarchy and density), then:
8
+
9
+ - Can the viewer find the focal object and what changes before any branding or copy?
10
+ - Compare the quality (hierarchy, density, spacing, crop, material) against the gold, separately from whether every object in the brief is present.
11
+ - Do the same for the busiest mid-story frame and every resting state that changed. A clean tool report does not close a composition question.
12
+
13
+ ## The host's own controls
14
+
15
+ A demo lives in a page with a picker, playback buttons and labels, and those get judged too. `scripts/layout.mjs` checks ordinary UI outside a Stage, including a bento tile's inner crop (`nested-composition-crop`):
16
+
17
+ ```sh
18
+ node scripts/layout.mjs "<url>/?example=hero-demo" --select .pg --width 390 --report shots/host-layout.json --screenshot shots/host-layout.png --strict
19
+ ```
20
+
21
+ Run it on the viewer page, the direct scene route and the real destination page at its real width. Moving geometry is reported as incomplete, not passed. Watch each control at rest, hover in and out, pressed, focused, label changed and interrupted mid-transition; geometry cannot vouch for text rendering, focus styling or a filtered silhouette.
22
+
23
+ ## Film
24
+
25
+ `scripts/film.mjs` opens a page in headless Chrome and shoots the stage at a fixed interval into one contact sheet at true size. It prints console and `[stageshow]` warnings (loop seams, missing targets); `--help` lists every flag.
26
+
27
+ First time: copy `scripts/` beside `kit/`, `npm i -D playwright-core` (and `postcss` for the CSS check); `CHROME_PATH` picks another Chrome. The kit itself needs neither.
28
+
29
+ In the playground, film the direct `?capture=<name>` route (the ordinary viewer wraps the scene in an iframe); on a site, the real page URL (open an embedded frame's URL directly when needed). Still watch playback, pause, resume and Replay in the viewer yourself.
30
+
31
+ ```sh
32
+ node scripts/film.mjs "<url>/?capture=hero-demo" --out shots/hero.png --every 1000 --count 18
33
+ node scripts/film.mjs <url> --out shots/still.png --still # one clean image of a still
34
+ node scripts/film.mjs <url> --out shots/phone.png --width 390 --every 2500 --count 6
35
+ node scripts/film.mjs <url> --out shots/drop.png --at drop --every 50 --count 24 # one beat, frame by frame
36
+ node scripts/film.mjs <url> --out shots/zoom.png --zoom 380,40,240,120 --still # close-up, in stage design px
37
+ node scripts/film.mjs <url> --out shots/hover.png --hover --every 300 # play="hover": rest, hover, leave
38
+ node scripts/film.mjs <host-url> --select "#feature-demo" --report shots/report.json --strict
39
+ ```
40
+
41
+ - **Selection and marks.** Film discovers every visible `.ss-stage` (hidden compact or wide twins skipped); `--select` narrows; `--at` and `--zoom` need one stage. Call `act.mark('drop')` at a beat and film with `--at drop`; never guess delays.
42
+ - **Close-ups.** `--zoom x,y,w,h` is in stage design pixels at high resolution; `--zoom target:<name>[,pad]` follows a `data-target` every frame. Stills wait for a rolling `Count` to land.
43
+ - **Hover stages.** `--hover` films rest, hover and the settle after leaving; the rest frame must stand as a still and leaving must glide back without a jump.
44
+ - **Looks and widths.** `--dark` films the dark theme; `--width 566` for a 550 column; `--slow 6 --every 40` samples a landing or press closely (stage and CSS both slow).
45
+ - **Jumps.** Film records geometry every animation frame and reports `jump:` and `drift:` candidates at their timestamps. Fix accidental ones; mark an intentional step narrowly with `data-snap`. `node scripts/jumps.mjs "<url>/?capture=<name>" --ms 30000 --report shots/jumps.json` runs a longer scan without screenshot overhead.
46
+ - **Coverage.** Empty, short or gapped recordings (gaps over 1.6x the typical interval, intervals over 40ms) are `inconclusive`, exit 2. Camera omissions and same-box text changes are listed for manual review.
47
+ - **Reports.** `--report <path>` writes JSON (`status` and `exitCode`, with each stage's `coverage`, `findings` and `manual` under `stages`); `--strict` exits 1 on candidates; `no-issues-detected` is not approval; exit 3 on persistent dev reloads.
48
+ - **Class clashes.** `node scripts/class-clash.mjs <demo folders>` (needs postcss) checks overlapping class namespaces. A scoped `.row` is fine, an unscoped one is not; complex roots are inconclusive. Check repeated demos together on the host too.
49
+
50
+ ## Lines that are never intentional
51
+
52
+ Not candidates for judgment: fix the cause and re-shoot. `film.mjs --gate` ends `rehearsal passed` only when all are at 0. Clearing a line by hiding, removing or marking (`data-crop`, `data-snap`) the thing it points at is a bug, and the fresh eye re-judges every line you call intentional.
53
+
54
+ | Line | What it means |
55
+ |---|---|
56
+ | `framing:` | A gutter, bleed, crop or window shape `framing.md` forbids; a hero floating whole; a popover against an edge |
57
+ | `cut by the crop:` | An action or chip sliced by the stage edge; filler bleeds, actions read whole or not at all |
58
+ | `tight stack:` / `loose stack:` | A title on its subtitle with under 3px of ink between, or drifting past 10px in a small label (4 to 6px is right) |
59
+ | `tight mark:` | A status dot within 5px of the avatar or text, or outside its row (6px clear) |
60
+ | `tight inset:` | Words under 8px from a window's, card's or row's edge (12px is right) |
61
+ | `skeleton ladder:` | At realistic fidelity, a list in frame (4+ rows) where the wordless rows (at least 3) outnumber the worded ones |
62
+ | `onion skin:` | See-through fills overlapping at rest |
63
+ | `kit override:` | Your CSS reshaping a kit part's geometry (rows, bubbles, stamps, avatars, phones) |
64
+ | `unit wrapped:` | A stat's unit on its own line |
65
+ | `unsized text:` | Text in a window left at the stage's 16px baseline because nothing sized it |
66
+ | `clipped glyph:` | An icon drawn past its box |
67
+ | `loose list:` | Rows spread out to fill a pane |
68
+ | `fat row:` | A one-line row three times taller than its words |
69
+ | `empty pane:` | A void under a pane's or screen's content |
70
+ | `emoji icon:` | An emoji where an icon belongs |
71
+ | `anchor drift:` | An open popover moving as its list changes height |
72
+ | `uneven padding:` | A card or tile whose content sits about a third closer to one edge than the side inset, or past it |
73
+ | `mixed icons:` | Filled and outline glyphs side by side in one nav, list or toolbar |
74
+ | `tight control:` | A button or chip with under 8px between it and the field, line or card edge above it |
75
+ | `invented mark:` | A one-letter tile in a brand color beside a real company's name |
76
+ | `uneven inset:` | A bar, pill or row of controls whose children sit much closer to one end than the other |
77
+ | `uneven gutters:` | A window or panel in a tile much closer to one side than the other |
78
+ | `avatar alignment:` | A body under an avatar row starting under the avatar instead of at the name's edge |
79
+ | `spills its slot:` | Content running past the width it was laid out in, or closing its row's gap; a ring drawn as its own layer running into a neighbor's words or past its card |
80
+
81
+ A `[stageshow] selection drift` kit warning (a text selection that isn't under the I-beam) fails the gate too.
82
+
83
+ ## Other film lines
84
+
85
+ Candidates, each named beside its rule. In `craft.md`: `touching` (text within 5px of a box) and `tight lines` (bars closer than the text they stand for), `lopsided`, `uneven`, `near-tangent`, `half-pixel glyph`, `squeezed`. In `motion.md`: `covers`, `dashed edge resizes`, `handoff shift`, `settle snap`, `fly size`, `hard edge`, `appears, then moves`, `near-empty frames`, `lands on a transform`, `steps in its box`. Defined only here:
86
+
87
+ - `clipped:` is a mark sliced by a container edge inside the stage; fix it, or mark the container `data-crop` only if the crop is deliberate.
88
+ - `unclipped:` means the page decides the crop: give the stage `overflow: hidden`. `double corner` means two rounded clips share an edge with different radii: give one the corner.
89
+ - `appears with no entrance` and `vanishes with no exit` can be missed in a sampling gap; film each appear and disappear at 50ms. Instant typing feedback may be intentional: `data-typing` or `data-snap` on the exact changing node, never a whole field or subtree.
90
+ - `shrunk, not laid out for the phone: drawn at 0.72` means the type will read small at that width: give it a `compact`. `grown past the design size` means it reads large; `small text: X renders at Npx` is text under 10px, checked at widths under 600.
91
+ - A pen tip intentionally leading a draw carries `data-lead`.
92
+
93
+ ## What to watch
94
+
95
+ - **Framing first.** Film the still and clear every `framing:` and `cut by the crop:` line before motion work; after moving anything, re-shoot the whole loop.
96
+ - **Every frame, at the real width,** including the figure in view before it has loaded.
97
+ - **Measure, don't eyeball.** Compare computed styles across the page (one shadow, plate, radius set); sample a morph every animation frame, not from a sheet.
98
+ - **The loop, end to end.** Film one full loop plus the start of the next; investigate every `loop seam` warning.
99
+ - **Text and glyphs.** Inspect pixels at `--slow 4` after a move; a compositing layer is a possible fix, not proof the pixels stayed still. Nothing spills out of its box on any frame.
100
+ - **The whole drag,** hover to settle at speed, then stepped: the surface never lifts before the press; track the hand's hotspot through every transform. A temporary zero-size child at the grip point makes the browser project every transform (subtract the parent border); a hand-written matrix can miss separate `translate`, `rotate` or `scale`.
101
+ - **Overlays land.** Highlights, selections and markers sit on the thing they describe at every scale; check a drag box against the items it claims.
102
+ - **Crops explain themselves.** Every edge where screen meets stage fades, bleeds with intent, or is a real window edge.
103
+ - **Edges and corners.** Zoom into hover fills and selected rows: rounded corners intact under a parent's `overflow: hidden`.
104
+ - **The narrowest shipping host.** Film the whole loop at 390 and at the brief's own width when it names one, gutters included, read as closely as the wide pass.
105
+ - **Every look shipped,** filmed separately.
106
+ - **Check the host.** The demo works in the real page at every shipping width (plate, ground, padding, crop). Page backgrounds stay in the host; a component brings no full-page wrapper.
107
+ - **Reduced motion.** `--reduced` shows the poster, still and complete; overlays from `rect()` sit right in it; toggle the preference during playback and back. Drop presentation waits; keep task timing and reading time.
108
+ - **Live pacing.** The virtual clock proves geometry, not frame rate: log rAF timestamps against the transform on the real page; repeated poses then a jump mean a clock bug. Pause, offscreen, hidden tab and finished `once` scenes stop their work; resume and replay never skip a beat or replay an accumulation. Say which browser and device you checked.
109
+ - **Typecheck.** Run the host's typecheck (`npm run typecheck` from the skill folder); report unrelated failures separately, never filter them into a pass.
110
+ - **Blueprint grid.** Lines sit at `--ss-grid-x` and `--ss-grid-y`; set them on the Stage so a window's edge lands on a grid line.
111
+ - **What the tools can't sign off.** A contact sheet misses a one-frame flash; a scan does not know whether a morph, a story or a gesture is right. Watch playback at speed, slowed transitions, loop plus next start, an interruption, reduced motion, a return from offscreen; again after the final edit. The playground isolates each example in an iframe; Pause and Step advance one clock; Phone changes width but not touch, so check touch on a device or with input emulation.
112
+
113
+ Then put your sheet beside the closest gold's: is this instantly a real product, quiet, with one clear story? Iterate until yes.
114
+
115
+ ## The last pass
116
+
117
+ `verify.md` from frames; `--gate` passing on the wide loop, the phone loop and `--states`; a fresh-eye review (`review.md`) returning nothing; `REHEARSAL.md` written beside the component. It lists the widths, looks, interactions and stages captured and the cases not. An empty, late or gapped capture is inconclusive, not a pass.
@@ -0,0 +1,26 @@
1
+ # Review
2
+
3
+ The brief for a fresh-eye review after rehearsal. Give the reviewer this file, `verify.md`, the `examples/` folder, the scene's URL and the frames the builder filmed, with a one-line brief that names the gold and attaches its still beside the scene's. Nothing else: not the builder's plan, not its reasons, never its REHEARSAL.md.
4
+
5
+ Your first question, before the checklist: does this composition answer this product and this page, or could it be any product in its category? A layout the brief did not shape (a window pinned with even margins whatever the product, the same phone framing every phone brief gets) is a finding, ranked with framing, even when every check passes. From the two stills, judge whether the scene gives its focal content as much of the frame as the gold does.
6
+
7
+ Start from the brief's own words. If it says "white page", a tinted plate behind the device is the first thing on your list; if it names a size, a look or a page color, hold the scene to it before anything else.
8
+
9
+ ## The reviewer's brief
10
+
11
+ You are reviewing a faux product UI scene someone else built. You have the frames, the URL, `references/verify.md` and the gold examples in `examples/`. You have not seen the brief's intent beyond the one-line brief, and you do not need it: you are judging the picture.
12
+
13
+ Look at the frames the way the most exacting designer you know would, the one who screenshots the single wrong thing and sends it back with "what is this?". Then answer every item in `verify.md` from a frame, not from the code. If a frame you need does not exist (a beat at 40ms, a 4x zoom of a glyph, the phone width, `--states`), film it with `scripts/film.mjs` yourself before answering; a predicted failure is not a finding, and neither is a predicted pass.
14
+
15
+ Put the scene beside the gold example it is closest to and say the one difference.
16
+
17
+ Return a ranked list, framing first, then hierarchy and density, then motion, then polish. Each item: what you would screenshot, which frame shows it, and what the fix is in one line. Say what you could not check. If there is nothing, say "nothing" and list the frames you looked at.
18
+
19
+ Rules of the review:
20
+ - The bar for a finding is a frame. Quote the frame file.
21
+ - Rank by how much of the scene it spoils, not by how easy it is to fix.
22
+ - A line the builder judged intentional is not settled: look at the frame and judge it again.
23
+ - Do not fix anything. Do not soften a finding because the build is nearly there.
24
+ - A whole window floating with even margins, rows with more air between them than they are tall, a pane whose content stops well above its bottom, a list of gray bars where the eye lands, a phone drawn small: these are findings even when no film line names them.
25
+
26
+ Platform conventions are not placeholders. An iPhone messaging thread in Messages' blue with the plus and mic in its composer, a macOS window with its lights, an iOS banner at its true size: these are the product's chrome and stay. Send back an invented accent or a redrawn system control; never send back the convention.
@@ -0,0 +1,111 @@
1
+ # Teaching pairs
2
+
3
+ `teaching/` holds bad/good pairs: the same scene twice, with one thing wrong on the left. Open **Comparisons** in the playground (`?example=contrasts`) and pick a principle; only that pair mounts, so its controls stay nearby and the others don't keep running. Use **Replay pair** to restart both halves together.
4
+
5
+ Use a pair to diagnose a problem in your own demo: find the one that looks like your bug, then read why the good half works. The bad halves are never starting points. Watch at normal speed first, then pause and step through the transition. On a narrow screen the halves stack rather than shrink. Under reduced motion the motion pairs show matching endpoints, because the difference is in the transition, not the end state.
6
+
7
+ ## Motion
8
+
9
+ Both halves share one stage and one timeline, with a duplicated stationary pointer so each gets exactly the same input at the same moment. That pointer is a teaching device; a product demo uses the Stage's real cursor and `a.click`. The first four pairs use a 180ms press and hold the result for 1.8s before returning. The longer ones play once and hold their ending.
10
+
11
+ | Failure | Look at | Correction |
12
+ | --- | --- | --- |
13
+ | Instant label replacement | "Open preview" becoming "Back to editor", then returning | A stable button and a clipped label slot; the old words leave as the new words enter (`Roll`). |
14
+ | Result without press feedback | "Save changes" under the pointer, before "Saved" appears | A small press and surface response before the result. In a demo, change state after `a.click` completes. |
15
+ | New row shoves its neighbors | "Standard shipping" below the delivery note | Animate the note's containing track so the line moves with its height. Reserving the space is the other option. |
16
+ | Object loses its identity | The plus becoming a close icon, then returning | Keep the same strokes and rotate them; replacing the icon skips the relationship between the shapes. |
17
+ | Exit is skipped | "Link copied" when its close control is pressed | Keep the message mounted for its 320ms exit, then remove it. |
18
+ | Interrupted motion restarts | The highlight heading to Month, redirected to Week after 200ms | Keep the highlight mounted and retarget from where it is; re-keying its entrance restarts it from Day. |
19
+ | Landing jumps at handoff | The 24px avatar when the flyer becomes the assignee | Measure the avatar itself with `rect()`, not its padded wrapper. The bad flight takes the wrapper's origin and lands four pixels off. |
20
+ | Loop erases accumulated work | Three files clearing after they have been added | Give the reset a visible cause: the good side presses Clear. |
21
+ | Added content shifts its neighbor | A status icon appearing beside a label | Open the icon's width and gap together while the label travels; close both on removal. |
22
+ | A list jumps around a new row | Existing rows during insertion and removal | Animate their space as the new row enters whole; let it exit before its space closes. |
23
+ | A changing action shoves another | The secondary action beside a growing label | Carry the neighbor with the changing width, not in one frame at the end. |
24
+ | Surface and content resize separately | A popup opening its details, returning, reversing | Surface and content on one coordinated geometry, with text that never stretches. |
25
+ | Drag starts from the wrong point | The file just after an off-center grab | Keep the pointer's offset inside the object through travel and release. |
26
+ | Spinner begins after appearing | The first saving-state frames | Start rotation before the spinner is visible; keep it turning through the fade out. |
27
+ | Text shifts as it settles | The changed label and the word "Optional" as the old label hides | Move the label by transform inside a stable grid. Margin travel on overlapping inline-grid items moves the shared baseline even while hidden. |
28
+ | A label hits a hard edge | Letters crossing the top and bottom of a label slot | Soften the moving boundary locally; resting text stays sharp and wholly inside the control. |
29
+ | Scrolling reveals a harsh crop | Rows crossing the viewport edge | Start with whole rows; after scrolling, fade only the edges hiding content, and clear the fade at the end. |
30
+ | Dependent changes start together | Currency, price, payment method and address in one checkout | Offset the related starts while their movements overlap. Same layout, curve and masks on both sides; see `choreography.md`. |
31
+
32
+ The neighbor pairs live in `teaching/relationships.tsx`, the drag and spinner pairs in `teaching/continuity.tsx`, the label and scroll edges in `teaching/edges.tsx`, and the baseline bug in `teaching/text-settle.tsx`. They are small standalone patterns, not imports from a library.
33
+
34
+ ## Motion between neighbors
35
+
36
+ An insertion changes two things: the arriving object and the space of what was already there. Animate both. Fading an icon in while its label jumps still breaks the relationship. The rules are in `motion.md` (Changing text and values; Things that appear, travel and leave; The cursor): a label's icon opens its width and gap together, a list's height carries the rows below (`Collapse reveal="drop"`), the cursor stays where the press happened, a resizing surface moves size, position and content as one transition. For a changing control, a measured `Roll variant="fade"` resizes its label; keep the actions beside it in normal flex flow so they follow, because a transform that only moves the new label can't move its neighbor.
37
+
38
+ Watch the unchanged neighbor through an insertion and a removal, then the popup's reversal before its first move finishes. Matching endpoint screenshots prove nothing about the frames between.
39
+
40
+ ## UI details (stills)
41
+
42
+ Thirteen still pairs in `teaching/composition.tsx`, same content on both sides, so the difference is framing and structure, not a prettier story. Each pair's rule lives in `craft.md` or `framing.md`; the pair shows it.
43
+
44
+ - **Framing:** clear gutters around the useful part; a window may continue past an edge, a cropped title or a status covering a row hides the story (`framing.md`, rules 2, 4 and 10).
45
+ - **Anatomy:** headings, values, metadata and actions read as different roles; related rows share columns (`craft.md`, Spacing and alignment).
46
+ - **Emphasis:** nested borders, shadows and accents make every subpart compete; quieten the supporting details before adding another container (`craft.md`, Restraint; Color and looks).
47
+ - **Compact:** reflow before shrinking; a desktop screen scaled into a small slot passes an overflow check while its text becomes unreadable (`framing.md`, Small formats and the page).
48
+ - **Edges:** near-tangents; check corners too (`craft.md`, Spacing and alignment).
49
+ - **Nested spacing:** carry the inset round the bottom (`craft.md`, Spacing and alignment).
50
+ - **Control alignment:** label and icons on one balanced row; judge the visible glyph, not its SVG box (`craft.md`, Spacing and alignment).
51
+ - **Density:** whitespace groups information (`craft.md`, Spacing and alignment).
52
+ - **Contrast:** quiet is not faint (`craft.md`, Color and looks).
53
+ - **Icons:** one construction, one stroke, one optical size (`craft.md`, Icons and logos).
54
+ - **Decoration:** a gradient or glow serves the story or goes (`craft.md`, Color and looks).
55
+ - **Task anatomy:** chrome for the task (`craft.md`, Chrome and devices).
56
+ - **Unread gutter:** an unread dot never pushes its row in (`kit.md`, Row).
57
+
58
+ ## Whole scenes (stills)
59
+
60
+ Nine larger pairs in `teaching/scenes.tsx`, each 540 wide with a compact composition down to 280. The ground, the hero and the supporting pieces are judged as one picture.
61
+
62
+ - **Dashboard and phone:** each device gets a readable role; the phone never covers the amount or state it explains (`craft.md`, Chrome and devices). Compact stacks them and crops the phone's unused lower screen.
63
+ - **Window and satellite:** the result sits in the hero's quiet margin; a product's own popup is not a satellite (`framing.md`, rules 16 and 19).
64
+ - **Several windows:** choose the active step; supporting windows keep their titles and context while quieter contrast and shadow push them back (`craft.md`, Chrome and devices). Three equally loud surfaces compete even when all of them fit.
65
+ - **Colored grounds:** the background frames the product. Choose surface, text and accent against that ground; tinting everything alike removes the separation (`backgrounds.md`).
66
+ - **Dark and light materials:** a light document over a dark workspace stays a readable light document (`craft.md`, Color and looks).
67
+ - **Action and payoff:** a whole application becomes an unreadable thumbnail. Crop to the useful content at reading size and let chrome run off; the title, action and result stay whole (`framing.md`, Small formats and the page).
68
+ - **Result weight:** ask what the eye lands on first. A new file that is one thin row in a long list loses to the list; fewer, larger rows make it the heaviest thing in the frame (`examples/upload`).
69
+ - **Crop filler, never the story:** move the window or narrow the column until the last value that matters is whole (`framing.md`, rule 4).
70
+ - **One tile leads:** four equal tiles of heading and bars read as a template (`bento.md`, rule 2).
71
+
72
+ ## Style (stills)
73
+
74
+ The same deploys card in every pair; the good side never changes, and each bad side has one fault. `?example=contrasts`, Style group.
75
+
76
+ - **Purple slop:** a violet-to-pink gradient ground, gradient text and a tinted card read as generated. The product's own neutrals, one accent on the thing that matters (`craft.md`, Color and looks).
77
+ - **Tiny text:** 9 to 10px type shrunk to fit more in reads as a wireframe. 13 to 14px names, 11 to 12px metadata, fewer rows.
78
+ - **Over-detailed:** a branch, hash, author, duration and badge on every row makes every row the subject. Real detail on the one row the story is about.
79
+ - **Glow:** colored light on the card, button or status is a neon template. One soft neutral shadow.
80
+ - **Capitals:** tracked caps on headings, labels and buttons. Sentence case, unless the product itself capitalizes.
81
+ - **Invented icons:** glyphs drawn for the demo, in rainbow tiles, filled beside outlined. The product's own set or one pack, one stroke, color only where it carries status; draw an icon only when no pack has it (`craft.md`, Icons and logos).
82
+ - **AI shorthand:** sparkles, wands and gradient "AI" chips say nothing about the feature. The product's own mark, or a plain label that says what happens (`craft.md`, Icons and logos).
83
+ - **Onion skin:** an icon in a translucent ink paints darker wherever its strokes cross or join. One opaque color; a lighter opaque gray for a quieter icon.
84
+
85
+ ## Making a comparison
86
+
87
+ Change one thing. Same content, layout, endpoints and input timing; only the behavior being taught differs. No extra cards, status marks or decorative backgrounds competing for attention. Say the exact difference under each side, give the pair a replay, and make it readable at normal speed. If the lesson only shows at slow speed, the pair needs another go. How a bad example is marked on a page is in `craft.md`, A page of demos.
88
+
89
+ ## What a pair can't show
90
+
91
+ Some faults need the real demo, not a contrived pair:
92
+
93
+ - **Other text shifts:** the baseline pair reproduces one cause; the others are in `motion.md`, Changing text and values.
94
+ - **Story continuity:** does the reset make sense for what the viewer just did? Compare `examples/story/`.
95
+ - **Handoff timing:** does the flying object vanish before its destination takes over? Compare `examples/subscriptions/` and inspect the frame where ownership changes.
96
+ - **Desktop at phone width:** can you read the important labels? A recognizable silhouette is not readable UI.
97
+ - **Motion without hierarchy:** `motion.md`, Story.
98
+
99
+ A checker can flag a jump and still miss a wrong path, an implausible gesture, a bad story or an unreadable crop. Say what the tools covered and what you watched yourself.
100
+
101
+ ## Details
102
+
103
+ Six small pairs in `teaching/details.tsx`, `?example=contrasts`, Details group. Four move, two are stills; the scene is the same on both sides but for the one choice.
104
+
105
+ - **Throw a swipe at the finger's speed:** released, the row carries on at the speed it was moving and the gap closes in one ease. A pause at the hand-over, an ease-in from rest or a gap that snaps shut reads as harsh (`examples/swipe`).
106
+ - **Draw a reaction as the app does:** the real emoji in a small pill on the bubble's lower corner, ringed in the ground, scaling in from that corner. Never a drawn glyph in a disc over the words.
107
+ - **Draw a chart on from its start:** the line draws left to right, the area follows under it, the end dot lands when the line reaches it. Faded in whole, the trend is never seen (`examples/chart-scrub` for hover).
108
+ - **Balance a top bar:** one control and an empty side reads as unfinished. Put what the product puts there, or drop the bar.
109
+ - **Choose copy that fits:** unless the brief fixes them, pick names, emails and values whose length suits the layout: no truncated chips, wrapped names or ragged labels.
110
+ - **Pin a changing label to its icon:** in a fixed-width control the label sits against its chevron and grows away from it, so the gap never changes.
111
+
@@ -0,0 +1,104 @@
1
+ # Verify
2
+
3
+ The last pass. Every answer comes from a frame you looked at, never from the code. Fix the largest visible failure first, re-shoot, return to the top, iterate until every answer is yes. The rules are in `framing.md`, `craft.md` and `motion.md`.
4
+
5
+ ## Gate
6
+
7
+ - `film.mjs <url> --gate` on the wide loop ends `rehearsal passed`? (For a still, `--still --gate`.)
8
+ - The same at `--width 390`, and at the brief's own width when it names one?
9
+ - `--states --gate`: one sheet of the opening, every mark settled and the end, with nothing you would send back?
10
+
11
+ ## Framing (first, because nothing else matters if this is wrong)
12
+
13
+ - One gutter, and the window or phone bleeds off at least one edge, or sits whole because the brief wants it?
14
+ - Is anything cut by the crop that has words on it, or that the eye needs whole?
15
+ - Is the ground the page the brief named, no plate behind the device on a white or dark page?
16
+ - Is any corner of the stage empty for no reason?
17
+ - Panes full: no void under a list (`empty pane:`), rows at their own pitch (`loose list:`)?
18
+ - Phone: nothing under the island, a sheet below the status bar, a cropped phone losing status bar and nav together?
19
+
20
+ ## Hierarchy and density
21
+
22
+ - The closest gold's still beside yours: say the one difference. Is yours the sparser, flatter or smaller one, and why?
23
+ - Still: is the subject real words and values, with bars only beside it and on what the crop cuts?
24
+ - Label and value both words or both bars?
25
+ - Named avatars colored, gray discs only for filler?
26
+ - At realistic fidelity, does a list of six or more rows have at most as many placeholders as real rows?
27
+ - The heaviest mark sits on what the story is about?
28
+ - A date range: air between weeks, fading where the range continues, capped only on real start and end days?
29
+ - Bento: every tile a specific moment with its words on it; no tile that is a title over bars; stat and unit on one line?
30
+
31
+ ## Motion (animated scenes)
32
+
33
+ - Each beat filmed at 40 to 80ms with `--at` and looked at: presses, morphs, hand-offs, exits, the seam?
34
+ - Nothing appears without an entrance or leaves without an exit, except `Bubble` and `Fly` with a visible hand-off?
35
+ - A swipe lands, presses, flicks a third of the screen, lifts still moving, and the page carries on as one motion?
36
+ - A reaction grows from the bubble's corner with the room opening on the same clock?
37
+ - A terminal's marks are glyphs in the grid, each line owning its own, swapped in place?
38
+ - Rolling numbers roll in the right direction and settle once?
39
+ - The loop ends where it began, or resets with a visible cause?
40
+
41
+ ## Polish (last)
42
+
43
+ - Zoom every hand-drawn thing at 4x: would a stranger know what it is, and is any stroke clipped by its box?
44
+ - No translucent icon, no onion skin, no hand-drawn mark where the kit has one?
45
+ - Spacing even: words 12px from edges, stacks 4 to 6px of ink apart, dots 6px clear?
46
+ - Type: nothing under 10px on the phone, nothing wrapping that shouldn't?
47
+
48
+ ## What you see, what you do
49
+
50
+ | You see | You do |
51
+ |---|---|
52
+ | A void under a list or pane (`empty pane:`) | More product into it until it runs off the crop, or crop the pane; never spread the rows |
53
+ | A one-line row three times taller than its words (`fat row:`) | Padding 12px (8px dense) and more rows; never air inside the row |
54
+ | Rows spaced wider than they are tall (`loose list:`) | Tighten the pitch to the row's padding; add rows |
55
+ | A whole window floating with even margins on a hero | Bleed it off two edges with one gutter, or fill it |
56
+ | Gray bars where the eye lands | Words there; bars beside it and off the crop stay |
57
+ | A label beside a real value drawn as a bar | Both words, or drop the row |
58
+ | A stat's unit on its own line (`unit wrapped:`) | Nowrap the pair, size the number to the tile, or move the unit to the lead |
59
+ | A phone drawn small, or whole, in a narrow host | Crop it: a gutter from one edge, off the other, screen 1:1 |
60
+ | A grabber or sheet under the island | Start the sheet below the status bar |
61
+ | A popover that shifts while open (`anchor drift:`) | Pin it by the edge it opened from; reserve the height |
62
+ | An emoji where an icon belongs (`emoji icon:`) | A drawn glyph from one family; emoji stay in messages and reactions |
63
+ | An icon cut by its box (`clipped glyph:`) | Fit the drawing in its viewBox, or use the kit's glyph |
64
+ | A reaction, dot or mark on the words | Move it to the edge or gutter the kit gives it |
65
+ | A gate line you think is intentional | Look again; if it still looks fine, say so in REHEARSAL.md with the frame; never clear it by hiding the thing |
66
+ | Ten film runs, gate green, frame unchanged | Stop. Fresh eye |
67
+
68
+ ## Served motion interactions
69
+
70
+ A static scan cannot prove a transition lands, retargets, or holds its surroundings. When a page has a declared interaction, run the deterministic motion audit against a served URL:
71
+
72
+ ```bash
73
+ sloppy verify http://localhost:3000 --motion sloppy.motion.json
74
+ ```
75
+
76
+ The spec names only your own selectors; Sloppy never clicks arbitrary production controls:
77
+
78
+ ```json
79
+ {
80
+ "interactions": [
81
+ { "name": "filter menu", "trigger": "#open", "target": "#panel", "anchor": "header", "closeTrigger": "#close", "waitMs": 500 }
82
+ ]
83
+ }
84
+ ```
85
+
86
+ It reports six observed failures: `motion.handoffShift` (the element moves after settling), `motion.anchorDrift` (the surrounding geometry moves with the target), `motion.stuckTransition` (a finite animation still runs after the settle window), `motion.interruptNotRecovered` (a reversed open/close is left half-open), `motion.layoutShift` (the interaction moves other content, reported as craft evidence from observed shift entries), and `motion.focusLoss` (closing does not return focus to the trigger). Each interaction is re-run under `prefers-reduced-motion: reduce` and reports leftover travel (`motion.reducedMotionTravel`), a deleted state change (`motion.reducedMotionHidesContent`), and loops that keep running (`motion.reducedMotionKeepsLoop`). A frame-budget line is reported only as low-confidence craft evidence. `sloppy init` writes a starter `sloppy.motion.json`, and `--motion` without a path reads it from the project root. A selector that is absent is reported as `motion.missingSelector`, never a silent pass. Exit `1` means findings, exit `2` means no browser or no spec; it never reports a pass without observing the interaction.
87
+
88
+ ## Hand over
89
+
90
+ - `REHEARSAL.md` written beside the component? A template:
91
+
92
+ ```md
93
+ # Rehearsal: <demo>
94
+ Gold: <example> (what you kept, what you changed)
95
+ Beats: 1 … 2 … 3 … payoff, loop <n>s
96
+ Captured: widths <wide, 390>, looks, states, reduced motion
97
+ Gate: <the last line of film.mjs --gate on the loop, pasted>
98
+ Film: <each gate line> → <frame> → <fix or why it stands>
99
+ Review: <reviewer's list> → <your response>
100
+ Assumptions:
101
+ Unresolved:
102
+ Not checked:
103
+ ```
104
+ - Did you say what you did not watch?