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.
Files changed (123) hide show
  1. package/AGENTS.md +47 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +78 -0
  4. package/bin/cli.mjs +375 -0
  5. package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
  6. package/knowledge/android/accessibility.md +333 -0
  7. package/knowledge/android/components-controls.md +270 -0
  8. package/knowledge/android/material-design-3.md +174 -0
  9. package/knowledge/android/navigation-patterns.md +212 -0
  10. package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
  11. package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
  12. package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
  13. package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
  14. package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
  15. package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
  16. package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
  17. package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
  18. package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
  19. package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
  20. package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
  21. package/knowledge/apple/Interaction-behaviour.md +1378 -0
  22. package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
  23. package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
  24. package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
  25. package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
  26. package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
  27. package/knowledge/apple/Patterns-templates-composition.md +647 -0
  28. package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
  29. package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
  30. package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
  31. package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
  32. package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
  33. package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
  34. package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
  35. package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
  36. package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
  37. package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
  38. package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
  39. package/knowledge/apple/accessibility.md +2162 -0
  40. package/knowledge/apple/color.md +1933 -0
  41. package/knowledge/apple/component-architecture.md +2208 -0
  42. package/knowledge/apple/components.md +2172 -0
  43. package/knowledge/apple/design-decision-framework.md +1883 -0
  44. package/knowledge/apple/design-review-engine.md +2108 -0
  45. package/knowledge/apple/design-tokens.md +1943 -0
  46. package/knowledge/apple/designing-for-ios.md +1680 -0
  47. package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
  48. package/knowledge/apple/hig-foundation.md +1806 -0
  49. package/knowledge/apple/iconography.md +1903 -0
  50. package/knowledge/apple/interaction-patterns.md +2513 -0
  51. package/knowledge/apple/interaction.md +2141 -0
  52. package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
  53. package/knowledge/apple/ios-components-and-controls.md +1634 -0
  54. package/knowledge/apple/ios-components-patterns.md +1343 -0
  55. package/knowledge/apple/ios-design-system-architecture.md +1520 -0
  56. package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
  57. package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
  58. package/knowledge/apple/ios-forms-and-input.md +1458 -0
  59. package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
  60. package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
  61. package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
  62. package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
  63. package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
  64. package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
  65. package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
  66. package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
  67. package/knowledge/apple/ios-search-and-discovery.md +1456 -0
  68. package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
  69. package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
  70. package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
  71. package/knowledge/apple/layout.md +2331 -0
  72. package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
  73. package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
  74. package/knowledge/apple/motion-and-animation.md +1698 -0
  75. package/knowledge/apple/motion.md +2087 -0
  76. package/knowledge/apple/navigation.md +2281 -0
  77. package/knowledge/apple/responsive-adaptive.md +2159 -0
  78. package/knowledge/apple/screen-architecture.md +2067 -0
  79. package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
  80. package/knowledge/apple/typography.md +1802 -0
  81. package/knowledge/apple/ui-ux inteligence audit.md +106 -0
  82. package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
  83. package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
  84. package/knowledge/apple/visual-materials.md +2189 -0
  85. package/package.json +53 -0
  86. package/principles/design-principles.md +37 -0
  87. package/principles/platform-principles.md +25 -0
  88. package/principles/ux-principles.md +16 -0
  89. package/references/official-links.md +11 -0
  90. package/skills/accessibility-engineer/SKILL.md +125 -0
  91. package/skills/analytics-engineer/SKILL.md +283 -0
  92. package/skills/animation-engineer/SKILL.md +316 -0
  93. package/skills/component-designer/SKILL.md +75 -0
  94. package/skills/component-library-engineer/SKILL.md +140 -0
  95. package/skills/component-library-ops/SKILL.md +155 -0
  96. package/skills/design-system/SKILL.md +77 -0
  97. package/skills/design-token-engineer/SKILL.md +203 -0
  98. package/skills/design-token-pipeline/SKILL.md +277 -0
  99. package/skills/device-lab-engineer/SKILL.md +387 -0
  100. package/skills/forms-engineer/SKILL.md +79 -0
  101. package/skills/internationalization-engineer/SKILL.md +256 -0
  102. package/skills/motion-designer/SKILL.md +77 -0
  103. package/skills/native-data-fetching/SKILL.md +50 -0
  104. package/skills/navigation-architect/SKILL.md +65 -0
  105. package/skills/performance-engineer/SKILL.md +250 -0
  106. package/skills/platform-specialist/SKILL.md +95 -0
  107. package/skills/pre-release-gate/SKILL.md +75 -0
  108. package/skills/screen-designer/SKILL.md +117 -0
  109. package/skills/security-engineer/SKILL.md +375 -0
  110. package/skills/skills.json +134 -0
  111. package/skills/testing-auditor/SKILL.md +62 -0
  112. package/skills/ui-architect/SKILL.md +86 -0
  113. package/skills/ui-implementer/SKILL.md +188 -0
  114. package/skills/ux-architect/SKILL.md +49 -0
  115. package/skills/ux-auditor/SKILL.md +52 -0
  116. package/skills/visual-auditor/SKILL.md +71 -0
  117. package/templates/audit-report.md +29 -0
  118. package/templates/design-tokens.ts +33 -0
  119. package/templates/screen-spec.md +61 -0
  120. package/workflows/new-screen.md +17 -0
  121. package/workflows/pre-release.md +21 -0
  122. package/workflows/redesign.md +14 -0
  123. package/workflows/ui-audit.md +22 -0
@@ -0,0 +1,2159 @@
1
+
2
+
3
+ ````md
4
+ # Apple Responsive & Adaptive Interface Intelligence
5
+
6
+ > Agent knowledge module for adaptive iOS/iPadOS interfaces, size classes,
7
+ > window resizing, orientation, iPhone/iPad differences, split view,
8
+ > multitasking, compact/regular layouts, dynamic content, and responsive
9
+ > component architecture.
10
+
11
+ Version: 1.0
12
+ Platform: iOS / iPadOS
13
+ Role: Responsive and adaptive layout intelligence
14
+ Parent: knowledge/apple/accessibility.md
15
+ Use with: MobileUI-OS
16
+
17
+
18
+ # 1. PURPOSE
19
+
20
+ A high-quality Apple interface does not simply scale.
21
+
22
+ It adapts.
23
+
24
+ The agent must understand:
25
+
26
+ ```text
27
+ available space
28
+ +
29
+ device context
30
+ +
31
+ orientation
32
+ +
33
+ interaction mode
34
+ +
35
+ content density
36
+ =
37
+ appropriate layout
38
+ ````
39
+
40
+ The same application may need different compositions depending on the
41
+ available window.
42
+
43
+ # 2. CORE PRINCIPLE
44
+
45
+ Never design:
46
+
47
+ ```text
48
+ iPhone layout
49
+ +
50
+ scaled iPhone layout
51
+ =
52
+ iPad
53
+ ```
54
+
55
+ Instead design:
56
+
57
+ ```text
58
+ shared design system
59
+ +
60
+ adaptive composition
61
+ =
62
+ device-appropriate interface
63
+ ```
64
+
65
+ # 3. ADAPTIVE VS RESPONSIVE
66
+
67
+ Responsive design asks:
68
+
69
+ > "How does the layout fit?"
70
+
71
+ Adaptive design asks:
72
+
73
+ > "What is the best interface for this available context?"
74
+
75
+ Both matter.
76
+
77
+ # 4. RESPONSIVE BEHAVIOR
78
+
79
+ Responsive behavior changes dimensions.
80
+
81
+ Examples:
82
+
83
+ ```text
84
+ padding
85
+ spacing
86
+ width
87
+ height
88
+ text wrapping
89
+ grid columns
90
+ ```
91
+
92
+ Adaptive behavior may change composition.
93
+
94
+ Examples:
95
+
96
+ ```text
97
+ bottom navigation
98
+ ↓
99
+ sidebar navigation
100
+ ```
101
+
102
+ or:
103
+
104
+ ```text
105
+ single-column
106
+ ↓
107
+ two-column
108
+ ```
109
+
110
+ .
111
+
112
+ # 5. AVAILABLE SPACE IS THE PRIMARY INPUT
113
+
114
+ The agent should reason from:
115
+
116
+ ```text
117
+ window width
118
+ window height
119
+ safe area
120
+ orientation
121
+ keyboard visibility
122
+ split view
123
+ ```
124
+
125
+ rather than assuming a particular device model.
126
+
127
+ # 6. DO NOT DESIGN AROUND DEVICE NAMES
128
+
129
+ Avoid logic such as:
130
+
131
+ ```text
132
+ if iPhone 16...
133
+ if iPad Pro...
134
+ ```
135
+
136
+ Prefer capability/context-based reasoning.
137
+
138
+ Examples:
139
+
140
+ ```text
141
+ compact width
142
+ regular width
143
+ large available area
144
+ ```
145
+
146
+ The same logic then survives future devices.
147
+
148
+ # 7. SIZE CLASSES
149
+
150
+ Conceptually classify available space as:
151
+
152
+ ```text
153
+ compact
154
+ regular
155
+ ```
156
+
157
+ for width and height.
158
+
159
+ Think:
160
+
161
+ ```text
162
+ width:
163
+ compact → limited horizontal space
164
+ regular → expanded horizontal space
165
+
166
+ height:
167
+ compact → limited vertical space
168
+ regular → expanded vertical space
169
+ ```
170
+
171
+ The exact environment should determine the result.
172
+
173
+ # 8. WIDTH IS OFTEN MORE IMPORTANT THAN DEVICE
174
+
175
+ Many layout decisions are primarily determined by horizontal space.
176
+
177
+ For example:
178
+
179
+ ```text
180
+ compact width
181
+ ```
182
+
183
+ may require:
184
+
185
+ ```text
186
+ single column
187
+ ```
188
+
189
+ while:
190
+
191
+ ```text
192
+ regular width
193
+ ```
194
+
195
+ can support:
196
+
197
+ ```text
198
+ sidebar + content
199
+ ```
200
+
201
+ .
202
+
203
+ # 9. HEIGHT ALSO MATTERS
204
+
205
+ Do not assume width alone determines layout.
206
+
207
+ Short windows may require:
208
+
209
+ ```text
210
+ reduced vertical spacing
211
+ collapsed controls
212
+ scrollable content
213
+ ```
214
+
215
+ while tall windows can support:
216
+
217
+ ```text
218
+ expanded composition
219
+ ```
220
+
221
+ .
222
+
223
+ # 10. SAFE AREAS
224
+
225
+ The interface should respect system-managed areas.
226
+
227
+ Consider:
228
+
229
+ ```text
230
+ status region
231
+ home indicator region
232
+ camera/sensor region
233
+ system bars
234
+ keyboard
235
+ ```
236
+
237
+ Do not place critical controls directly against unsafe edges.
238
+
239
+ # 11. EDGE-TO-EDGE
240
+
241
+ Edge-to-edge design does not mean:
242
+
243
+ ```text
244
+ ignore safe areas
245
+ ```
246
+
247
+ It means:
248
+
249
+ ```text
250
+ background can extend
251
+ content respects safe interaction regions
252
+ ```
253
+
254
+ .
255
+
256
+ # 12. BACKGROUND VS CONTENT
257
+
258
+ Separate:
259
+
260
+ ```text
261
+ background layer
262
+ ```
263
+
264
+ from:
265
+
266
+ ```text
267
+ interactive/content layer
268
+ ```
269
+
270
+ This allows the visual surface to extend while controls remain safely positioned.
271
+
272
+ # 13. ADAPTIVE INSETS
273
+
274
+ Insets may change depending on:
275
+
276
+ ```text
277
+ orientation
278
+ device
279
+ window size
280
+ keyboard
281
+ presentation mode
282
+ ```
283
+
284
+ Never treat them as universally fixed constants.
285
+
286
+ # 14. ORIENTATION
287
+
288
+ Support orientation intentionally.
289
+
290
+ Landscape may provide:
291
+
292
+ ```text
293
+ more horizontal space
294
+ less vertical space
295
+ ```
296
+
297
+ Portrait may provide:
298
+
299
+ ```text
300
+ less horizontal space
301
+ more vertical space
302
+ ```
303
+
304
+ The composition should respond accordingly.
305
+
306
+ # 15. PORTRAIT STRATEGY
307
+
308
+ Typical portrait structure:
309
+
310
+ ```text
311
+ header
312
+ ↓
313
+ primary content
314
+ ↓
315
+ secondary content
316
+ ↓
317
+ actions
318
+ ```
319
+
320
+ Optimize for vertical scrolling and focused interaction.
321
+
322
+ # 16. LANDSCAPE STRATEGY
323
+
324
+ Landscape may benefit from:
325
+
326
+ ```text
327
+ side-by-side content
328
+ persistent controls
329
+ expanded media
330
+ secondary panel
331
+ ```
332
+
333
+ Do not simply stretch portrait components across the screen.
334
+
335
+ # 17. ROTATION SHOULD PRESERVE CONTEXT
336
+
337
+ After orientation changes:
338
+
339
+ ```text
340
+ selected item
341
+ scroll position
342
+ navigation state
343
+ input state
344
+ playback state
345
+ ```
346
+
347
+ should remain coherent where appropriate.
348
+
349
+ # 18. ADAPTIVE NAVIGATION
350
+
351
+ Navigation can change form.
352
+
353
+ Compact:
354
+
355
+ ```text
356
+ screen
357
+ ↓
358
+ bottom navigation
359
+ ```
360
+
361
+ Expanded:
362
+
363
+ ```text
364
+ sidebar
365
+ │
366
+ ├── Home
367
+ ├── Library
368
+ ├── Favorites
369
+ └── Settings
370
+ ```
371
+
372
+ The navigation model remains the same while the presentation changes.
373
+
374
+ # 19. NAVIGATION SHOULD NOT DUPLICATE LOGIC
375
+
376
+ The agent should maintain:
377
+
378
+ ```text
379
+ navigation model
380
+ ```
381
+
382
+ separately from:
383
+
384
+ ```text
385
+ navigation presentation
386
+ ```
387
+
388
+ Example:
389
+
390
+ ```text
391
+ Destination:
392
+ Library
393
+
394
+ Compact presentation:
395
+ tab
396
+
397
+ Expanded presentation:
398
+ sidebar item
399
+ ```
400
+
401
+ .
402
+
403
+ # 20. SINGLE-COLUMN LAYOUT
404
+
405
+ Use when horizontal space is constrained.
406
+
407
+ Typical:
408
+
409
+ ```text
410
+ ┌───────────────┐
411
+ │ Header │
412
+ ├───────────────┤
413
+ │ │
414
+ │ Main Content │
415
+ │ │
416
+ ├───────────────┤
417
+ │ Actions │
418
+ └───────────────┘
419
+ ```
420
+
421
+ # 21. TWO-COLUMN LAYOUT
422
+
423
+ Use when there is enough horizontal space.
424
+
425
+ ```text
426
+ ┌──────────┬───────────────────┐
427
+ │ Sidebar │ Main Content │
428
+ │ │ │
429
+ │ │ │
430
+ └──────────┴───────────────────┘
431
+ ```
432
+
433
+ # 22. THREE-PANE LAYOUT
434
+
435
+ For highly expanded interfaces:
436
+
437
+ ```text
438
+ ┌────────┬────────────┬─────────────┐
439
+ │ Nav │ Collection │ Detail │
440
+ │ │ │ │
441
+ └────────┴────────────┴─────────────┘
442
+ ```
443
+
444
+ Use only when each pane provides meaningful simultaneous context.
445
+
446
+ # 23. DO NOT ADD COLUMNS JUST BECAUSE SPACE EXISTS
447
+
448
+ More columns do not automatically mean better UX.
449
+
450
+ Ask:
451
+
452
+ ```text
453
+ Does simultaneous visibility improve the task?
454
+ ```
455
+
456
+ If no:
457
+
458
+ ```text
459
+ keep the simpler layout
460
+ ```
461
+
462
+ .
463
+
464
+ # 24. CONTENT PRIORITY
465
+
466
+ Every interface should classify content:
467
+
468
+ ```text
469
+ P0 — essential
470
+ P1 — important
471
+ P2 — secondary
472
+ P3 — optional
473
+ ```
474
+
475
+ When space decreases:
476
+
477
+ ```text
478
+ P3 disappears first
479
+ P2 collapses
480
+ P1 compresses
481
+ P0 remains
482
+ ```
483
+
484
+ .
485
+
486
+ # 25. ADAPTIVE COLLAPSE
487
+
488
+ Example:
489
+
490
+ ```text
491
+ Expanded:
492
+
493
+ [Artwork] [Title] [Artist] [Actions] [Metadata]
494
+
495
+
496
+ Compact:
497
+
498
+ [Artwork]
499
+ Title
500
+ Artist
501
+ [Primary Action]
502
+ ```
503
+
504
+ Do not blindly shrink everything.
505
+
506
+ # 26. ADAPTIVE RELOCATION
507
+
508
+ An element can move when space changes.
509
+
510
+ Example:
511
+
512
+ ```text
513
+ Expanded:
514
+
515
+ Sidebar
516
+ ↓
517
+ Filter panel
518
+
519
+
520
+ Compact:
521
+
522
+ Filter
523
+ button
524
+ ↓
525
+ Sheet
526
+ ```
527
+
528
+ The function remains the same.
529
+
530
+ # 27. ADAPTIVE PRIORITIZATION
531
+
532
+ When space is constrained:
533
+
534
+ ```text
535
+ keep:
536
+ primary action
537
+
538
+ collapse:
539
+ secondary action
540
+
541
+ move:
542
+ advanced settings
543
+
544
+ hide:
545
+ decorative information
546
+ ```
547
+
548
+ Never hide a critical function without providing another accessible route.
549
+
550
+ # 28. ACTION HIERARCHY
551
+
552
+ Actions should be classified:
553
+
554
+ ```text
555
+ primary
556
+ secondary
557
+ tertiary
558
+ destructive
559
+ ```
560
+
561
+ The layout should preserve this hierarchy across sizes.
562
+
563
+ # 29. COMPACT ACTIONS
564
+
565
+ Compact interfaces may use:
566
+
567
+ ```text
568
+ icon
569
+ ```
570
+
571
+ where expanded interfaces can use:
572
+
573
+ ```text
574
+ icon + text
575
+ ```
576
+
577
+ But the semantic action remains the same.
578
+
579
+ # 30. TOOLBAR ADAPTATION
580
+
581
+ Expanded:
582
+
583
+ ```text
584
+ [Back] Title [Search] [Filter] [Sort] [More]
585
+ ```
586
+
587
+ Compact:
588
+
589
+ ```text
590
+ [Back] Title [More]
591
+ ```
592
+
593
+ Secondary actions can move into a menu.
594
+
595
+ # 31. MENU COLLAPSING
596
+
597
+ When actions exceed available space:
598
+
599
+ ```text
600
+ visible actions
601
+ +
602
+ More
603
+ ```
604
+
605
+ Do not allow the toolbar to become a compressed wall of icons.
606
+
607
+ # 32. TAB ADAPTATION
608
+
609
+ Tabs may adapt based on available width.
610
+
611
+ Expanded:
612
+
613
+ ```text
614
+ Home | Library | Favorites | Downloads | Settings
615
+ ```
616
+
617
+ Compact:
618
+
619
+ ```text
620
+ Home | Library | Favorites | More
621
+ ```
622
+
623
+ Only use such adaptation when it preserves discoverability.
624
+
625
+ # 33. GRIDS
626
+
627
+ Grid columns should respond to available width.
628
+
629
+ Conceptually:
630
+
631
+ ```text
632
+ small:
633
+ 2 columns
634
+
635
+ medium:
636
+ 3 columns
637
+
638
+ large:
639
+ 4+ columns
640
+ ```
641
+
642
+ But the exact count should be determined by minimum useful item width.
643
+
644
+ # 34. GRID ITEM WIDTH
645
+
646
+ Avoid:
647
+
648
+ ```text
649
+ screen width / arbitrary column count
650
+ ```
651
+
652
+ Instead reason:
653
+
654
+ ```text
655
+ available width
656
+ ÷
657
+ minimum useful item width
658
+ =
659
+ reasonable column count
660
+ ```
661
+
662
+ Then distribute remaining space appropriately.
663
+
664
+ # 35. CARD ADAPTATION
665
+
666
+ A card can change composition.
667
+
668
+ Compact:
669
+
670
+ ```text
671
+ ┌──────────────┐
672
+ │ Image │
673
+ │ Title │
674
+ │ Metadata │
675
+ └──────────────┘
676
+ ```
677
+
678
+ Expanded:
679
+
680
+ ```text
681
+ ┌──────────────────────────────┐
682
+ │ Image │ Title │
683
+ │ │ Metadata │
684
+ │ │ Actions │
685
+ └──────────────────────────────┘
686
+ ```
687
+
688
+ # 36. DO NOT SHRINK CONTENT INDEFINITELY
689
+
690
+ A common responsive mistake:
691
+
692
+ ```text
693
+ screen smaller
694
+ ↓
695
+ everything gets smaller
696
+ ↓
697
+ text becomes tiny
698
+ ↓
699
+ buttons become tiny
700
+ ↓
701
+ UX collapses
702
+ ```
703
+
704
+ Instead:
705
+
706
+ ```text
707
+ screen smaller
708
+ ↓
709
+ recompose layout
710
+ ```
711
+
712
+ # 37. MINIMUM CONTENT WIDTH
713
+
714
+ Important components should have a minimum usable width.
715
+
716
+ If they cannot fit:
717
+
718
+ ```text
719
+ wrap
720
+ stack
721
+ collapse
722
+ scroll
723
+ relocate
724
+ ```
725
+
726
+ rather than becoming unusable.
727
+
728
+ # 38. MAXIMUM CONTENT WIDTH
729
+
730
+ Large screens should not necessarily produce extremely wide content.
731
+
732
+ For text-heavy interfaces:
733
+
734
+ ```text
735
+ screen width
736
+ ↓
737
+ maximum readable content width
738
+ ↓
739
+ center content
740
+ ```
741
+
742
+ This improves readability.
743
+
744
+ # 39. FLUID CONTAINERS
745
+
746
+ Use:
747
+
748
+ ```text
749
+ maxWidth
750
+ +
751
+ horizontal padding
752
+ +
753
+ center alignment
754
+ ```
755
+
756
+ for large content surfaces where appropriate.
757
+
758
+ # 40. FULL-BLEED CONTENT
759
+
760
+ Media and visual content may intentionally use the full width.
761
+
762
+ Examples:
763
+
764
+ ```text
765
+ album artwork
766
+ video
767
+ hero image
768
+ map
769
+ canvas
770
+ ```
771
+
772
+ Do not apply text-content constraints indiscriminately.
773
+
774
+ # 41. ADAPTIVE SPACING
775
+
776
+ Spacing should respond to context.
777
+
778
+ Compact:
779
+
780
+ ```text
781
+ smaller vertical gaps
782
+ ```
783
+
784
+ Expanded:
785
+
786
+ ```text
787
+ more breathing room
788
+ ```
789
+
790
+ But maintain consistent design tokens.
791
+
792
+ # 42. SPACING TOKENS
793
+
794
+ Prefer:
795
+
796
+ ```text
797
+ spacing.xs
798
+ spacing.sm
799
+ spacing.md
800
+ spacing.lg
801
+ spacing.xl
802
+ ```
803
+
804
+ over arbitrary values scattered throughout the application.
805
+
806
+ # 43. SPACING SHOULD NOT SCALE EVERYTHING
807
+
808
+ Do not multiply every spacing value by:
809
+
810
+ ```text
811
+ screenWidth / referenceWidth
812
+ ```
813
+
814
+ This creates unnatural layouts.
815
+
816
+ Use semantic spacing instead.
817
+
818
+ # 44. BREAKPOINTS
819
+
820
+ Breakpoints should represent meaningful layout transitions.
821
+
822
+ Example:
823
+
824
+ ```text
825
+ compact
826
+ ↓
827
+ expanded
828
+ ```
829
+
830
+ rather than dozens of arbitrary device-specific breakpoints.
831
+
832
+ # 45. BREAKPOINT DESIGN
833
+
834
+ A breakpoint should answer:
835
+
836
+ > "What layout change becomes necessary here?"
837
+
838
+ Examples:
839
+
840
+ ```text
841
+ navigation becomes sidebar
842
+ grid gains a column
843
+ actions move into menu
844
+ content becomes two-pane
845
+ ```
846
+
847
+ If there is no composition change, a breakpoint may not be necessary.
848
+
849
+ # 46. AVOID DEVICE-SPECIFIC BREAKPOINTS
850
+
851
+ Bad:
852
+
853
+ ```text
854
+ iPhone 13
855
+ iPhone 14
856
+ iPhone 15
857
+ iPhone 16
858
+ ```
859
+
860
+ Better:
861
+
862
+ ```text
863
+ compact
864
+ medium
865
+ expanded
866
+ ```
867
+
868
+ based on available space.
869
+
870
+ # 47. SPLIT VIEW
871
+
872
+ On iPad, an application may occupy only part of the screen.
873
+
874
+ Therefore:
875
+
876
+ ```text
877
+ iPad ≠ always full-screen
878
+ ```
879
+
880
+ The agent must design for variable window widths.
881
+
882
+ # 48. RESIZABLE WINDOWS
883
+
884
+ A layout should remain usable while its window changes size dynamically.
885
+
886
+ Example:
887
+
888
+ ```text
889
+ wide
890
+ ↓
891
+ medium
892
+ ↓
893
+ narrow
894
+ ↓
895
+ medium
896
+ ↓
897
+ wide
898
+ ```
899
+
900
+ without requiring a restart or navigation reset.
901
+
902
+ # 49. CONTINUOUS ADAPTATION
903
+
904
+ Prefer layouts that transition naturally.
905
+
906
+ Avoid:
907
+
908
+ ```text
909
+ layout A
910
+ ↓
911
+ hard jump
912
+ ↓
913
+ layout B
914
+ ```
915
+
916
+ unless a genuine composition change is required.
917
+
918
+ # 50. WINDOW-BASED THINKING
919
+
920
+ Think:
921
+
922
+ ```text
923
+ available window
924
+ ```
925
+
926
+ rather than:
927
+
928
+ ```text
929
+ device screen
930
+ ```
931
+
932
+ This is critical for iPad multitasking and future Apple form factors.
933
+
934
+ # 51. MULTITASKING
935
+
936
+ Applications should remain useful when sharing the screen.
937
+
938
+ Consider:
939
+
940
+ ```text
941
+ reduced width
942
+ reduced height
943
+ keyboard
944
+ floating windows
945
+ ```
946
+
947
+ where supported.
948
+
949
+ # 52. PRESENTATION ADAPTATION
950
+
951
+ A presentation that works as:
952
+
953
+ ```text
954
+ full-screen
955
+ ```
956
+
957
+ may work better as:
958
+
959
+ ```text
960
+ sheet
961
+ popover
962
+ side panel
963
+ ```
964
+
965
+ depending on available space and context.
966
+
967
+ # 53. SHEETS
968
+
969
+ Compact:
970
+
971
+ ```text
972
+ button
973
+ ↓
974
+ sheet
975
+ ```
976
+
977
+ Expanded:
978
+
979
+ ```text
980
+ button
981
+ ↓
982
+ popover / panel
983
+ ```
984
+
985
+ The content should remain consistent while presentation changes.
986
+
987
+ # 54. POPOVERS
988
+
989
+ Use popovers when the user benefits from retaining context.
990
+
991
+ Example:
992
+
993
+ ```text
994
+ Library
995
+ │
996
+ ├── selected song
997
+ │
998
+ └── filter popover
999
+ ```
1000
+
1001
+ instead of navigating to a completely separate screen unnecessarily.
1002
+
1003
+ # 55. MODAL ADAPTATION
1004
+
1005
+ The same task can have different presentations.
1006
+
1007
+ Compact:
1008
+
1009
+ ```text
1010
+ full-screen sheet
1011
+ ```
1012
+
1013
+ Expanded:
1014
+
1015
+ ```text
1016
+ centered sheet
1017
+ ```
1018
+
1019
+ or:
1020
+
1021
+ ```text
1022
+ popover
1023
+ ```
1024
+
1025
+ depending on context.
1026
+
1027
+ # 56. KEYBOARD ADAPTATION
1028
+
1029
+ When the software keyboard appears:
1030
+
1031
+ ```text
1032
+ available height decreases
1033
+ ```
1034
+
1035
+ The agent should ensure:
1036
+
1037
+ ```text
1038
+ focused field
1039
+ ```
1040
+
1041
+ remains visible.
1042
+
1043
+ Do not simply resize the entire application blindly.
1044
+
1045
+ # 57. KEYBOARD AVOIDANCE
1046
+
1047
+ Important content should move or scroll rather than become hidden behind the
1048
+ keyboard.
1049
+
1050
+ # 58. INPUT CONTEXT
1051
+
1052
+ Different fields may require different keyboard behavior.
1053
+
1054
+ Examples:
1055
+
1056
+ ```text
1057
+ email
1058
+ number
1059
+ URL
1060
+ search
1061
+ multiline text
1062
+ ```
1063
+
1064
+ The input configuration should match the user's task.
1065
+
1066
+ # 59. TEXT ENTRY ADAPTATION
1067
+
1068
+ For long-form editing:
1069
+
1070
+ ```text
1071
+ portrait:
1072
+ focused editor
1073
+
1074
+ landscape:
1075
+ expanded writing surface
1076
+ ```
1077
+
1078
+ where appropriate.
1079
+
1080
+ # 60. ACCESSIBILITY + RESPONSIVENESS
1081
+
1082
+ Responsive design must preserve accessibility.
1083
+
1084
+ When text grows:
1085
+
1086
+ ```text
1087
+ layout adapts
1088
+ ```
1089
+
1090
+ not:
1091
+
1092
+ ```text
1093
+ text clips
1094
+ ```
1095
+
1096
+ .
1097
+
1098
+ # 61. DYNAMIC TYPE + LAYOUT
1099
+
1100
+ Large text may require:
1101
+
1102
+ ```text
1103
+ stacking
1104
+ wrapping
1105
+ scrolling
1106
+ button expansion
1107
+ navigation changes
1108
+ ```
1109
+
1110
+ This is adaptive layout, not simply typography.
1111
+
1112
+ # 62. ACCESSIBILITY SIZE AS A LAYOUT STATE
1113
+
1114
+ Treat very large text as a legitimate layout condition.
1115
+
1116
+ Conceptually:
1117
+
1118
+ ```text
1119
+ default
1120
+ ↓
1121
+ large
1122
+ ↓
1123
+ accessibility
1124
+ ```
1125
+
1126
+ The component may need to change structure.
1127
+
1128
+ # 63. DYNAMIC TYPE FAILURE
1129
+
1130
+ Reject layouts that depend on:
1131
+
1132
+ ```text
1133
+ fixed text height
1134
+ ```
1135
+
1136
+ for important content.
1137
+
1138
+ # 64. CONTENT VARIABILITY
1139
+
1140
+ Responsive layouts must account for:
1141
+
1142
+ ```text
1143
+ short title
1144
+ long title
1145
+ short username
1146
+ long username
1147
+ localized text
1148
+ empty content
1149
+ large numbers
1150
+ ```
1151
+
1152
+ .
1153
+
1154
+ # 65. LOCALIZATION
1155
+
1156
+ Different languages may require significantly different widths.
1157
+
1158
+ Example:
1159
+
1160
+ ```text
1161
+ English:
1162
+ Settings
1163
+
1164
+ German:
1165
+ Einstellungen
1166
+ ```
1167
+
1168
+ Do not assume English string lengths represent all locales.
1169
+
1170
+ # 66. TEXT EXPANSION
1171
+
1172
+ The agent should test:
1173
+
1174
+ ```text
1175
+ 1x
1176
+ 1.5x
1177
+ 2x
1178
+ ```
1179
+
1180
+ conceptually when evaluating layout resilience.
1181
+
1182
+ Exact values depend on the content and accessibility configuration.
1183
+
1184
+ # 67. RIGHT-TO-LEFT
1185
+
1186
+ Layouts should support RTL where the application requires localization.
1187
+
1188
+ Do not hard-code directional assumptions into:
1189
+
1190
+ ```text
1191
+ marginLeft
1192
+ paddingRight
1193
+ arrow direction
1194
+ ```
1195
+
1196
+ when semantic directionality should be used instead.
1197
+
1198
+ # 68. DIRECTIONAL ICONS
1199
+
1200
+ Some icons have directional meaning.
1201
+
1202
+ Examples:
1203
+
1204
+ ```text
1205
+ back
1206
+ forward
1207
+ indent
1208
+ outdent
1209
+ ```
1210
+
1211
+ These may need adaptation for RTL interfaces.
1212
+
1213
+ # 69. ADAPTIVE IMAGERY
1214
+
1215
+ Images should maintain their intended meaning across aspect ratios.
1216
+
1217
+ Possible strategies:
1218
+
1219
+ ```text
1220
+ fit
1221
+ fill
1222
+ crop
1223
+ letterbox
1224
+ alternate composition
1225
+ ```
1226
+
1227
+ Choose based on content importance.
1228
+
1229
+ # 70. IMAGE CROPPING
1230
+
1231
+ Do not crop critical subjects.
1232
+
1233
+ For:
1234
+
1235
+ ```text
1236
+ people
1237
+ products
1238
+ documents
1239
+ text
1240
+ ```
1241
+
1242
+ use an image strategy that preserves important information.
1243
+
1244
+ # 71. VIDEO ADAPTATION
1245
+
1246
+ Video interfaces may change:
1247
+
1248
+ ```text
1249
+ controls
1250
+ aspect ratio
1251
+ layout
1252
+ metadata placement
1253
+ ```
1254
+
1255
+ depending on available space.
1256
+
1257
+ # 72. MEDIA PLAYER
1258
+
1259
+ Compact:
1260
+
1261
+ ```text
1262
+ mini player
1263
+ ```
1264
+
1265
+ Expanded:
1266
+
1267
+ ```text
1268
+ full player
1269
+ ```
1270
+
1271
+ Tablet:
1272
+
1273
+ ```text
1274
+ player + queue
1275
+ ```
1276
+
1277
+ The underlying playback state remains shared.
1278
+
1279
+ # 73. SHARED STATE
1280
+
1281
+ Adaptive layouts should not duplicate business state.
1282
+
1283
+ Example:
1284
+
1285
+ ```text
1286
+ Playback Store
1287
+ ↓
1288
+ ┌──────┼────────┐
1289
+ ↓ ↓ ↓
1290
+ mini full tablet
1291
+ player player player
1292
+ ```
1293
+
1294
+ Each presentation reads the same source of truth.
1295
+
1296
+ # 74. ADAPTIVE COMPONENT ARCHITECTURE
1297
+
1298
+ Separate:
1299
+
1300
+ ```text
1301
+ data
1302
+ behavior
1303
+ semantics
1304
+ presentation
1305
+ ```
1306
+
1307
+ This allows the same feature to have multiple layouts.
1308
+
1309
+ # 75. COMPONENT COMPOSITION
1310
+
1311
+ Prefer:
1312
+
1313
+ ```tsx
1314
+ <Library>
1315
+ <LibraryHeader />
1316
+ <LibraryNavigation />
1317
+ <LibraryContent />
1318
+ </Library>
1319
+ ```
1320
+
1321
+ where each component can adapt.
1322
+
1323
+ Avoid giant components containing every possible device layout.
1324
+
1325
+ # 76. ADAPTIVE VARIANTS
1326
+
1327
+ Components can expose meaningful variants:
1328
+
1329
+ ```text
1330
+ compact
1331
+ standard
1332
+ expanded
1333
+ ```
1334
+
1335
+ Example:
1336
+
1337
+ ```tsx
1338
+ <MediaCard variant="compact" />
1339
+ ```
1340
+
1341
+ But avoid creating dozens of arbitrary variants.
1342
+
1343
+ # 77. VARIANT PRINCIPLE
1344
+
1345
+ A variant should represent a meaningful design state.
1346
+
1347
+ Good:
1348
+
1349
+ ```text
1350
+ compact
1351
+ expanded
1352
+ ```
1353
+
1354
+ Bad:
1355
+
1356
+ ```text
1357
+ iphone13
1358
+ iphone14
1359
+ ipadMini
1360
+ ipadAir
1361
+ ipadPro
1362
+ ```
1363
+
1364
+ .
1365
+
1366
+ # 78. CONTAINER-BASED THINKING
1367
+
1368
+ A component should ideally respond to the space given to it.
1369
+
1370
+ Conceptually:
1371
+
1372
+ ```text
1373
+ parent width
1374
+ ↓
1375
+ component determines composition
1376
+ ```
1377
+
1378
+ rather than:
1379
+
1380
+ ```text
1381
+ device width
1382
+ ↓
1383
+ every child calculates itself independently
1384
+ ```
1385
+
1386
+ # 79. LOCAL ADAPTATION
1387
+
1388
+ A component should adapt based on its own constraints when possible.
1389
+
1390
+ Example:
1391
+
1392
+ ```text
1393
+ Toolbar receives narrow width
1394
+ ↓
1395
+ actions collapse
1396
+ ```
1397
+
1398
+ The toolbar does not need to know:
1399
+
1400
+ ```text
1401
+ "this is an iPhone"
1402
+ ```
1403
+
1404
+ # 80. ADAPTIVE DESIGN SYSTEM
1405
+
1406
+ The design system should define:
1407
+
1408
+ ```text
1409
+ tokens
1410
+ ↓
1411
+ components
1412
+ ↓
1413
+ layouts
1414
+ ↓
1415
+ adaptive compositions
1416
+ ```
1417
+
1418
+ not device-specific screens.
1419
+
1420
+ # 81. DESIGN TOKENS
1421
+
1422
+ Useful token groups:
1423
+
1424
+ ```text
1425
+ spacing
1426
+ radius
1427
+ typography
1428
+ icon size
1429
+ touch target
1430
+ content width
1431
+ elevation
1432
+ animation
1433
+ ```
1434
+
1435
+ .
1436
+
1437
+ # 82. LAYOUT TOKENS
1438
+
1439
+ Consider:
1440
+
1441
+ ```ts
1442
+ layout = {
1443
+ pagePadding,
1444
+ contentMaxWidth,
1445
+ sectionGap,
1446
+ gridGap,
1447
+ sidebarWidth,
1448
+ toolbarHeight,
1449
+ }
1450
+ ```
1451
+
1452
+ Values should be contextual rather than arbitrary.
1453
+
1454
+ # 83. ADAPTIVE GRID ALGORITHM
1455
+
1456
+ Conceptually:
1457
+
1458
+ ```text
1459
+ availableWidth
1460
+ ↓
1461
+ subtract page padding
1462
+ ↓
1463
+ calculate minimum item width
1464
+ ↓
1465
+ calculate column count
1466
+ ↓
1467
+ calculate remaining space
1468
+ ↓
1469
+ distribute columns
1470
+ ```
1471
+
1472
+ Do not force a fixed column count across every screen.
1473
+
1474
+ # 84. ADAPTIVE LIST
1475
+
1476
+ Lists may change:
1477
+
1478
+ ```text
1479
+ compact:
1480
+ thumbnail + title
1481
+
1482
+ expanded:
1483
+ thumbnail + title + metadata + actions
1484
+ ```
1485
+
1486
+ The information hierarchy should remain consistent.
1487
+
1488
+ # 85. ADAPTIVE DETAIL SCREEN
1489
+
1490
+ Compact:
1491
+
1492
+ ```text
1493
+ Image
1494
+ Title
1495
+ Metadata
1496
+ Actions
1497
+ Description
1498
+ ```
1499
+
1500
+ Expanded:
1501
+
1502
+ ```text
1503
+ ┌──────────────┬────────────────────┐
1504
+ │ Image │ Title │
1505
+ │ │ Metadata │
1506
+ │ │ Actions │
1507
+ │ │ Description │
1508
+ └──────────────┴────────────────────┘
1509
+ ```
1510
+
1511
+ Use simultaneous context when it improves the task.
1512
+
1513
+ # 86. MASTER-DETAIL
1514
+
1515
+ Ideal for many tablet experiences:
1516
+
1517
+ ```text
1518
+ Master
1519
+ ↓
1520
+ selected item
1521
+ ↓
1522
+ Detail
1523
+ ```
1524
+
1525
+ Example:
1526
+
1527
+ ```text
1528
+ Library
1529
+ │
1530
+ ├── Albums
1531
+ ├── Artists
1532
+ ├── Playlists
1533
+ │
1534
+ └── Selected content
1535
+ ```
1536
+
1537
+ This can reduce unnecessary navigation.
1538
+
1539
+ # 87. MASTER-DETAIL SELECTION
1540
+
1541
+ When the user selects an item:
1542
+
1543
+ ```text
1544
+ master remains visible
1545
+ detail updates
1546
+ ```
1547
+
1548
+ where the available width makes this useful.
1549
+
1550
+ # 88. COMPACT MASTER-DETAIL
1551
+
1552
+ When space is limited:
1553
+
1554
+ ```text
1555
+ Master
1556
+ ↓
1557
+ Detail
1558
+ ```
1559
+
1560
+ Use navigation rather than forcing two panes into a narrow viewport.
1561
+
1562
+ # 89. PRESERVE SELECTION
1563
+
1564
+ When moving between adaptive layouts, preserve meaningful selection state where
1565
+ possible.
1566
+
1567
+ # 90. RESPONSIVE MODALITY
1568
+
1569
+ An interaction may move between:
1570
+
1571
+ ```text
1572
+ screen
1573
+ sheet
1574
+ popover
1575
+ sidebar
1576
+ inline expansion
1577
+ ```
1578
+
1579
+ depending on available space.
1580
+
1581
+ The task should remain the same.
1582
+
1583
+ # 91. INLINE EXPANSION
1584
+
1585
+ Sometimes the best adaptive solution is not another screen.
1586
+
1587
+ Example:
1588
+
1589
+ ```text
1590
+ Compact:
1591
+ Advanced Filters
1592
+ ↓
1593
+ expanded inline section
1594
+ ```
1595
+
1596
+ This can reduce navigation overhead.
1597
+
1598
+ # 92. CONTENT REORDERING
1599
+
1600
+ Reorder only when it improves comprehension.
1601
+
1602
+ Never randomly change the reading order simply to fill space.
1603
+
1604
+ # 93. SEMANTIC ORDER
1605
+
1606
+ Visual reordering must not break:
1607
+
1608
+ ```text
1609
+ accessibility order
1610
+ keyboard order
1611
+ logical reading order
1612
+ ```
1613
+
1614
+ .
1615
+
1616
+ # 94. ADAPTIVE DENSITY
1617
+
1618
+ Density can vary:
1619
+
1620
+ ```text
1621
+ compact screen
1622
+ → efficient
1623
+
1624
+ expanded screen
1625
+ → breathable
1626
+ ```
1627
+
1628
+ But maintain hierarchy and interaction consistency.
1629
+
1630
+ # 95. LARGE SCREEN EMPTY SPACE
1631
+
1632
+ Do not fill large screens with unnecessary decoration.
1633
+
1634
+ Useful large-screen strategies:
1635
+
1636
+ ```text
1637
+ more context
1638
+ more simultaneous content
1639
+ better grouping
1640
+ larger content surfaces
1641
+ additional metadata
1642
+ ```
1643
+
1644
+ rather than:
1645
+
1646
+ ```text
1647
+ huge margins
1648
+ random cards
1649
+ decorative blocks
1650
+ ```
1651
+
1652
+ .
1653
+
1654
+ # 96. WHITESPACE IS A RESOURCE
1655
+
1656
+ Large screens provide additional spatial budget.
1657
+
1658
+ Spend it on:
1659
+
1660
+ ```text
1661
+ clarity
1662
+ context
1663
+ relationships
1664
+ focus
1665
+ ```
1666
+
1667
+ .
1668
+
1669
+ # 97. SMALL SCREEN IS A RESOURCE CONSTRAINT
1670
+
1671
+ When space is scarce:
1672
+
1673
+ ```text
1674
+ prioritize
1675
+ collapse
1676
+ stack
1677
+ scroll
1678
+ move
1679
+ ```
1680
+
1681
+ rather than:
1682
+
1683
+ ```text
1684
+ shrink everything
1685
+ ```
1686
+
1687
+ # 98. RESPONSIVE ERROR STATES
1688
+
1689
+ Errors must remain visible and actionable at every size.
1690
+
1691
+ Check:
1692
+
1693
+ ```text
1694
+ compact
1695
+ expanded
1696
+ large text
1697
+ keyboard visible
1698
+ ```
1699
+
1700
+ .
1701
+
1702
+ # 99. RESPONSIVE EMPTY STATES
1703
+
1704
+ Empty states should adapt too.
1705
+
1706
+ Compact:
1707
+
1708
+ ```text
1709
+ icon
1710
+ title
1711
+ short explanation
1712
+ button
1713
+ ```
1714
+
1715
+ Expanded:
1716
+
1717
+ ```text
1718
+ illustration
1719
+ title
1720
+ description
1721
+ primary action
1722
+ secondary guidance
1723
+ ```
1724
+
1725
+ Do not force the expanded composition into compact space.
1726
+
1727
+ # 100. RESPONSIVE LOADING
1728
+
1729
+ Loading indicators should not cause layout jumps unnecessarily.
1730
+
1731
+ Reserve appropriate space or use stable loading structures.
1732
+
1733
+ # 101. LAYOUT STABILITY
1734
+
1735
+ Avoid:
1736
+
1737
+ ```text
1738
+ content appears
1739
+ ↓
1740
+ everything moves
1741
+ ↓
1742
+ button moves
1743
+ ↓
1744
+ user taps wrong thing
1745
+ ```
1746
+
1747
+ Prefer stable geometry when practical.
1748
+
1749
+ # 102. SKELETONS
1750
+
1751
+ Skeletons should approximate final content geometry.
1752
+
1753
+ This reduces layout shifts.
1754
+
1755
+ # 103. SAFE ADAPTIVE ANIMATION
1756
+
1757
+ When layout changes:
1758
+
1759
+ ```text
1760
+ compact
1761
+ ↓
1762
+ expanded
1763
+ ```
1764
+
1765
+ transition meaningful changes when appropriate.
1766
+
1767
+ Do not animate every measurement update.
1768
+
1769
+ # 104. ROTATION ANIMATION
1770
+
1771
+ Orientation transitions should preserve:
1772
+
1773
+ ```text
1774
+ context
1775
+ state
1776
+ selection
1777
+ ```
1778
+
1779
+ while allowing layout recomposition.
1780
+
1781
+ # 105. PERFORMANCE
1782
+
1783
+ Adaptive layouts should not create unnecessary expensive recalculations.
1784
+
1785
+ Avoid continuously rebuilding complex trees solely because dimensions change.
1786
+
1787
+ # 106. MEASUREMENTS
1788
+
1789
+ Prefer the framework's layout system and environment/context mechanisms.
1790
+
1791
+ Do not create a giant global screen-width utility and use it everywhere.
1792
+
1793
+ # 107. ANTI-PATTERN: GLOBAL DEVICE CHECKS
1794
+
1795
+ Reject:
1796
+
1797
+ ```ts
1798
+ if (width > 768) ...
1799
+ ```
1800
+
1801
+ spread throughout hundreds of components.
1802
+
1803
+ Centralize adaptive rules or let components respond locally.
1804
+
1805
+ # 108. ANTI-PATTERN: MAGIC BREAKPOINTS
1806
+
1807
+ Reject:
1808
+
1809
+ ```text
1810
+ if width > 743
1811
+ if width > 812
1812
+ if width > 932
1813
+ if width > 1180
1814
+ ```
1815
+
1816
+ unless each threshold represents a documented design transition.
1817
+
1818
+ # 109. ANTI-PATTERN: SCALE EVERYTHING
1819
+
1820
+ Reject:
1821
+
1822
+ ```text
1823
+ scale = screenWidth / 375
1824
+ ```
1825
+
1826
+ applied globally to:
1827
+
1828
+ ```text
1829
+ font
1830
+ padding
1831
+ icon
1832
+ button
1833
+ spacing
1834
+ radius
1835
+ ```
1836
+
1837
+ This produces distorted design systems.
1838
+
1839
+ # 110. ANTI-PATTERN: IPHONE-FIRST IPAD
1840
+
1841
+ Reject:
1842
+
1843
+ ```text
1844
+ iPhone UI
1845
+ ↓
1846
+ stretch
1847
+ ↓
1848
+ iPad
1849
+ ```
1850
+
1851
+ Instead:
1852
+
1853
+ ```text
1854
+ shared system
1855
+ ↓
1856
+ compact composition
1857
+ +
1858
+ expanded composition
1859
+ ```
1860
+
1861
+ # 111. ANTI-PATTERN: DESKTOP COPY
1862
+
1863
+ Do not automatically turn an iPad interface into a desktop web interface.
1864
+
1865
+ iPad remains a touch-first platform with its own interaction patterns.
1866
+
1867
+ # 112. TOUCH + POINTER
1868
+
1869
+ Expanded interfaces may support pointer/keyboard interaction while preserving
1870
+ touch-first affordances.
1871
+
1872
+ # 113. ADAPTIVE HIT AREAS
1873
+
1874
+ Visual density can increase on large screens without shrinking critical touch
1875
+ targets below usable sizes.
1876
+
1877
+ # 114. ADAPTIVE TOOLBARS
1878
+
1879
+ The toolbar should answer:
1880
+
1881
+ ```text
1882
+ What is the primary action?
1883
+ What secondary actions fit?
1884
+ What should move into More?
1885
+ ```
1886
+
1887
+ rather than:
1888
+
1889
+ ```text
1890
+ How many icons can fit?
1891
+ ```
1892
+
1893
+ # 115. ADAPTIVE INFORMATION ARCHITECTURE
1894
+
1895
+ Sometimes the correct response to more space is exposing more information.
1896
+
1897
+ Example:
1898
+
1899
+ ```text
1900
+ Compact:
1901
+ Song title
1902
+ Artist
1903
+
1904
+ Expanded:
1905
+ Song title
1906
+ Artist
1907
+ Album
1908
+ Genre
1909
+ Year
1910
+ Duration
1911
+ Actions
1912
+ ```
1913
+
1914
+ Only reveal additional information when it improves the task.
1915
+
1916
+ # 116. INFORMATION DENSITY
1917
+
1918
+ The agent should balance:
1919
+
1920
+ ```text
1921
+ space
1922
+ +
1923
+ context
1924
+ +
1925
+ cognitive load
1926
+ ```
1927
+
1928
+ More information is not automatically better.
1929
+
1930
+ # 117. ADAPTIVE COGNITIVE LOAD
1931
+
1932
+ When space becomes limited, simplify.
1933
+
1934
+ When space expands, provide additional context only when useful.
1935
+
1936
+ Never equate larger screens with permission to increase complexity endlessly.
1937
+
1938
+ # 118. DESIGN REVIEW QUESTIONS
1939
+
1940
+ For every major screen:
1941
+
1942
+ ```text
1943
+ What happens at compact width?
1944
+ What happens at regular width?
1945
+ What happens in landscape?
1946
+ What happens in split view?
1947
+ What happens with large text?
1948
+ What happens when the keyboard appears?
1949
+ What happens when content becomes long?
1950
+ What happens when content is empty?
1951
+ What happens when actions no longer fit?
1952
+ ```
1953
+
1954
+ If the answer is unknown, the design is incomplete.
1955
+
1956
+ # 119. ADAPTIVE SCREEN CONTRACT
1957
+
1958
+ Every major screen should define:
1959
+
1960
+ ```text
1961
+ compact composition
1962
+ regular composition
1963
+ expanded composition
1964
+ minimum usable width
1965
+ maximum content width
1966
+ navigation behavior
1967
+ action behavior
1968
+ overflow strategy
1969
+ accessibility behavior
1970
+ ```
1971
+
1972
+ .
1973
+
1974
+ # 120. ADAPTIVE COMPONENT CONTRACT
1975
+
1976
+ Every major component should define:
1977
+
1978
+ ```text
1979
+ minimum width
1980
+ preferred width
1981
+ maximum width
1982
+ compact behavior
1983
+ expanded behavior
1984
+ overflow behavior
1985
+ text scaling behavior
1986
+ interaction behavior
1987
+ ```
1988
+
1989
+ .
1990
+
1991
+ # 121. AGENT ADAPTIVE WORKFLOW
1992
+
1993
+ Before implementation:
1994
+
1995
+ ```text
1996
+ 1. Identify available-space states
1997
+ 2. Identify content priorities
1998
+ 3. Identify composition changes
1999
+ 4. Identify navigation changes
2000
+ 5. Identify action overflow
2001
+ 6. Identify grid behavior
2002
+ 7. Identify text expansion
2003
+ 8. Identify keyboard behavior
2004
+ 9. Identify accessibility states
2005
+ 10. Define adaptive rules
2006
+ ```
2007
+
2008
+ Then implement.
2009
+
2010
+ # 122. ADAPTIVE REVIEW WORKFLOW
2011
+
2012
+ After implementation:
2013
+
2014
+ ```text
2015
+ 1. Test narrow portrait
2016
+ 2. Test wide portrait
2017
+ 3. Test landscape
2018
+ 4. Test split-screen width
2019
+ 5. Test large text
2020
+ 6. Test keyboard
2021
+ 7. Test long content
2022
+ 8. Test empty content
2023
+ 9. Test large datasets
2024
+ 10. Test navigation transitions
2025
+ ```
2026
+
2027
+ .
2028
+
2029
+ # 123. AGENT DECISION TREE
2030
+
2031
+ ```text
2032
+ Available space changed
2033
+ ↓
2034
+ Did content still fit?
2035
+ / \
2036
+ YES NO
2037
+ ↓ ↓
2038
+ keep layout Recompose
2039
+ ↓
2040
+ Can elements stack?
2041
+ / \
2042
+ YES NO
2043
+ ↓ ↓
2044
+ stack Can actions
2045
+ collapse?
2046
+ / \
2047
+ YES NO
2048
+ ↓ ↓
2049
+ menu relocate
2050
+ ↓
2051
+ alternate
2052
+ presentation
2053
+ ```
2054
+
2055
+ # 124. ADAPTIVE PRINCIPLE
2056
+
2057
+ The goal is not:
2058
+
2059
+ ```text
2060
+ same pixels everywhere
2061
+ ```
2062
+
2063
+ The goal is:
2064
+
2065
+ ```text
2066
+ same product
2067
+ +
2068
+ same mental model
2069
+ +
2070
+ same hierarchy
2071
+ +
2072
+ appropriate composition
2073
+ ```
2074
+
2075
+ .
2076
+
2077
+ # 125. FINAL RULE
2078
+
2079
+ When the available space changes, the agent should ask:
2080
+
2081
+ > "What should change?"
2082
+
2083
+ not:
2084
+
2085
+ > "How do I shrink this?"
2086
+
2087
+ That distinction separates a truly adaptive interface from a merely responsive
2088
+ one.
2089
+
2090
+ # 126. QUALITY BAR
2091
+
2092
+ A high-quality adaptive interface should feel:
2093
+
2094
+ ```text
2095
+ intentional
2096
+ native
2097
+ stable
2098
+ predictable
2099
+ efficient
2100
+ spacious when possible
2101
+ focused when constrained
2102
+ ```
2103
+
2104
+ It should never feel like:
2105
+
2106
+ ```text
2107
+ desktop squeezed into mobile
2108
+ mobile stretched onto tablet
2109
+ ```
2110
+
2111
+ .
2112
+
2113
+ # 127. MASTER MODEL
2114
+
2115
+ ```text
2116
+ AVAILABLE SPACE
2117
+ │
2118
+ ┌────────────┼────────────┐
2119
+ ↓ ↓ ↓
2120
+ compact regular expanded
2121
+ │ │ │
2122
+ ↓ ↓ ↓
2123
+ simplify balance expose
2124
+ stack compose context
2125
+ collapse adapt expand
2126
+ │ │ │
2127
+ └────────────┼────────────┘
2128
+ ↓
2129
+ SAME PRODUCT MODEL
2130
+ ↓
2131
+ SAME USER GOALS
2132
+ ↓
2133
+ DIFFERENT COMPOSITION
2134
+ ```
2135
+
2136
+ # 128. FINAL AGENT DIRECTIVE
2137
+
2138
+ Never produce a UI that only works at the screenshot dimensions supplied by the
2139
+ developer.
2140
+
2141
+ The agent must infer:
2142
+
2143
+ ```text
2144
+ layout constraints
2145
+ content priorities
2146
+ adaptive states
2147
+ overflow strategy
2148
+ accessibility behavior
2149
+ ```
2150
+
2151
+ and build the interface around those rules.
2152
+
2153
+ A screenshot is a reference.
2154
+
2155
+ The responsive system is the actual design.
2156
+
2157
+ ````
2158
+
2159
+