vc-extras 0.1.0 → 0.1.1
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/README.md +128 -71
- package/agent-install.mjs +159 -0
- package/agents/tester.md +23 -23
- package/install-extras.mjs +41 -109
- package/install-menu.mjs +22 -43
- package/install-skills.mjs +112 -112
- package/package.json +72 -28
- package/plugin-registry.mjs +73 -0
- package/plugins/config-ui/index.ts +159 -159
- package/plugins/config-ui/lib/arguments.mjs +24 -24
- package/plugins/config-ui/lib/documents.mjs +67 -67
- package/plugins/config-ui/lib/frontmatter.mjs +91 -91
- package/plugins/config-ui/lib/open.mjs +16 -16
- package/plugins/config-ui/lib/ownership.mjs +99 -99
- package/plugins/config-ui/lib/page.mjs +11 -11
- package/plugins/config-ui/lib/patch.mjs +35 -35
- package/plugins/config-ui/lib/paths.mjs +14 -14
- package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
- package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
- package/plugins/config-ui/lib/redaction.mjs +8 -8
- package/plugins/config-ui/lib/registry.mjs +282 -282
- package/plugins/config-ui/lib/secrets.mjs +44 -44
- package/plugins/config-ui/lib/server.mjs +250 -250
- package/plugins/config-ui/lib/sources.mjs +96 -96
- package/plugins/config-ui/lib/state.mjs +156 -156
- package/plugins/config-ui/lib/themes.mjs +113 -113
- package/plugins/config-ui/lib/writer.mjs +690 -690
- package/plugins/config-ui/project-local-owner.ts +106 -106
- package/plugins/config-ui/vc-extras.plugin.json +13 -0
- package/plugins/config-ui/web/app.mjs +997 -997
- package/plugins/config-ui/web/index.html +342 -342
- package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
- package/plugins/pi-btw/vc-extras.plugin.json +12 -0
- package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
- package/plugins/pi-fff/vc-extras.plugin.json +12 -0
- package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
- package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
- package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
- package/plugins/vc-ask/claude-hook.mjs +37 -0
- package/plugins/vc-ask/codex-native.mjs +28 -0
- package/plugins/vc-ask/host-channel.mjs +75 -0
- package/plugins/vc-ask/index.ts +57 -0
- package/plugins/vc-ask/native-questions.mjs +33 -0
- package/plugins/vc-ask/package.json +10 -0
- package/plugins/vc-ask/payload.ts +170 -0
- package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
- package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
- package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
- package/plugins/vc-ask/questionnaire/config.ts +180 -0
- package/plugins/vc-ask/questionnaire/events.ts +154 -0
- package/plugins/vc-ask/questionnaire/execute.ts +688 -0
- package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
- package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
- package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
- package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
- package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
- package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
- package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
- package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
- package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
- package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
- package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
- package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
- package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
- package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
- package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
- package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
- package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
- package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
- package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
- package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
- package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
- package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
- package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
- package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
- package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
- package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
- package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
- package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
- package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
- package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
- package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
- package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
- package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
- package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
- package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
- package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
- package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
- package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
- package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
- package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
- package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
- package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
- package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
- package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
- package/plugins/vc-ask/user-input-events.ts +34 -0
- package/plugins/vc-ask/vc-extras.plugin.json +18 -0
- package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
- package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
- package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
- package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
- package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
- package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
- package/plugins/vc-footer/agents/codex/native.mjs +19 -0
- package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
- package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
- package/plugins/vc-footer/agents/pi/index.js +84 -0
- package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
- package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
- package/plugins/vc-footer/core/data.mjs +218 -0
- package/plugins/vc-footer/core/render.mjs +291 -0
- package/plugins/vc-footer/core/types.d.ts +29 -0
- package/plugins/vc-footer/package.json +22 -0
- package/plugins/vc-footer/vc-extras.plugin.json +32 -0
- package/skills/animate/LICENSE +21 -21
- package/skills/animate/RECIPES.md +324 -324
- package/skills/animate/SKILL.md +208 -208
- package/skills/animate/UPSTREAM.md +19 -19
- package/skills/animation-performance/LICENSE +21 -21
- package/skills/animation-performance/SKILL.md +223 -223
- package/skills/animation-performance/UPSTREAM.md +19 -19
- package/skills/answer-me-with-html/SKILL.md +174 -174
- package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
- package/skills/apple-design/LICENSE +21 -21
- package/skills/apple-design/SKILL.md +291 -291
- package/skills/apple-design/UPSTREAM.md +19 -19
- package/skills/bad-smell/SKILL.md +44 -44
- package/skills/commit/SKILL.md +90 -90
- package/skills/emil-design-eng/LICENSE +21 -21
- package/skills/emil-design-eng/SKILL.md +677 -677
- package/skills/emil-design-eng/UPSTREAM.md +19 -19
- package/skills/find-the-truth/SKILL.md +38 -38
- package/skills/find-the-truth/references/trace-method.md +48 -48
- package/skills/find-the-truth/references/truth-method.md +39 -39
- package/skills/gestures/LICENSE +21 -21
- package/skills/gestures/SKILL.md +107 -107
- package/skills/gestures/UPSTREAM.md +19 -19
- package/skills/humanizer-zh/LICENSE +21 -21
- package/skills/humanizer-zh/SKILL.md +409 -409
- package/skills/humanizer-zh/UPSTREAM.md +7 -7
- package/skills/impeccable/LICENSE +191 -191
- package/skills/impeccable/NOTICE.md +11 -11
- package/skills/impeccable/SKILL.md +89 -89
- package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
- package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
- package/skills/impeccable/reference/adapt.md +318 -318
- package/skills/impeccable/reference/adapt.native.md +58 -58
- package/skills/impeccable/reference/android.md +46 -46
- package/skills/impeccable/reference/animate.md +89 -89
- package/skills/impeccable/reference/audit.md +139 -139
- package/skills/impeccable/reference/audit.native.md +139 -139
- package/skills/impeccable/reference/bolder.md +33 -33
- package/skills/impeccable/reference/clarify.md +94 -94
- package/skills/impeccable/reference/colorize.md +86 -86
- package/skills/impeccable/reference/component-review.md +63 -63
- package/skills/impeccable/reference/craft-floor.md +44 -44
- package/skills/impeccable/reference/craft.md +5 -5
- package/skills/impeccable/reference/critique.md +819 -819
- package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
- package/skills/impeccable/reference/degraded/documenter.md +23 -23
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
- package/skills/impeccable/reference/delight.md +70 -70
- package/skills/impeccable/reference/distill.md +111 -111
- package/skills/impeccable/reference/doctor.md +54 -54
- package/skills/impeccable/reference/document.md +416 -416
- package/skills/impeccable/reference/extract.md +69 -69
- package/skills/impeccable/reference/generate.md +101 -101
- package/skills/impeccable/reference/harden.md +362 -362
- package/skills/impeccable/reference/hooks.md +114 -114
- package/skills/impeccable/reference/init.md +131 -131
- package/skills/impeccable/reference/ios.md +51 -51
- package/skills/impeccable/reference/layout.md +84 -84
- package/skills/impeccable/reference/live-setup.md +104 -104
- package/skills/impeccable/reference/live.md +327 -327
- package/skills/impeccable/reference/mode-operate.md +21 -21
- package/skills/impeccable/reference/mode-persuade.md +19 -19
- package/skills/impeccable/reference/mode-read.md +21 -21
- package/skills/impeccable/reference/new-work.md +152 -152
- package/skills/impeccable/reference/onboard.md +234 -234
- package/skills/impeccable/reference/operate.md +61 -61
- package/skills/impeccable/reference/optimize.md +257 -257
- package/skills/impeccable/reference/overdrive.md +127 -127
- package/skills/impeccable/reference/polish.md +105 -105
- package/skills/impeccable/reference/quieter.md +99 -99
- package/skills/impeccable/reference/region-map.md +26 -26
- package/skills/impeccable/reference/routing.md +24 -24
- package/skills/impeccable/reference/shape.md +59 -59
- package/skills/impeccable/reference/typeset.md +90 -90
- package/skills/impeccable/reference/visualize.md +47 -47
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/command-metadata.json +98 -98
- package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
- package/skills/impeccable/scripts/engine-checksums.txt +9 -9
- package/skills/impeccable/scripts/impeccable +249 -249
- package/skills/impeccable/scripts/impeccable.cmd +278 -278
- package/skills/impeccable/scripts/live-browser-dom.js +320 -320
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
- package/skills/impeccable/scripts/live-browser-session.js +183 -183
- package/skills/impeccable/scripts/live-browser.js +13862 -13862
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
- package/skills/improve-animations/AUDIT.md +115 -115
- package/skills/improve-animations/LICENSE +21 -21
- package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
- package/skills/improve-animations/SKILL.md +110 -110
- package/skills/improve-animations/UPSTREAM.md +19 -19
- package/skills/pick-ui-library/LICENSE +21 -21
- package/skills/pick-ui-library/SKILL.md +85 -85
- package/skills/pick-ui-library/UPSTREAM.md +19 -19
- package/skills/review-animations/LICENSE +21 -21
- package/skills/review-animations/SKILL.md +120 -120
- package/skills/review-animations/STANDARDS.md +187 -187
- package/skills/review-animations/UPSTREAM.md +19 -19
- package/skills/test/SKILL.md +29 -29
- package/skills/test/references/test-method.md +60 -60
- package/skills/write-doc/SKILL.md +115 -115
- package/skills/write-doc/examples/result-report.md +53 -53
- package/skills/write-doc/examples/task-summary.md +45 -45
- package/skills/write-doc/references/terminology.md +147 -147
- package/specs/ask-host-protocol-v1.md +58 -0
- package/specs/design-demo.md +1102 -1102
- package/specs/frontend-immersive.md +28 -28
- package/specs/plugin-install-v2.md +123 -0
- package/specs/plugin-install.md +38 -0
- package/specs/web-modes/explore.md +31 -31
- package/specs/web-modes/risk.md +15 -15
- package/specs/web-modes/verify.md +16 -16
- package/vc-extras.mjs +46 -62
- package/plugins/essrj/context.ts +0 -47
- package/plugins/essrj/data.ts +0 -190
- package/plugins/essrj/index.ts +0 -139
- package/plugins/essrj/package.json +0 -12
- package/plugins/essrj/project-local-owner.ts +0 -106
- package/plugins/essrj/render.ts +0 -217
- package/plugins/essrj/types.ts +0 -40
- package/plugins.json +0 -38
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
> **Additional context needed**: target platforms/devices and usage contexts.
|
|
2
|
-
|
|
3
|
-
Adapt an existing **native** design (`ios` / `android` / `adaptive`) to a different context: another device class, orientation, platform, or origin. The trap is treating adaptation as scaling. The job is rethinking the experience for the new context, inside the platform conventions of [ios.md](ios.md) / [android.md](android.md); read the target platform's reference before planning if Setup hasn't already.
|
|
4
|
-
|
|
5
|
-
## Assess Adaptation Challenge
|
|
6
|
-
|
|
7
|
-
1. **Source context**: what was it designed for, and what assumptions did it make? (Phone-only? Portrait-only? One platform's idioms? A website?)
|
|
8
|
-
2. **Target context**: which device class (phone, tablet, foldable), orientation, platform, and usage posture (one-handed on the go vs two-handed at rest)?
|
|
9
|
-
3. **What breaks**: navigation that doesn't fit the target, layouts that stretch instead of restructure, gestures or controls that don't exist there?
|
|
10
|
-
|
|
11
|
-
## Adaptation Strategies
|
|
12
|
-
|
|
13
|
-
### Phone → Tablet (iPad / large screens)
|
|
14
|
-
|
|
15
|
-
- **Restructure, don't stretch.** A scaled-up phone UI on a tablet is the failure mode. Use size classes (iOS) / window size classes (Android) to switch structure.
|
|
16
|
-
- **Navigation changes shape**: tab bar stays or becomes a sidebar on iPad; Android navigation bar becomes a rail or drawer on expanded width.
|
|
17
|
-
- **Use the width**: split view / master-detail (list + detail side by side), multi-column grids, popovers where phones used sheets.
|
|
18
|
-
- **Multitasking is a size, not an edge case**: iPad Split View and Android multi-window can hand you a phone-width window on a tablet; size-class-driven layout handles both for free.
|
|
19
|
-
|
|
20
|
-
### Orientation & foldables
|
|
21
|
-
|
|
22
|
-
- Landscape restructures (side-by-side panes, repositioned controls); never clip or letterbox. Lock orientation only when the task truly demands it.
|
|
23
|
-
- Foldables (Android): react to posture and hinge via window size classes; test folded, unfolded, and tabletop.
|
|
24
|
-
|
|
25
|
-
### Platform → platform (iOS ↔ Android)
|
|
26
|
-
|
|
27
|
-
Translate idioms; never transplant them:
|
|
28
|
-
|
|
29
|
-
| iOS | Android |
|
|
30
|
-
|---|---|
|
|
31
|
-
| Tab bar | Navigation bar / rail / drawer |
|
|
32
|
-
| Edge-swipe back, back chevron | Predictive Back gesture / button |
|
|
33
|
-
| Switch, segmented control, system pickers | Material switch, chips, Material pickers |
|
|
34
|
-
| Action sheet | Bottom sheet / Material dialog |
|
|
35
|
-
| SF Symbols, SF Pro, Dynamic Type | Material Symbols, Roboto, sp scaling |
|
|
36
|
-
| Semantic system colors, materials | Material color roles, tonal elevation |
|
|
37
|
-
| System push/sheet transitions | Container transform, shared-axis, fade-through |
|
|
38
|
-
|
|
39
|
-
Rebuild navigation and controls in the target's vocabulary; carry over the brand's expressive layer (palette intent, type accent, motion personality) through the target's theming system.
|
|
40
|
-
|
|
41
|
-
### Web → native (porting a website or web app)
|
|
42
|
-
|
|
43
|
-
Reconform, don't reflow. Replace web navigation with the platform's model, HTML-shaped controls with platform controls, hover affordances with touch-first ones, and px-based type with Dynamic Type / sp. Then treat the result to the full platform reference; the slop test there is the acceptance bar.
|
|
44
|
-
|
|
45
|
-
## Implement & Verify
|
|
46
|
-
|
|
47
|
-
- Drive structure from **size classes / window size classes**, never from device-model checks.
|
|
48
|
-
- Respect safe areas and window insets in every new configuration (notch, hinge, status bar, keyboard).
|
|
49
|
-
- Test on simulators for breadth, then real hardware for truth: at least one phone and one tablet per shipped platform, both orientations, split-screen where supported.
|
|
50
|
-
|
|
51
|
-
When the adaptation feels native to each context, hand off to `/impeccable polish` for the final pass.
|
|
52
|
-
|
|
53
|
-
**Avoid**:
|
|
54
|
-
- Ship a stretched phone layout on a tablet
|
|
55
|
-
- Port one platform's controls or navigation onto the other
|
|
56
|
-
- Hide core functionality on smaller devices (if it matters, make it work)
|
|
57
|
-
- Lock orientation to dodge a layout bug
|
|
58
|
-
- Trust simulators alone (posture, gestures, and performance need hardware)
|
|
1
|
+
> **Additional context needed**: target platforms/devices and usage contexts.
|
|
2
|
+
|
|
3
|
+
Adapt an existing **native** design (`ios` / `android` / `adaptive`) to a different context: another device class, orientation, platform, or origin. The trap is treating adaptation as scaling. The job is rethinking the experience for the new context, inside the platform conventions of [ios.md](ios.md) / [android.md](android.md); read the target platform's reference before planning if Setup hasn't already.
|
|
4
|
+
|
|
5
|
+
## Assess Adaptation Challenge
|
|
6
|
+
|
|
7
|
+
1. **Source context**: what was it designed for, and what assumptions did it make? (Phone-only? Portrait-only? One platform's idioms? A website?)
|
|
8
|
+
2. **Target context**: which device class (phone, tablet, foldable), orientation, platform, and usage posture (one-handed on the go vs two-handed at rest)?
|
|
9
|
+
3. **What breaks**: navigation that doesn't fit the target, layouts that stretch instead of restructure, gestures or controls that don't exist there?
|
|
10
|
+
|
|
11
|
+
## Adaptation Strategies
|
|
12
|
+
|
|
13
|
+
### Phone → Tablet (iPad / large screens)
|
|
14
|
+
|
|
15
|
+
- **Restructure, don't stretch.** A scaled-up phone UI on a tablet is the failure mode. Use size classes (iOS) / window size classes (Android) to switch structure.
|
|
16
|
+
- **Navigation changes shape**: tab bar stays or becomes a sidebar on iPad; Android navigation bar becomes a rail or drawer on expanded width.
|
|
17
|
+
- **Use the width**: split view / master-detail (list + detail side by side), multi-column grids, popovers where phones used sheets.
|
|
18
|
+
- **Multitasking is a size, not an edge case**: iPad Split View and Android multi-window can hand you a phone-width window on a tablet; size-class-driven layout handles both for free.
|
|
19
|
+
|
|
20
|
+
### Orientation & foldables
|
|
21
|
+
|
|
22
|
+
- Landscape restructures (side-by-side panes, repositioned controls); never clip or letterbox. Lock orientation only when the task truly demands it.
|
|
23
|
+
- Foldables (Android): react to posture and hinge via window size classes; test folded, unfolded, and tabletop.
|
|
24
|
+
|
|
25
|
+
### Platform → platform (iOS ↔ Android)
|
|
26
|
+
|
|
27
|
+
Translate idioms; never transplant them:
|
|
28
|
+
|
|
29
|
+
| iOS | Android |
|
|
30
|
+
|---|---|
|
|
31
|
+
| Tab bar | Navigation bar / rail / drawer |
|
|
32
|
+
| Edge-swipe back, back chevron | Predictive Back gesture / button |
|
|
33
|
+
| Switch, segmented control, system pickers | Material switch, chips, Material pickers |
|
|
34
|
+
| Action sheet | Bottom sheet / Material dialog |
|
|
35
|
+
| SF Symbols, SF Pro, Dynamic Type | Material Symbols, Roboto, sp scaling |
|
|
36
|
+
| Semantic system colors, materials | Material color roles, tonal elevation |
|
|
37
|
+
| System push/sheet transitions | Container transform, shared-axis, fade-through |
|
|
38
|
+
|
|
39
|
+
Rebuild navigation and controls in the target's vocabulary; carry over the brand's expressive layer (palette intent, type accent, motion personality) through the target's theming system.
|
|
40
|
+
|
|
41
|
+
### Web → native (porting a website or web app)
|
|
42
|
+
|
|
43
|
+
Reconform, don't reflow. Replace web navigation with the platform's model, HTML-shaped controls with platform controls, hover affordances with touch-first ones, and px-based type with Dynamic Type / sp. Then treat the result to the full platform reference; the slop test there is the acceptance bar.
|
|
44
|
+
|
|
45
|
+
## Implement & Verify
|
|
46
|
+
|
|
47
|
+
- Drive structure from **size classes / window size classes**, never from device-model checks.
|
|
48
|
+
- Respect safe areas and window insets in every new configuration (notch, hinge, status bar, keyboard).
|
|
49
|
+
- Test on simulators for breadth, then real hardware for truth: at least one phone and one tablet per shipped platform, both orientations, split-screen where supported.
|
|
50
|
+
|
|
51
|
+
When the adaptation feels native to each context, hand off to `/impeccable polish` for the final pass.
|
|
52
|
+
|
|
53
|
+
**Avoid**:
|
|
54
|
+
- Ship a stretched phone layout on a tablet
|
|
55
|
+
- Port one platform's controls or navigation onto the other
|
|
56
|
+
- Hide core functionality on smaller devices (if it matters, make it work)
|
|
57
|
+
- Lock orientation to dodge a layout bug
|
|
58
|
+
- Trust simulators alone (posture, gestures, and performance need hardware)
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# Android platform
|
|
2
|
-
|
|
3
|
-
For native Android apps: Jetpack Compose, Android Views, React Native, Expo, Flutter shipping to Android hardware.
|
|
4
|
-
|
|
5
|
-
On native, the visitor mode narrows what expression may override. Material Design 3 governs structure, navigation, and interaction in every mode; brand expresses through Material's theming (color roles, type scale, shape, motion). A Material-everywhere cross-platform app that also ships to iPhone still owes iOS its OS guarantees on that hardware: safe-area insets, Reduce Motion, edge-swipe back.
|
|
6
|
-
|
|
7
|
-
## The Android slop test
|
|
8
|
-
|
|
9
|
-
Would a fluent Android user trust this app, or trip on off-spec components? The most common tell is an iOS app wearing Android's skin: a bottom-only navigation copied from iPhone, a back arrow that ignores the system Back gesture, Cupertino-shaped switches and dialogs. Material 3 is the rulebook; follow its components and theme the brand through it.
|
|
10
|
-
|
|
11
|
-
## Layout & structure
|
|
12
|
-
|
|
13
|
-
- **Material navigation, matched to size.** Navigation bar (bottom, 3–5 destinations) on compact width; navigation rail or drawer on expanded width. Never ship a phone bottom-bar untouched on a tablet.
|
|
14
|
-
- **System Back always works.** Honor the predictive Back gesture and Back button; never trap the user or hijack the gesture.
|
|
15
|
-
- **Edge-to-edge with window insets.** Apply the status bar, navigation bar, display cutout, and IME insets so content never hides behind system bars or the keyboard.
|
|
16
|
-
- **Top app bar for screen context**; pair with a FAB when the screen has a single primary action.
|
|
17
|
-
|
|
18
|
-
## Touch targets
|
|
19
|
-
|
|
20
|
-
- **48×48 dp minimum** for every touch target, with at least 8 dp between them.
|
|
21
|
-
|
|
22
|
-
## Typography
|
|
23
|
-
|
|
24
|
-
- **Material type scale.** Display, Headline, Title, Body, Label roles (large/medium/small each). Map text to roles; never hand-pick sizes per screen.
|
|
25
|
-
- **Roboto is the system face**; theme a brand face in through the type scale, keeping body, labels, and controls legible and consistent.
|
|
26
|
-
- **sp units, never fixed px**, so type follows the system font-size setting.
|
|
27
|
-
|
|
28
|
-
## Color & theming
|
|
29
|
-
|
|
30
|
-
- **Material color roles** (primary, on-primary, surface, surface-variant, secondary-container, outline, error). Role tokens resolve light/dark and contrast variants automatically; raw hex breaks there.
|
|
31
|
-
- **Dynamic Color (Material You)** where it fits: derive the scheme from the user's wallpaper on Android 12+, with a static fallback.
|
|
32
|
-
- **Dark theme is a first-class scheme.** Design and test it; never a quick invert.
|
|
33
|
-
- **Tonal elevation.** Convey elevation through the standard surface tonal levels (plus shadow where appropriate); no arbitrary drop shadows.
|
|
34
|
-
|
|
35
|
-
## Components & motion
|
|
36
|
-
|
|
37
|
-
- **Material components.** Buttons (filled / tonal / outlined / text), FAB, switches, chips, snackbars, bottom sheets, Material dialogs, navigation bar/rail/drawer. Never port iOS controls or invent equivalents.
|
|
38
|
-
- **One FAB, one primary action.** Never stack FABs or spend one on a secondary task.
|
|
39
|
-
- **Snackbars for transient feedback** (actionable when useful, never a toast for that); dialogs only for decisions that must interrupt.
|
|
40
|
-
- **Material motion patterns.** Container transform, shared-axis, fade-through, with standard easing and durations; honor the system Remove animations setting with a crossfade or instant cut.
|
|
41
|
-
|
|
42
|
-
## Verifying the build
|
|
43
|
-
|
|
44
|
-
- **Screenshots come from the emulator or a connected device, never a browser.** Build and install, then capture with `adb exec-out screencap -p > <path>` (pick a device with `adb -s <serial>` when several are attached). Capture every device class the app ships to, at least one phone and, when tablets are a target, one tablet, and write the files where the review flow expects them.
|
|
45
|
-
- **Dark theme and font scale belong in the pass.** `adb shell cmd uimode night yes` flips the theme; `adb shell settings put system font_scale 1.3` (read both settings first with `adb shell cmd uimode night` and `adb shell settings get system font_scale`, and restore them after) catches the clipped labels a fixed layout hides; with several targets attached, the capture's `-s <serial>` goes on these commands too.
|
|
46
|
-
- **Emulators give breadth; gestures, refresh rates, and performance need hardware.** Say which one produced the evidence.
|
|
1
|
+
# Android platform
|
|
2
|
+
|
|
3
|
+
For native Android apps: Jetpack Compose, Android Views, React Native, Expo, Flutter shipping to Android hardware.
|
|
4
|
+
|
|
5
|
+
On native, the visitor mode narrows what expression may override. Material Design 3 governs structure, navigation, and interaction in every mode; brand expresses through Material's theming (color roles, type scale, shape, motion). A Material-everywhere cross-platform app that also ships to iPhone still owes iOS its OS guarantees on that hardware: safe-area insets, Reduce Motion, edge-swipe back.
|
|
6
|
+
|
|
7
|
+
## The Android slop test
|
|
8
|
+
|
|
9
|
+
Would a fluent Android user trust this app, or trip on off-spec components? The most common tell is an iOS app wearing Android's skin: a bottom-only navigation copied from iPhone, a back arrow that ignores the system Back gesture, Cupertino-shaped switches and dialogs. Material 3 is the rulebook; follow its components and theme the brand through it.
|
|
10
|
+
|
|
11
|
+
## Layout & structure
|
|
12
|
+
|
|
13
|
+
- **Material navigation, matched to size.** Navigation bar (bottom, 3–5 destinations) on compact width; navigation rail or drawer on expanded width. Never ship a phone bottom-bar untouched on a tablet.
|
|
14
|
+
- **System Back always works.** Honor the predictive Back gesture and Back button; never trap the user or hijack the gesture.
|
|
15
|
+
- **Edge-to-edge with window insets.** Apply the status bar, navigation bar, display cutout, and IME insets so content never hides behind system bars or the keyboard.
|
|
16
|
+
- **Top app bar for screen context**; pair with a FAB when the screen has a single primary action.
|
|
17
|
+
|
|
18
|
+
## Touch targets
|
|
19
|
+
|
|
20
|
+
- **48×48 dp minimum** for every touch target, with at least 8 dp between them.
|
|
21
|
+
|
|
22
|
+
## Typography
|
|
23
|
+
|
|
24
|
+
- **Material type scale.** Display, Headline, Title, Body, Label roles (large/medium/small each). Map text to roles; never hand-pick sizes per screen.
|
|
25
|
+
- **Roboto is the system face**; theme a brand face in through the type scale, keeping body, labels, and controls legible and consistent.
|
|
26
|
+
- **sp units, never fixed px**, so type follows the system font-size setting.
|
|
27
|
+
|
|
28
|
+
## Color & theming
|
|
29
|
+
|
|
30
|
+
- **Material color roles** (primary, on-primary, surface, surface-variant, secondary-container, outline, error). Role tokens resolve light/dark and contrast variants automatically; raw hex breaks there.
|
|
31
|
+
- **Dynamic Color (Material You)** where it fits: derive the scheme from the user's wallpaper on Android 12+, with a static fallback.
|
|
32
|
+
- **Dark theme is a first-class scheme.** Design and test it; never a quick invert.
|
|
33
|
+
- **Tonal elevation.** Convey elevation through the standard surface tonal levels (plus shadow where appropriate); no arbitrary drop shadows.
|
|
34
|
+
|
|
35
|
+
## Components & motion
|
|
36
|
+
|
|
37
|
+
- **Material components.** Buttons (filled / tonal / outlined / text), FAB, switches, chips, snackbars, bottom sheets, Material dialogs, navigation bar/rail/drawer. Never port iOS controls or invent equivalents.
|
|
38
|
+
- **One FAB, one primary action.** Never stack FABs or spend one on a secondary task.
|
|
39
|
+
- **Snackbars for transient feedback** (actionable when useful, never a toast for that); dialogs only for decisions that must interrupt.
|
|
40
|
+
- **Material motion patterns.** Container transform, shared-axis, fade-through, with standard easing and durations; honor the system Remove animations setting with a crossfade or instant cut.
|
|
41
|
+
|
|
42
|
+
## Verifying the build
|
|
43
|
+
|
|
44
|
+
- **Screenshots come from the emulator or a connected device, never a browser.** Build and install, then capture with `adb exec-out screencap -p > <path>` (pick a device with `adb -s <serial>` when several are attached). Capture every device class the app ships to, at least one phone and, when tablets are a target, one tablet, and write the files where the review flow expects them.
|
|
45
|
+
- **Dark theme and font scale belong in the pass.** `adb shell cmd uimode night yes` flips the theme; `adb shell settings put system font_scale 1.3` (read both settings first with `adb shell cmd uimode night` and `adb shell settings get system font_scale`, and restore them after) catches the clipped labels a fixed layout hides; with several targets attached, the capture's `-s <serial>` goes on these commands too.
|
|
46
|
+
- **Emulators give breadth; gestures, refresh rates, and performance need hardware.** Say which one produced the evidence.
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
> **Additional context needed**: performance constraints.
|
|
2
|
-
|
|
3
|
-
Use motion to explain state, relationship, and hierarchy, or to create one authored moment the surface has earned. Decoration without purpose is animation debt.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Visitor mode
|
|
8
|
-
|
|
9
|
-
- **Persuade + Experience:** motion may carry the voice. Prefer one rehearsed focal sequence to repeated section reveals.
|
|
10
|
-
- **Operate + Read:** motion serves feedback, state, and continuity. Keep routine transitions fast and do not make users wait through page-load choreography.
|
|
11
|
-
- **Native (`ios` / `android` / `adaptive`):** follow the Motion section of [ios.md](ios.md) or [android.md](android.md), including the platform's Reduce Motion behavior. Do not apply the web tooling below.
|
|
12
|
-
|
|
13
|
-
## Find the job
|
|
14
|
-
|
|
15
|
-
Inspect the existing motion language, interaction states, target devices, and performance budget. Find only the places where motion would:
|
|
16
|
-
|
|
17
|
-
- acknowledge an action;
|
|
18
|
-
- make a state change or spatial relationship legible;
|
|
19
|
-
- preserve continuity through navigation or layout change;
|
|
20
|
-
- direct attention at a meaningful moment;
|
|
21
|
-
- embody the selected visual world.
|
|
22
|
-
|
|
23
|
-
Ask only when a material constraint cannot be inferred. Do not animate a static area merely because it exists.
|
|
24
|
-
|
|
25
|
-
## Set the motion thesis
|
|
26
|
-
|
|
27
|
-
Write a short plan before implementation:
|
|
28
|
-
|
|
29
|
-
- **Focal moment:** the one sequence or interaction that deserves authorship, if any.
|
|
30
|
-
- **Continuity:** the state, layout, or navigation changes that need explanation.
|
|
31
|
-
- **Feedback:** the controls and outcomes that need acknowledgment.
|
|
32
|
-
- **Budget:** which effects may be expensive and how often they run.
|
|
33
|
-
|
|
34
|
-
The focal moment must come from this product and surface concept. A generic fade-and-rise, hover lift, parallax layer, or scroll reveal is not a thesis.
|
|
35
|
-
|
|
36
|
-
## Choose material by meaning
|
|
37
|
-
|
|
38
|
-
Transform and opacity are reliable foundations, not the entire palette. Choose properties for what the transition communicates:
|
|
39
|
-
|
|
40
|
-
- **Continuity and relationship:** shared-element motion, FLIP-style transforms, view transitions, or deliberate spatial movement.
|
|
41
|
-
- **Focus and depth:** bounded blur, filter, backdrop, light, or shadow changes.
|
|
42
|
-
- **Reveal and composition:** masks, clip paths, cropping, or controlled occlusion.
|
|
43
|
-
- **Material and energy:** color, gradient position, texture, distortion, or shader effects when the world and runtime support them.
|
|
44
|
-
- **State and feedback:** the smallest change that makes cause and result unmistakable.
|
|
45
|
-
|
|
46
|
-
Do not stack techniques for spectacle. One strong material idea, carried through the focal sequence and quiet supporting states, is usually enough.
|
|
47
|
-
|
|
48
|
-
Sibling stagger is appropriate when a list appears as a list. Cap the total delay, and never reinterpret every scrolled section as a staggered list.
|
|
49
|
-
|
|
50
|
-
## Timing and easing
|
|
51
|
-
|
|
52
|
-
Timing should express distance and consequence:
|
|
53
|
-
|
|
54
|
-
| Duration | Typical use |
|
|
55
|
-
|---|---|
|
|
56
|
-
| 100–150 ms | immediate feedback |
|
|
57
|
-
| 150–300 ms | routine state change |
|
|
58
|
-
| 300–500 ms | layout, overlay, or view transition |
|
|
59
|
-
| 500–800 ms | a deliberately authored focal entrance |
|
|
60
|
-
|
|
61
|
-
Exit faster than entrance. Use natural deceleration such as `cubic-bezier(0.16, 1, 0.3, 1)` for confident arrivals; do not use bounce or elastic curves by reflex. Long feedback feels like latency.
|
|
62
|
-
|
|
63
|
-
## Implement to the runtime
|
|
64
|
-
|
|
65
|
-
- Use CSS transitions and keyframes for declarative state and bounded sequences.
|
|
66
|
-
- Use Web Animations API or the project's existing motion library for interruption, sequencing, and dynamic values.
|
|
67
|
-
- Use View Transitions or shared-element techniques when continuity across states is the point.
|
|
68
|
-
- Use scroll-driven motion only when the scroll relationship itself carries meaning, with a robust fallback.
|
|
69
|
-
- Do not add a dependency for an effect the existing stack can express cleanly.
|
|
70
|
-
|
|
71
|
-
Keep content visible in the default state so failed scripts do not hide the page. Avoid casually animating layout-driving properties such as `width`, `height`, `top`, `left`, and margins; use FLIP, transforms, or grid techniques when appropriate. Bound blur, filter, shadow, canvas, and shader work to isolated regions. Apply `will-change` only during known animation. Measure on target viewports and devices rather than assuming transform means fast.
|
|
72
|
-
|
|
73
|
-
## Accessibility and control
|
|
74
|
-
|
|
75
|
-
Respect autoplay and sound preferences. Any nonessential loop must stop when offscreen or hidden.
|
|
76
|
-
|
|
77
|
-
Every web animation needs a `prefers-reduced-motion` path with an intentional alternative. Remove or reduce spatial movement while preserving opacity, color, and state transitions that carry meaning. Reduced motion means fewer and gentler animations, not disabling all motion; feedback that confirms an action should remain legible.
|
|
78
|
-
|
|
79
|
-
## Verify
|
|
80
|
-
|
|
81
|
-
- The focal motion is specific to the selected world and surface.
|
|
82
|
-
- Every supporting animation explains feedback, state, or relationship.
|
|
83
|
-
- Interruption and repeated use behave correctly.
|
|
84
|
-
- Desktop, mobile, and keyboard paths remain usable.
|
|
85
|
-
- The `prefers-reduced-motion` path reduces movement without erasing meaningful feedback or state changes.
|
|
86
|
-
- Expensive effects stay smooth on the target device.
|
|
87
|
-
- Removing an animation would lose meaning or authored character, not merely decoration.
|
|
88
|
-
|
|
89
|
-
When motion earns its place, hand off to `/impeccable polish` for the final pass.
|
|
1
|
+
> **Additional context needed**: performance constraints.
|
|
2
|
+
|
|
3
|
+
Use motion to explain state, relationship, and hierarchy, or to create one authored moment the surface has earned. Decoration without purpose is animation debt.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Visitor mode
|
|
8
|
+
|
|
9
|
+
- **Persuade + Experience:** motion may carry the voice. Prefer one rehearsed focal sequence to repeated section reveals.
|
|
10
|
+
- **Operate + Read:** motion serves feedback, state, and continuity. Keep routine transitions fast and do not make users wait through page-load choreography.
|
|
11
|
+
- **Native (`ios` / `android` / `adaptive`):** follow the Motion section of [ios.md](ios.md) or [android.md](android.md), including the platform's Reduce Motion behavior. Do not apply the web tooling below.
|
|
12
|
+
|
|
13
|
+
## Find the job
|
|
14
|
+
|
|
15
|
+
Inspect the existing motion language, interaction states, target devices, and performance budget. Find only the places where motion would:
|
|
16
|
+
|
|
17
|
+
- acknowledge an action;
|
|
18
|
+
- make a state change or spatial relationship legible;
|
|
19
|
+
- preserve continuity through navigation or layout change;
|
|
20
|
+
- direct attention at a meaningful moment;
|
|
21
|
+
- embody the selected visual world.
|
|
22
|
+
|
|
23
|
+
Ask only when a material constraint cannot be inferred. Do not animate a static area merely because it exists.
|
|
24
|
+
|
|
25
|
+
## Set the motion thesis
|
|
26
|
+
|
|
27
|
+
Write a short plan before implementation:
|
|
28
|
+
|
|
29
|
+
- **Focal moment:** the one sequence or interaction that deserves authorship, if any.
|
|
30
|
+
- **Continuity:** the state, layout, or navigation changes that need explanation.
|
|
31
|
+
- **Feedback:** the controls and outcomes that need acknowledgment.
|
|
32
|
+
- **Budget:** which effects may be expensive and how often they run.
|
|
33
|
+
|
|
34
|
+
The focal moment must come from this product and surface concept. A generic fade-and-rise, hover lift, parallax layer, or scroll reveal is not a thesis.
|
|
35
|
+
|
|
36
|
+
## Choose material by meaning
|
|
37
|
+
|
|
38
|
+
Transform and opacity are reliable foundations, not the entire palette. Choose properties for what the transition communicates:
|
|
39
|
+
|
|
40
|
+
- **Continuity and relationship:** shared-element motion, FLIP-style transforms, view transitions, or deliberate spatial movement.
|
|
41
|
+
- **Focus and depth:** bounded blur, filter, backdrop, light, or shadow changes.
|
|
42
|
+
- **Reveal and composition:** masks, clip paths, cropping, or controlled occlusion.
|
|
43
|
+
- **Material and energy:** color, gradient position, texture, distortion, or shader effects when the world and runtime support them.
|
|
44
|
+
- **State and feedback:** the smallest change that makes cause and result unmistakable.
|
|
45
|
+
|
|
46
|
+
Do not stack techniques for spectacle. One strong material idea, carried through the focal sequence and quiet supporting states, is usually enough.
|
|
47
|
+
|
|
48
|
+
Sibling stagger is appropriate when a list appears as a list. Cap the total delay, and never reinterpret every scrolled section as a staggered list.
|
|
49
|
+
|
|
50
|
+
## Timing and easing
|
|
51
|
+
|
|
52
|
+
Timing should express distance and consequence:
|
|
53
|
+
|
|
54
|
+
| Duration | Typical use |
|
|
55
|
+
|---|---|
|
|
56
|
+
| 100–150 ms | immediate feedback |
|
|
57
|
+
| 150–300 ms | routine state change |
|
|
58
|
+
| 300–500 ms | layout, overlay, or view transition |
|
|
59
|
+
| 500–800 ms | a deliberately authored focal entrance |
|
|
60
|
+
|
|
61
|
+
Exit faster than entrance. Use natural deceleration such as `cubic-bezier(0.16, 1, 0.3, 1)` for confident arrivals; do not use bounce or elastic curves by reflex. Long feedback feels like latency.
|
|
62
|
+
|
|
63
|
+
## Implement to the runtime
|
|
64
|
+
|
|
65
|
+
- Use CSS transitions and keyframes for declarative state and bounded sequences.
|
|
66
|
+
- Use Web Animations API or the project's existing motion library for interruption, sequencing, and dynamic values.
|
|
67
|
+
- Use View Transitions or shared-element techniques when continuity across states is the point.
|
|
68
|
+
- Use scroll-driven motion only when the scroll relationship itself carries meaning, with a robust fallback.
|
|
69
|
+
- Do not add a dependency for an effect the existing stack can express cleanly.
|
|
70
|
+
|
|
71
|
+
Keep content visible in the default state so failed scripts do not hide the page. Avoid casually animating layout-driving properties such as `width`, `height`, `top`, `left`, and margins; use FLIP, transforms, or grid techniques when appropriate. Bound blur, filter, shadow, canvas, and shader work to isolated regions. Apply `will-change` only during known animation. Measure on target viewports and devices rather than assuming transform means fast.
|
|
72
|
+
|
|
73
|
+
## Accessibility and control
|
|
74
|
+
|
|
75
|
+
Respect autoplay and sound preferences. Any nonessential loop must stop when offscreen or hidden.
|
|
76
|
+
|
|
77
|
+
Every web animation needs a `prefers-reduced-motion` path with an intentional alternative. Remove or reduce spatial movement while preserving opacity, color, and state transitions that carry meaning. Reduced motion means fewer and gentler animations, not disabling all motion; feedback that confirms an action should remain legible.
|
|
78
|
+
|
|
79
|
+
## Verify
|
|
80
|
+
|
|
81
|
+
- The focal motion is specific to the selected world and surface.
|
|
82
|
+
- Every supporting animation explains feedback, state, or relationship.
|
|
83
|
+
- Interruption and repeated use behave correctly.
|
|
84
|
+
- Desktop, mobile, and keyboard paths remain usable.
|
|
85
|
+
- The `prefers-reduced-motion` path reduces movement without erasing meaningful feedback or state changes.
|
|
86
|
+
- Expensive effects stay smooth on the target device.
|
|
87
|
+
- Removing an animation would lose meaning or authored character, not merely decoration.
|
|
88
|
+
|
|
89
|
+
When motion earns its place, hand off to `/impeccable polish` for the final pass.
|