mobileui-os 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,1365 @@
|
|
|
1
|
+
# Layout Architecture, Responsive Design & Spatial Systems
|
|
2
|
+
|
|
3
|
+
> Advanced agent module for layout architecture, spacing systems, grids,
|
|
4
|
+
> responsive behavior, safe areas, orientation, adaptive interfaces, device
|
|
5
|
+
> classes, split views, keyboard behavior, and spatial consistency across iOS,
|
|
6
|
+
> iPadOS, React Native, and Expo.
|
|
7
|
+
|
|
8
|
+
Version: 1.0
|
|
9
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
10
|
+
Layer: Advanced layout intelligence
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 1. PURPOSE
|
|
15
|
+
|
|
16
|
+
Layout determines how users understand the structure of an application.
|
|
17
|
+
|
|
18
|
+
A strong layout system establishes:
|
|
19
|
+
|
|
20
|
+
```text id="l53a01"
|
|
21
|
+
Hierarchy
|
|
22
|
+
Spacing
|
|
23
|
+
Alignment
|
|
24
|
+
Grouping
|
|
25
|
+
Density
|
|
26
|
+
Responsiveness
|
|
27
|
+
Adaptation
|
|
28
|
+
Spatial relationships
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The agent must design layouts as **systems**, not isolated screen compositions.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
# 2. CORE PRINCIPLE
|
|
36
|
+
|
|
37
|
+
Do not ask:
|
|
38
|
+
|
|
39
|
+
> "Where should this element go?"
|
|
40
|
+
|
|
41
|
+
Ask:
|
|
42
|
+
|
|
43
|
+
> **"What spatial relationship should this element have with everything around it?"**
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# 3. LAYOUT SYSTEM
|
|
48
|
+
|
|
49
|
+
Every application should define:
|
|
50
|
+
|
|
51
|
+
```text id="l53a02"
|
|
52
|
+
Spacing
|
|
53
|
+
Insets
|
|
54
|
+
Margins
|
|
55
|
+
Gutters
|
|
56
|
+
Grid
|
|
57
|
+
Columns
|
|
58
|
+
Rows
|
|
59
|
+
Containers
|
|
60
|
+
Alignment
|
|
61
|
+
Breakpoints
|
|
62
|
+
Safe areas
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
# 4. SPACING TOKENS
|
|
68
|
+
|
|
69
|
+
Use a centralized spacing scale.
|
|
70
|
+
|
|
71
|
+
Example:
|
|
72
|
+
|
|
73
|
+
```text id="l53a03"
|
|
74
|
+
space.xs
|
|
75
|
+
space.sm
|
|
76
|
+
space.md
|
|
77
|
+
space.lg
|
|
78
|
+
space.xl
|
|
79
|
+
space.2xl
|
|
80
|
+
space.3xl
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
The exact values should be defined by the application's design system.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
# 5. SPACING CONSISTENCY
|
|
88
|
+
|
|
89
|
+
Similar relationships should use similar spacing.
|
|
90
|
+
|
|
91
|
+
Avoid arbitrary values such as:
|
|
92
|
+
|
|
93
|
+
```text id="l53a04"
|
|
94
|
+
13
|
|
95
|
+
17
|
|
96
|
+
19
|
|
97
|
+
23
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
unless there is a specific reason.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
# 6. SPACING RHYTHM
|
|
105
|
+
|
|
106
|
+
Spacing should establish a predictable rhythm.
|
|
107
|
+
|
|
108
|
+
For example:
|
|
109
|
+
|
|
110
|
+
```text id="l53a05"
|
|
111
|
+
Related
|
|
112
|
+
→ Small gap
|
|
113
|
+
|
|
114
|
+
Grouped
|
|
115
|
+
→ Medium gap
|
|
116
|
+
|
|
117
|
+
Separate sections
|
|
118
|
+
→ Large gap
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
# 7. SPACING AS HIERARCHY
|
|
124
|
+
|
|
125
|
+
More important separation should generally receive more visual space.
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
# 8. INNER PADDING
|
|
130
|
+
|
|
131
|
+
Cards, buttons, fields, and panels should have intentional internal padding.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
# 9. OUTER MARGIN
|
|
136
|
+
|
|
137
|
+
Outer spacing establishes relationships between components.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
# 10. EDGE INSETS
|
|
142
|
+
|
|
143
|
+
Primary content should respect platform-appropriate horizontal margins.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
# 11. SCREEN PADDING
|
|
148
|
+
|
|
149
|
+
Avoid placing important content directly against screen edges unless the design
|
|
150
|
+
specifically calls for edge-to-edge presentation.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
# 12. SAFE AREAS
|
|
155
|
+
|
|
156
|
+
The agent must account for system interface regions.
|
|
157
|
+
|
|
158
|
+
Examples:
|
|
159
|
+
|
|
160
|
+
```text id="l53a06"
|
|
161
|
+
Status bar
|
|
162
|
+
Home indicator
|
|
163
|
+
Camera/notch region
|
|
164
|
+
Navigation area
|
|
165
|
+
Keyboard
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
# 13. SAFE-AREA PRINCIPLE
|
|
171
|
+
|
|
172
|
+
Interactive controls should remain reachable and visually clear around system
|
|
173
|
+
insets.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
# 14. EDGE-TO-EDGE
|
|
178
|
+
|
|
179
|
+
Edge-to-edge layouts may be used intentionally.
|
|
180
|
+
|
|
181
|
+
When using them, distinguish:
|
|
182
|
+
|
|
183
|
+
```text id="l53a07"
|
|
184
|
+
Background extension
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
from:
|
|
188
|
+
|
|
189
|
+
```text
|
|
190
|
+
Content-safe region
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
# 15. SAFE AREA + BACKGROUND
|
|
196
|
+
|
|
197
|
+
A background may extend behind system UI while foreground content respects
|
|
198
|
+
appropriate safe areas.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
# 16. HEADER ARCHITECTURE
|
|
203
|
+
|
|
204
|
+
Headers should define:
|
|
205
|
+
|
|
206
|
+
```text id="l53a08"
|
|
207
|
+
Navigation context
|
|
208
|
+
Title
|
|
209
|
+
Primary actions
|
|
210
|
+
Secondary actions
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
without becoming overcrowded.
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
# 17. HEADER HEIGHT
|
|
218
|
+
|
|
219
|
+
Header dimensions should remain consistent within the same navigation context.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
# 18. HEADER COLLAPSE
|
|
224
|
+
|
|
225
|
+
Large headers may transform into compact headers during scrolling.
|
|
226
|
+
|
|
227
|
+
This should preserve title context.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
# 19. FOOTER ARCHITECTURE
|
|
232
|
+
|
|
233
|
+
Persistent bottom controls should account for:
|
|
234
|
+
|
|
235
|
+
```text id="l53a09"
|
|
236
|
+
Safe area
|
|
237
|
+
Gesture area
|
|
238
|
+
Keyboard
|
|
239
|
+
Content scrolling
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
# 20. BOTTOM BAR
|
|
245
|
+
|
|
246
|
+
Bottom navigation should remain visually distinct from page content.
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
# 21. CONTENT INSETS
|
|
251
|
+
|
|
252
|
+
Scrollable content should include enough inset so important content does not
|
|
253
|
+
disappear beneath persistent controls.
|
|
254
|
+
|
|
255
|
+
---
|
|
256
|
+
|
|
257
|
+
# 22. SCROLL INDICATORS
|
|
258
|
+
|
|
259
|
+
Scrollable regions should provide sufficient visual and interaction space for
|
|
260
|
+
scroll indicators where relevant.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
# 23. CONTAINER SYSTEM
|
|
265
|
+
|
|
266
|
+
A mature interface may define:
|
|
267
|
+
|
|
268
|
+
```text id="l53a10"
|
|
269
|
+
Full-width container
|
|
270
|
+
Standard container
|
|
271
|
+
Reading container
|
|
272
|
+
Compact container
|
|
273
|
+
Expanded container
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
# 24. CONTENT WIDTH
|
|
279
|
+
|
|
280
|
+
Not all content should use the entire available screen width.
|
|
281
|
+
|
|
282
|
+
Reading-heavy content often benefits from a maximum width.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
# 25. MAXIMUM WIDTH
|
|
287
|
+
|
|
288
|
+
On larger screens, constrain content when unrestricted expansion reduces
|
|
289
|
+
readability.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
# 26. FULL-WIDTH CONTENT
|
|
294
|
+
|
|
295
|
+
Full-width layouts are appropriate for:
|
|
296
|
+
|
|
297
|
+
```text id="l53a11"
|
|
298
|
+
Media
|
|
299
|
+
Maps
|
|
300
|
+
Dashboards
|
|
301
|
+
Large grids
|
|
302
|
+
Immersive surfaces
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
# 27. GRID SYSTEM
|
|
308
|
+
|
|
309
|
+
Complex screens may use a column grid.
|
|
310
|
+
|
|
311
|
+
Example:
|
|
312
|
+
|
|
313
|
+
```text id="l53a12"
|
|
314
|
+
Margins
|
|
315
|
+
│
|
|
316
|
+
Column
|
|
317
|
+
Gutter
|
|
318
|
+
Column
|
|
319
|
+
Gutter
|
|
320
|
+
Column
|
|
321
|
+
│
|
|
322
|
+
Margins
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
# 28. GRID PURPOSE
|
|
328
|
+
|
|
329
|
+
Grid systems provide:
|
|
330
|
+
|
|
331
|
+
```text id="l53a13"
|
|
332
|
+
Alignment
|
|
333
|
+
Consistency
|
|
334
|
+
Responsive adaptation
|
|
335
|
+
Visual rhythm
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
# 29. GRID FLEXIBILITY
|
|
341
|
+
|
|
342
|
+
Do not force every component into visible grid lines.
|
|
343
|
+
|
|
344
|
+
The grid is an underlying structure.
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
# 30. COLUMN COUNT
|
|
349
|
+
|
|
350
|
+
Column count may change based on available width.
|
|
351
|
+
|
|
352
|
+
Conceptually:
|
|
353
|
+
|
|
354
|
+
```text id="l53a14"
|
|
355
|
+
Compact
|
|
356
|
+
→ 1–2 columns
|
|
357
|
+
|
|
358
|
+
Medium
|
|
359
|
+
→ 2–4 columns
|
|
360
|
+
|
|
361
|
+
Expanded
|
|
362
|
+
→ More columns
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
Actual values depend on the application.
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
# 31. GUTTERS
|
|
370
|
+
|
|
371
|
+
Gutters separate columns without visually fragmenting the layout.
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
# 32. ROW RHYTHM
|
|
376
|
+
|
|
377
|
+
Rows should maintain predictable vertical spacing.
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
# 33. ALIGNMENT
|
|
382
|
+
|
|
383
|
+
Related elements should share meaningful alignment.
|
|
384
|
+
|
|
385
|
+
Common alignments:
|
|
386
|
+
|
|
387
|
+
```text id="l53a15"
|
|
388
|
+
Leading
|
|
389
|
+
Trailing
|
|
390
|
+
Center
|
|
391
|
+
Baseline
|
|
392
|
+
Top
|
|
393
|
+
Bottom
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
# 34. OPTICAL ALIGNMENT
|
|
399
|
+
|
|
400
|
+
Mathematical alignment is not always visually correct.
|
|
401
|
+
|
|
402
|
+
Icons, text, and irregular shapes may require optical adjustment.
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
# 35. BASELINE ALIGNMENT
|
|
407
|
+
|
|
408
|
+
Text-heavy layouts should preserve baseline relationships where appropriate.
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
# 36. COMPONENT ALIGNMENT
|
|
413
|
+
|
|
414
|
+
Repeated components should use consistent internal alignment.
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
# 37. CARD GRID
|
|
419
|
+
|
|
420
|
+
Cards should maintain consistent:
|
|
421
|
+
|
|
422
|
+
```text id="l53a16"
|
|
423
|
+
Width
|
|
424
|
+
Padding
|
|
425
|
+
Title alignment
|
|
426
|
+
Action placement
|
|
427
|
+
Spacing
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
unless the hierarchy intentionally differs.
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
# 38. LIST LAYOUT
|
|
435
|
+
|
|
436
|
+
List rows should establish a predictable structure.
|
|
437
|
+
|
|
438
|
+
Example:
|
|
439
|
+
|
|
440
|
+
```text id="l53a17"
|
|
441
|
+
[Icon] [Primary]
|
|
442
|
+
[Secondary] [Action]
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
# 39. LIST DENSITY
|
|
448
|
+
|
|
449
|
+
Support appropriate density based on context.
|
|
450
|
+
|
|
451
|
+
Potential modes:
|
|
452
|
+
|
|
453
|
+
```text id="l53a18"
|
|
454
|
+
Compact
|
|
455
|
+
Standard
|
|
456
|
+
Comfortable
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
461
|
+
# 40. DETAIL LAYOUT
|
|
462
|
+
|
|
463
|
+
Detail screens should establish a clear information hierarchy.
|
|
464
|
+
|
|
465
|
+
Typical:
|
|
466
|
+
|
|
467
|
+
```text id="l53a19"
|
|
468
|
+
Navigation
|
|
469
|
+
↓
|
|
470
|
+
Identity / hero
|
|
471
|
+
↓
|
|
472
|
+
Primary information
|
|
473
|
+
↓
|
|
474
|
+
Secondary information
|
|
475
|
+
↓
|
|
476
|
+
Actions
|
|
477
|
+
↓
|
|
478
|
+
Supporting content
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
---
|
|
482
|
+
|
|
483
|
+
# 41. HERO LAYOUT
|
|
484
|
+
|
|
485
|
+
Hero content may include:
|
|
486
|
+
|
|
487
|
+
```text id="l53a20"
|
|
488
|
+
Image
|
|
489
|
+
Title
|
|
490
|
+
Subtitle
|
|
491
|
+
Primary action
|
|
492
|
+
Supporting metadata
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
Do not allow hero content to consume excessive space without purpose.
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
# 42. FORM LAYOUT
|
|
500
|
+
|
|
501
|
+
Forms should prioritize:
|
|
502
|
+
|
|
503
|
+
```text id="l53a21"
|
|
504
|
+
Label
|
|
505
|
+
Input
|
|
506
|
+
Supporting information
|
|
507
|
+
Validation
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
# 43. FORM GROUPING
|
|
513
|
+
|
|
514
|
+
Related fields should be grouped spatially.
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
# 44. FORM SECTIONS
|
|
519
|
+
|
|
520
|
+
Long forms should use section hierarchy rather than one continuous wall of
|
|
521
|
+
inputs.
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
# 45. ACTION PLACEMENT
|
|
526
|
+
|
|
527
|
+
Primary actions should be easy to locate and operate.
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
# 46. PRIMARY ACTION AREA
|
|
532
|
+
|
|
533
|
+
For important workflows, the primary action should remain accessible without
|
|
534
|
+
forcing unnecessary navigation.
|
|
535
|
+
|
|
536
|
+
---
|
|
537
|
+
|
|
538
|
+
# 47. ACTION HIERARCHY
|
|
539
|
+
|
|
540
|
+
Spatial prominence should match action importance.
|
|
541
|
+
|
|
542
|
+
---
|
|
543
|
+
|
|
544
|
+
# 48. DESTRUCTIVE ACTIONS
|
|
545
|
+
|
|
546
|
+
Destructive actions should not accidentally occupy the same visual priority
|
|
547
|
+
as safe primary actions.
|
|
548
|
+
|
|
549
|
+
---
|
|
550
|
+
|
|
551
|
+
# 49. MODAL LAYOUT
|
|
552
|
+
|
|
553
|
+
Modals should have:
|
|
554
|
+
|
|
555
|
+
```text id="l53a22"
|
|
556
|
+
Clear bounds
|
|
557
|
+
Readable content
|
|
558
|
+
Obvious actions
|
|
559
|
+
Dismissal mechanism
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
---
|
|
563
|
+
|
|
564
|
+
# 50. SHEET LAYOUT
|
|
565
|
+
|
|
566
|
+
Sheets should adapt their height to content where appropriate.
|
|
567
|
+
|
|
568
|
+
---
|
|
569
|
+
|
|
570
|
+
# 51. SHEET CONTENT
|
|
571
|
+
|
|
572
|
+
Scrollable content should be used when the sheet cannot comfortably fit its
|
|
573
|
+
content.
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
# 52. SHEET + KEYBOARD
|
|
578
|
+
|
|
579
|
+
When the keyboard appears:
|
|
580
|
+
|
|
581
|
+
```text id="l53a23"
|
|
582
|
+
Input
|
|
583
|
+
→ Remains visible
|
|
584
|
+
|
|
585
|
+
Action
|
|
586
|
+
→ Remains accessible
|
|
587
|
+
|
|
588
|
+
Content
|
|
589
|
+
→ Can scroll
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
---
|
|
593
|
+
|
|
594
|
+
# 53. KEYBOARD AVOIDANCE
|
|
595
|
+
|
|
596
|
+
Do not simply move the entire interface upward if doing so destroys the
|
|
597
|
+
underlying spatial hierarchy.
|
|
598
|
+
|
|
599
|
+
Adapt the affected content region.
|
|
600
|
+
|
|
601
|
+
---
|
|
602
|
+
|
|
603
|
+
# 54. KEYBOARD DISMISSAL
|
|
604
|
+
|
|
605
|
+
Provide predictable ways to dismiss the keyboard where appropriate.
|
|
606
|
+
|
|
607
|
+
---
|
|
608
|
+
|
|
609
|
+
# 55. ORIENTATION
|
|
610
|
+
|
|
611
|
+
The layout should account for:
|
|
612
|
+
|
|
613
|
+
```text id="l53a24"
|
|
614
|
+
Portrait
|
|
615
|
+
Landscape
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
where the application supports both.
|
|
619
|
+
|
|
620
|
+
---
|
|
621
|
+
|
|
622
|
+
# 56. ORIENTATION CHANGE
|
|
623
|
+
|
|
624
|
+
Orientation changes should preserve:
|
|
625
|
+
|
|
626
|
+
```text id="l53a25"
|
|
627
|
+
Navigation state
|
|
628
|
+
Scroll position where possible
|
|
629
|
+
Input state
|
|
630
|
+
Selection
|
|
631
|
+
User progress
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
---
|
|
635
|
+
|
|
636
|
+
# 57. PORTRAIT
|
|
637
|
+
|
|
638
|
+
Portrait layouts typically prioritize:
|
|
639
|
+
|
|
640
|
+
```text id="l53a26"
|
|
641
|
+
Vertical flow
|
|
642
|
+
Single-column content
|
|
643
|
+
Reachability
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
|
|
648
|
+
# 58. LANDSCAPE
|
|
649
|
+
|
|
650
|
+
Landscape can provide:
|
|
651
|
+
|
|
652
|
+
```text id="l53a27"
|
|
653
|
+
More horizontal space
|
|
654
|
+
Side-by-side content
|
|
655
|
+
Expanded controls
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
---
|
|
659
|
+
|
|
660
|
+
# 59. ADAPTIVE LAYOUT
|
|
661
|
+
|
|
662
|
+
Do not simply stretch portrait layouts into landscape.
|
|
663
|
+
|
|
664
|
+
Recompose the layout where appropriate.
|
|
665
|
+
|
|
666
|
+
---
|
|
667
|
+
|
|
668
|
+
# 60. RESPONSIVE DESIGN
|
|
669
|
+
|
|
670
|
+
Responsive behavior should be based on available space rather than device-name
|
|
671
|
+
assumptions.
|
|
672
|
+
|
|
673
|
+
Bad:
|
|
674
|
+
|
|
675
|
+
```text id="l53a28"
|
|
676
|
+
if iPhone
|
|
677
|
+
if iPad
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
Better:
|
|
681
|
+
|
|
682
|
+
```text id="l53a29"
|
|
683
|
+
if availableWidth >= threshold
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
---
|
|
687
|
+
|
|
688
|
+
# 61. WIDTH CLASSES
|
|
689
|
+
|
|
690
|
+
Conceptually define:
|
|
691
|
+
|
|
692
|
+
```text id="l53a30"
|
|
693
|
+
Compact
|
|
694
|
+
Medium
|
|
695
|
+
Expanded
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
---
|
|
699
|
+
|
|
700
|
+
# 62. HEIGHT CONSIDERATION
|
|
701
|
+
|
|
702
|
+
Available height can also affect layout decisions.
|
|
703
|
+
|
|
704
|
+
---
|
|
705
|
+
|
|
706
|
+
# 63. RESPONSIVE BREAKPOINTS
|
|
707
|
+
|
|
708
|
+
Breakpoints should represent meaningful layout changes.
|
|
709
|
+
|
|
710
|
+
Do not create breakpoints simply because a framework supports them.
|
|
711
|
+
|
|
712
|
+
---
|
|
713
|
+
|
|
714
|
+
# 64. BREAKPOINT RULE
|
|
715
|
+
|
|
716
|
+
A breakpoint should answer:
|
|
717
|
+
|
|
718
|
+
> "What changes at this width?"
|
|
719
|
+
|
|
720
|
+
Examples:
|
|
721
|
+
|
|
722
|
+
```text id="l53a31"
|
|
723
|
+
1 column
|
|
724
|
+
→
|
|
725
|
+
2 columns
|
|
726
|
+
|
|
727
|
+
Bottom controls
|
|
728
|
+
→
|
|
729
|
+
Side controls
|
|
730
|
+
|
|
731
|
+
Collapsed navigation
|
|
732
|
+
→
|
|
733
|
+
Expanded navigation
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
---
|
|
737
|
+
|
|
738
|
+
# 65. IPHONE ADAPTATION
|
|
739
|
+
|
|
740
|
+
Compact interfaces should prioritize:
|
|
741
|
+
|
|
742
|
+
```text id="l53a32"
|
|
743
|
+
Reachability
|
|
744
|
+
Readable typography
|
|
745
|
+
Simple navigation
|
|
746
|
+
Focused actions
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
---
|
|
750
|
+
|
|
751
|
+
# 66. IPAD ADAPTATION
|
|
752
|
+
|
|
753
|
+
Larger interfaces can expose:
|
|
754
|
+
|
|
755
|
+
```text id="l53a33"
|
|
756
|
+
Sidebars
|
|
757
|
+
Multiple columns
|
|
758
|
+
Persistent navigation
|
|
759
|
+
Inspector panels
|
|
760
|
+
Split views
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
---
|
|
764
|
+
|
|
765
|
+
# 67. SPLIT VIEW
|
|
766
|
+
|
|
767
|
+
Split layouts can represent:
|
|
768
|
+
|
|
769
|
+
```text id="l53a34"
|
|
770
|
+
Master
|
|
771
|
+
+
|
|
772
|
+
Detail
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
---
|
|
776
|
+
|
|
777
|
+
# 68. MASTER-DETAIL
|
|
778
|
+
|
|
779
|
+
Examples:
|
|
780
|
+
|
|
781
|
+
```text id="l53a35"
|
|
782
|
+
File list
|
|
783
|
+
+
|
|
784
|
+
File preview
|
|
785
|
+
|
|
786
|
+
Conversation list
|
|
787
|
+
+
|
|
788
|
+
Conversation
|
|
789
|
+
|
|
790
|
+
Music library
|
|
791
|
+
+
|
|
792
|
+
Now playing
|
|
793
|
+
```
|
|
794
|
+
|
|
795
|
+
---
|
|
796
|
+
|
|
797
|
+
# 69. SPLIT VIEW BEHAVIOR
|
|
798
|
+
|
|
799
|
+
On compact widths:
|
|
800
|
+
|
|
801
|
+
```text id="l53a36"
|
|
802
|
+
Master
|
|
803
|
+
→
|
|
804
|
+
Detail
|
|
805
|
+
```
|
|
806
|
+
|
|
807
|
+
On expanded widths:
|
|
808
|
+
|
|
809
|
+
```text id="l53a37"
|
|
810
|
+
Master
|
|
811
|
+
+
|
|
812
|
+
Detail
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
---
|
|
816
|
+
|
|
817
|
+
# 70. SIDEBARS
|
|
818
|
+
|
|
819
|
+
Sidebars can replace bottom navigation on larger surfaces when appropriate.
|
|
820
|
+
|
|
821
|
+
---
|
|
822
|
+
|
|
823
|
+
# 71. SIDEBAR WIDTH
|
|
824
|
+
|
|
825
|
+
Sidebars should be wide enough for labels but narrow enough to preserve content
|
|
826
|
+
space.
|
|
827
|
+
|
|
828
|
+
---
|
|
829
|
+
|
|
830
|
+
# 72. INSPECTOR PANELS
|
|
831
|
+
|
|
832
|
+
Advanced applications may use:
|
|
833
|
+
|
|
834
|
+
```text id="l53a38"
|
|
835
|
+
Content
|
|
836
|
+
+
|
|
837
|
+
Inspector
|
|
838
|
+
```
|
|
839
|
+
|
|
840
|
+
on large displays.
|
|
841
|
+
|
|
842
|
+
---
|
|
843
|
+
|
|
844
|
+
# 73. MULTI-PANEL ARCHITECTURE
|
|
845
|
+
|
|
846
|
+
For large screens:
|
|
847
|
+
|
|
848
|
+
```text id="l53a39"
|
|
849
|
+
Navigation
|
|
850
|
+
+
|
|
851
|
+
Content
|
|
852
|
+
+
|
|
853
|
+
Inspector
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
can expose deeper functionality without excessive navigation.
|
|
857
|
+
|
|
858
|
+
---
|
|
859
|
+
|
|
860
|
+
# 74. RESPONSIVE NAVIGATION
|
|
861
|
+
|
|
862
|
+
Navigation may transform:
|
|
863
|
+
|
|
864
|
+
```text id="l53a40"
|
|
865
|
+
Bottom tabs
|
|
866
|
+
→
|
|
867
|
+
Sidebar
|
|
868
|
+
|
|
869
|
+
Compact header
|
|
870
|
+
→
|
|
871
|
+
Expanded navigation
|
|
872
|
+
```
|
|
873
|
+
|
|
874
|
+
based on available space.
|
|
875
|
+
|
|
876
|
+
---
|
|
877
|
+
|
|
878
|
+
# 75. NAVIGATION STATE
|
|
879
|
+
|
|
880
|
+
Changing layout should not unexpectedly reset navigation state.
|
|
881
|
+
|
|
882
|
+
---
|
|
883
|
+
|
|
884
|
+
# 76. REACHABILITY
|
|
885
|
+
|
|
886
|
+
Frequently used actions should be placed within comfortable interaction
|
|
887
|
+
regions.
|
|
888
|
+
|
|
889
|
+
---
|
|
890
|
+
|
|
891
|
+
# 77. TOUCH TARGETS
|
|
892
|
+
|
|
893
|
+
Interactive controls must have sufficiently large touch targets.
|
|
894
|
+
|
|
895
|
+
The visual icon may be smaller than the actual hit area.
|
|
896
|
+
|
|
897
|
+
---
|
|
898
|
+
|
|
899
|
+
# 78. HIT SLOP
|
|
900
|
+
|
|
901
|
+
When appropriate, increase the effective touch area without visually enlarging
|
|
902
|
+
the control.
|
|
903
|
+
|
|
904
|
+
---
|
|
905
|
+
|
|
906
|
+
# 79. SPACING BETWEEN TARGETS
|
|
907
|
+
|
|
908
|
+
Adjacent controls should have enough separation to reduce accidental activation.
|
|
909
|
+
|
|
910
|
+
---
|
|
911
|
+
|
|
912
|
+
# 80. POINTER INPUT
|
|
913
|
+
|
|
914
|
+
On iPad and pointer-enabled environments, support:
|
|
915
|
+
|
|
916
|
+
```text id="l53a41"
|
|
917
|
+
Hover
|
|
918
|
+
Pointer
|
|
919
|
+
Focus
|
|
920
|
+
Context menu
|
|
921
|
+
```
|
|
922
|
+
|
|
923
|
+
where appropriate.
|
|
924
|
+
|
|
925
|
+
---
|
|
926
|
+
|
|
927
|
+
# 81. POINTER + TOUCH
|
|
928
|
+
|
|
929
|
+
Pointer interactions should complement rather than replace touch interaction.
|
|
930
|
+
|
|
931
|
+
---
|
|
932
|
+
|
|
933
|
+
# 82. KEYBOARD INPUT
|
|
934
|
+
|
|
935
|
+
For productivity applications, keyboard navigation may require:
|
|
936
|
+
|
|
937
|
+
```text id="l53a42"
|
|
938
|
+
Focus order
|
|
939
|
+
Shortcuts
|
|
940
|
+
Tab navigation
|
|
941
|
+
Escape
|
|
942
|
+
Return
|
|
943
|
+
Arrow keys
|
|
944
|
+
```
|
|
945
|
+
|
|
946
|
+
---
|
|
947
|
+
|
|
948
|
+
# 83. FOCUS ORDER
|
|
949
|
+
|
|
950
|
+
Focus should follow a logical reading and interaction order.
|
|
951
|
+
|
|
952
|
+
---
|
|
953
|
+
|
|
954
|
+
# 84. FOCUS + LAYOUT
|
|
955
|
+
|
|
956
|
+
Focused elements should remain visible when scrolling or changing layout.
|
|
957
|
+
|
|
958
|
+
---
|
|
959
|
+
|
|
960
|
+
# 85. ACCESSIBILITY LAYOUT
|
|
961
|
+
|
|
962
|
+
Large text, VoiceOver, zoom, and other accessibility features may alter spatial
|
|
963
|
+
requirements.
|
|
964
|
+
|
|
965
|
+
---
|
|
966
|
+
|
|
967
|
+
# 86. DYNAMIC TYPE + LAYOUT
|
|
968
|
+
|
|
969
|
+
When typography expands:
|
|
970
|
+
|
|
971
|
+
```text id="l53a43"
|
|
972
|
+
Fixed horizontal layout
|
|
973
|
+
→
|
|
974
|
+
Flexible layout
|
|
975
|
+
```
|
|
976
|
+
|
|
977
|
+
where necessary.
|
|
978
|
+
|
|
979
|
+
---
|
|
980
|
+
|
|
981
|
+
# 87. CONTENT PRIORITY DURING COMPRESSION
|
|
982
|
+
|
|
983
|
+
When space becomes constrained:
|
|
984
|
+
|
|
985
|
+
```text id="l53a44"
|
|
986
|
+
Decorative
|
|
987
|
+
↓
|
|
988
|
+
Secondary
|
|
989
|
+
↓
|
|
990
|
+
Supporting
|
|
991
|
+
↓
|
|
992
|
+
Primary remains
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
---
|
|
996
|
+
|
|
997
|
+
# 88. ADAPTIVE COLLAPSE
|
|
998
|
+
|
|
999
|
+
Secondary content may collapse into:
|
|
1000
|
+
|
|
1001
|
+
```text id="l53a45"
|
|
1002
|
+
Disclosure
|
|
1003
|
+
Menu
|
|
1004
|
+
Sheet
|
|
1005
|
+
Expandable section
|
|
1006
|
+
```
|
|
1007
|
+
|
|
1008
|
+
rather than disappearing permanently.
|
|
1009
|
+
|
|
1010
|
+
---
|
|
1011
|
+
|
|
1012
|
+
# 89. RESPONSIVE GRIDS
|
|
1013
|
+
|
|
1014
|
+
Grid content should adapt without producing:
|
|
1015
|
+
|
|
1016
|
+
```text id="l53a46"
|
|
1017
|
+
Tiny cards
|
|
1018
|
+
Huge empty spaces
|
|
1019
|
+
Broken alignment
|
|
1020
|
+
Unusable controls
|
|
1021
|
+
```
|
|
1022
|
+
|
|
1023
|
+
---
|
|
1024
|
+
|
|
1025
|
+
# 90. MINIMUM COMPONENT WIDTH
|
|
1026
|
+
|
|
1027
|
+
Components should define practical minimum widths.
|
|
1028
|
+
|
|
1029
|
+
---
|
|
1030
|
+
|
|
1031
|
+
# 91. MAXIMUM COMPONENT WIDTH
|
|
1032
|
+
|
|
1033
|
+
Some components should have maximum widths to preserve readability.
|
|
1034
|
+
|
|
1035
|
+
---
|
|
1036
|
+
|
|
1037
|
+
# 92. FLEXIBLE COMPONENTS
|
|
1038
|
+
|
|
1039
|
+
Use flexible sizing when content can legitimately expand.
|
|
1040
|
+
|
|
1041
|
+
---
|
|
1042
|
+
|
|
1043
|
+
# 93. FIXED COMPONENTS
|
|
1044
|
+
|
|
1045
|
+
Use fixed dimensions only when the physical size is semantically important.
|
|
1046
|
+
|
|
1047
|
+
---
|
|
1048
|
+
|
|
1049
|
+
# 94. ASPECT RATIO
|
|
1050
|
+
|
|
1051
|
+
Media components should preserve meaningful aspect ratios.
|
|
1052
|
+
|
|
1053
|
+
Examples:
|
|
1054
|
+
|
|
1055
|
+
```text id="l53a47"
|
|
1056
|
+
Artwork
|
|
1057
|
+
Video
|
|
1058
|
+
Document preview
|
|
1059
|
+
Avatar
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
---
|
|
1063
|
+
|
|
1064
|
+
# 95. IMAGE FIT
|
|
1065
|
+
|
|
1066
|
+
Choose image fitting based on semantic importance:
|
|
1067
|
+
|
|
1068
|
+
```text id="l53a48"
|
|
1069
|
+
Contain
|
|
1070
|
+
→ Entire object matters
|
|
1071
|
+
|
|
1072
|
+
Cover
|
|
1073
|
+
→ Visual filling matters
|
|
1074
|
+
```
|
|
1075
|
+
|
|
1076
|
+
---
|
|
1077
|
+
|
|
1078
|
+
# 96. SAFE CROP
|
|
1079
|
+
|
|
1080
|
+
Important visual information should not be accidentally cropped.
|
|
1081
|
+
|
|
1082
|
+
---
|
|
1083
|
+
|
|
1084
|
+
# 97. OVERFLOW
|
|
1085
|
+
|
|
1086
|
+
Overflow should be deliberate.
|
|
1087
|
+
|
|
1088
|
+
Possible strategies:
|
|
1089
|
+
|
|
1090
|
+
```text id="l53a49"
|
|
1091
|
+
Wrap
|
|
1092
|
+
Scroll
|
|
1093
|
+
Truncate
|
|
1094
|
+
Collapse
|
|
1095
|
+
Clip
|
|
1096
|
+
```
|
|
1097
|
+
|
|
1098
|
+
---
|
|
1099
|
+
|
|
1100
|
+
# 98. HORIZONTAL SCROLL
|
|
1101
|
+
|
|
1102
|
+
Use horizontal scrolling only when it communicates a useful collection or
|
|
1103
|
+
continuous surface.
|
|
1104
|
+
|
|
1105
|
+
Do not hide critical actions inside unexpected horizontal scroll regions.
|
|
1106
|
+
|
|
1107
|
+
---
|
|
1108
|
+
|
|
1109
|
+
# 99. VERTICAL SCROLL
|
|
1110
|
+
|
|
1111
|
+
Vertical scrolling should generally be the default for content-heavy surfaces.
|
|
1112
|
+
|
|
1113
|
+
---
|
|
1114
|
+
|
|
1115
|
+
# 100. LAYOUT QUALITY GATE
|
|
1116
|
+
|
|
1117
|
+
```text id="l53a50"
|
|
1118
|
+
[ ] Spacing tokens exist
|
|
1119
|
+
[ ] Layout uses semantic spacing
|
|
1120
|
+
[ ] Alignment is intentional
|
|
1121
|
+
[ ] Screen insets are defined
|
|
1122
|
+
[ ] Safe areas are respected
|
|
1123
|
+
[ ] Edge-to-edge behavior is intentional
|
|
1124
|
+
[ ] Headers are structured
|
|
1125
|
+
[ ] Bottom controls respect safe areas
|
|
1126
|
+
[ ] Scroll content respects persistent controls
|
|
1127
|
+
[ ] Containers have meaningful widths
|
|
1128
|
+
[ ] Reading content has appropriate max width
|
|
1129
|
+
[ ] Grid behavior is defined
|
|
1130
|
+
[ ] Lists have consistent structure
|
|
1131
|
+
[ ] Forms have clear grouping
|
|
1132
|
+
[ ] Primary actions are accessible
|
|
1133
|
+
[ ] Sheets adapt to content
|
|
1134
|
+
[ ] Keyboard behavior is handled
|
|
1135
|
+
[ ] Orientation changes are supported where required
|
|
1136
|
+
[ ] Responsive behavior uses available space
|
|
1137
|
+
[ ] Breakpoints represent real layout changes
|
|
1138
|
+
[ ] iPad layouts are intentionally adapted
|
|
1139
|
+
[ ] Split views are considered
|
|
1140
|
+
[ ] Sidebar behavior is defined
|
|
1141
|
+
[ ] Navigation adapts appropriately
|
|
1142
|
+
[ ] Touch targets are sufficient
|
|
1143
|
+
[ ] Pointer interaction is considered
|
|
1144
|
+
[ ] Keyboard navigation is considered
|
|
1145
|
+
[ ] Focus order is logical
|
|
1146
|
+
[ ] Dynamic Type does not break layout
|
|
1147
|
+
[ ] Localization does not break layout
|
|
1148
|
+
[ ] RTL is considered
|
|
1149
|
+
[ ] Content priority survives compression
|
|
1150
|
+
[ ] Component min/max widths are defined
|
|
1151
|
+
[ ] Image aspect ratios are intentional
|
|
1152
|
+
[ ] Overflow behavior is deliberate
|
|
1153
|
+
[ ] No critical action is hidden accidentally
|
|
1154
|
+
```
|
|
1155
|
+
|
|
1156
|
+
---
|
|
1157
|
+
|
|
1158
|
+
# 101. AGENT LAYOUT WORKFLOW
|
|
1159
|
+
|
|
1160
|
+
The agent should follow:
|
|
1161
|
+
|
|
1162
|
+
```text id="l53a51"
|
|
1163
|
+
1. Identify content hierarchy
|
|
1164
|
+
↓
|
|
1165
|
+
2. Identify navigation structure
|
|
1166
|
+
↓
|
|
1167
|
+
3. Define screen regions
|
|
1168
|
+
↓
|
|
1169
|
+
4. Define spacing tokens
|
|
1170
|
+
↓
|
|
1171
|
+
5. Define container widths
|
|
1172
|
+
↓
|
|
1173
|
+
6. Define alignment rules
|
|
1174
|
+
↓
|
|
1175
|
+
7. Define safe areas
|
|
1176
|
+
↓
|
|
1177
|
+
8. Define component sizing
|
|
1178
|
+
↓
|
|
1179
|
+
9. Define scrolling regions
|
|
1180
|
+
↓
|
|
1181
|
+
10. Define responsive behavior
|
|
1182
|
+
↓
|
|
1183
|
+
11. Define compact layout
|
|
1184
|
+
↓
|
|
1185
|
+
12. Define expanded layout
|
|
1186
|
+
↓
|
|
1187
|
+
13. Define orientation behavior
|
|
1188
|
+
↓
|
|
1189
|
+
14. Define keyboard behavior
|
|
1190
|
+
↓
|
|
1191
|
+
15. Define accessibility adaptation
|
|
1192
|
+
↓
|
|
1193
|
+
16. Define localization behavior
|
|
1194
|
+
↓
|
|
1195
|
+
17. Test extreme content
|
|
1196
|
+
↓
|
|
1197
|
+
18. Test smallest supported width
|
|
1198
|
+
↓
|
|
1199
|
+
19. Test largest supported width
|
|
1200
|
+
↓
|
|
1201
|
+
20. Test orientation changes
|
|
1202
|
+
↓
|
|
1203
|
+
21. Test accessibility settings
|
|
1204
|
+
↓
|
|
1205
|
+
22. Remove unnecessary complexity
|
|
1206
|
+
```
|
|
1207
|
+
|
|
1208
|
+
---
|
|
1209
|
+
|
|
1210
|
+
# 102. AGENT DECISION RULE
|
|
1211
|
+
|
|
1212
|
+
Before adding a fixed dimension, ask:
|
|
1213
|
+
|
|
1214
|
+
```text id="l53a52"
|
|
1215
|
+
Does this dimension have semantic meaning?
|
|
1216
|
+
|
|
1217
|
+
What happens when text grows?
|
|
1218
|
+
|
|
1219
|
+
What happens on a smaller screen?
|
|
1220
|
+
|
|
1221
|
+
What happens on iPad?
|
|
1222
|
+
|
|
1223
|
+
What happens in landscape?
|
|
1224
|
+
|
|
1225
|
+
What happens with localization?
|
|
1226
|
+
|
|
1227
|
+
What happens with accessibility text scaling?
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
If the answer is:
|
|
1231
|
+
|
|
1232
|
+
> "The layout breaks."
|
|
1233
|
+
|
|
1234
|
+
the dimension should probably be redesigned.
|
|
1235
|
+
|
|
1236
|
+
---
|
|
1237
|
+
|
|
1238
|
+
# 103. SPATIAL SYSTEM PRINCIPLE
|
|
1239
|
+
|
|
1240
|
+
The agent should think in relationships:
|
|
1241
|
+
|
|
1242
|
+
```text
|
|
1243
|
+
Element
|
|
1244
|
+
↓
|
|
1245
|
+
Container
|
|
1246
|
+
↓
|
|
1247
|
+
Section
|
|
1248
|
+
↓
|
|
1249
|
+
Screen
|
|
1250
|
+
↓
|
|
1251
|
+
Navigation context
|
|
1252
|
+
```
|
|
1253
|
+
|
|
1254
|
+
rather than isolated coordinates.
|
|
1255
|
+
|
|
1256
|
+
---
|
|
1257
|
+
|
|
1258
|
+
# 104. ABSOLUTE POSITIONING
|
|
1259
|
+
|
|
1260
|
+
Avoid absolute positioning for primary structural layout unless the element
|
|
1261
|
+
has a legitimate spatial reason.
|
|
1262
|
+
|
|
1263
|
+
Good candidates:
|
|
1264
|
+
|
|
1265
|
+
```text id="l53a53"
|
|
1266
|
+
Floating controls
|
|
1267
|
+
Overlays
|
|
1268
|
+
Badges
|
|
1269
|
+
Decorative elements
|
|
1270
|
+
Canvas interfaces
|
|
1271
|
+
```
|
|
1272
|
+
|
|
1273
|
+
---
|
|
1274
|
+
|
|
1275
|
+
# 105. ABSOLUTE POSITIONING ANTI-PATTERN
|
|
1276
|
+
|
|
1277
|
+
Do not use absolute positioning to compensate for poor layout architecture.
|
|
1278
|
+
|
|
1279
|
+
---
|
|
1280
|
+
|
|
1281
|
+
# 106. LAYOUT STABILITY
|
|
1282
|
+
|
|
1283
|
+
Dynamic content should not cause unnecessary layout jumps.
|
|
1284
|
+
|
|
1285
|
+
Important regions should remain spatially stable where possible.
|
|
1286
|
+
|
|
1287
|
+
---
|
|
1288
|
+
|
|
1289
|
+
# 107. LOADING LAYOUT
|
|
1290
|
+
|
|
1291
|
+
Loading states should reserve appropriate space when the final content size is
|
|
1292
|
+
predictable.
|
|
1293
|
+
|
|
1294
|
+
---
|
|
1295
|
+
|
|
1296
|
+
# 108. SKELETON LAYOUT
|
|
1297
|
+
|
|
1298
|
+
Skeletons should approximately represent the final content structure.
|
|
1299
|
+
|
|
1300
|
+
They should not become elaborate decorative animations.
|
|
1301
|
+
|
|
1302
|
+
---
|
|
1303
|
+
|
|
1304
|
+
# 109. EMPTY LAYOUT
|
|
1305
|
+
|
|
1306
|
+
Empty states should use the same spatial hierarchy as populated states where
|
|
1307
|
+
possible.
|
|
1308
|
+
|
|
1309
|
+
---
|
|
1310
|
+
|
|
1311
|
+
# 110. ERROR LAYOUT
|
|
1312
|
+
|
|
1313
|
+
Errors should appear near the affected content rather than destroying the
|
|
1314
|
+
entire layout unnecessarily.
|
|
1315
|
+
|
|
1316
|
+
---
|
|
1317
|
+
|
|
1318
|
+
# 111. RESPONSIVE QUALITY
|
|
1319
|
+
|
|
1320
|
+
A layout is not responsive merely because it technically fits.
|
|
1321
|
+
|
|
1322
|
+
It is responsive when:
|
|
1323
|
+
|
|
1324
|
+
```text id="l53a54"
|
|
1325
|
+
Hierarchy remains intact
|
|
1326
|
+
Interactions remain accessible
|
|
1327
|
+
Content remains readable
|
|
1328
|
+
Navigation remains understandable
|
|
1329
|
+
Whitespace remains intentional
|
|
1330
|
+
```
|
|
1331
|
+
|
|
1332
|
+
---
|
|
1333
|
+
|
|
1334
|
+
# 112. FINAL PRINCIPLE
|
|
1335
|
+
|
|
1336
|
+
A great layout system should make the interface feel:
|
|
1337
|
+
|
|
1338
|
+
```text id="l53a55"
|
|
1339
|
+
Stable
|
|
1340
|
+
Balanced
|
|
1341
|
+
Predictable
|
|
1342
|
+
Adaptive
|
|
1343
|
+
Readable
|
|
1344
|
+
Reachable
|
|
1345
|
+
```
|
|
1346
|
+
|
|
1347
|
+
The user should never feel that the interface was designed for one screen size
|
|
1348
|
+
and then forced onto another.
|
|
1349
|
+
|
|
1350
|
+
The goal is:
|
|
1351
|
+
|
|
1352
|
+
```text id="l53a56"
|
|
1353
|
+
Same product
|
|
1354
|
+
↓
|
|
1355
|
+
Different available space
|
|
1356
|
+
↓
|
|
1357
|
+
Different spatial composition
|
|
1358
|
+
↓
|
|
1359
|
+
Same underlying hierarchy
|
|
1360
|
+
```
|
|
1361
|
+
|
|
1362
|
+
The interface should therefore **adapt its composition without losing its
|
|
1363
|
+
identity**.
|
|
1364
|
+
|
|
1365
|
+
That is the purpose of the spatial system.
|