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,1634 @@
1
+
2
+
3
+ # iOS Components & Controls
4
+
5
+ > Agent intelligence module for selecting, composing, adapting, and designing
6
+ > interface controls and components for premium iOS-style applications.
7
+
8
+ Version: 1.0
9
+ Platform: iOS / iPadOS / React Native / Expo
10
+ Role: Component-selection and interaction intelligence
11
+
12
+ Parent:
13
+
14
+ * design-review-engine.md
15
+ * design-decision-framework.md
16
+ * visual-hierarchy-engine.md
17
+ * accessibility-and-inclusive-design.md
18
+ * ios-navigation-and-information-architecture.md
19
+ * interaction-patterns.md
20
+ * typography.md
21
+ * spacing.md
22
+
23
+ # 1. PURPOSE
24
+
25
+ The agent must understand that components are not decorative objects.
26
+
27
+ A component exists because it solves an interaction problem.
28
+
29
+ Never begin with:
30
+
31
+ ```text
32
+ "What component looks cool?"
33
+ ```
34
+
35
+ Begin with:
36
+
37
+ ```text
38
+ "What interaction does the user need?"
39
+ ```
40
+
41
+ Then select the appropriate component.
42
+
43
+ # 2. COMPONENT HIERARCHY
44
+
45
+ Think in layers:
46
+
47
+ ```text
48
+ Primitive
49
+ ↓
50
+ Control
51
+ ↓
52
+ Component
53
+ ↓
54
+ Pattern
55
+ ↓
56
+ Screen
57
+ ↓
58
+ Flow
59
+ ```
60
+
61
+ Example:
62
+
63
+ ```text
64
+ Icon
65
+ ↓
66
+ Button
67
+ ↓
68
+ Action Button
69
+ ↓
70
+ Toolbar
71
+ ↓
72
+ Detail Screen
73
+ ↓
74
+ Navigation Flow
75
+ ```
76
+
77
+ # 3. NATIVE-FIRST PRINCIPLE
78
+
79
+ When the platform already has a recognizable interaction pattern:
80
+
81
+ ```text
82
+ prefer the established pattern
83
+ ```
84
+
85
+ before inventing a custom alternative.
86
+
87
+ # 4. CUSTOMIZATION RULE
88
+
89
+ Customization should primarily change:
90
+
91
+ ```text
92
+ visual expression
93
+ spacing
94
+ materials
95
+ branding
96
+ content
97
+ ```
98
+
99
+ without destroying:
100
+
101
+ ```text
102
+ interaction expectations
103
+ semantic meaning
104
+ accessibility
105
+ ```
106
+
107
+ .
108
+
109
+ # 5. COMPONENT SELECTION
110
+
111
+ For every component ask:
112
+
113
+ ```text
114
+ What is its purpose?
115
+
116
+ What state can it have?
117
+
118
+ How frequently is it used?
119
+
120
+ Is the action primary or secondary?
121
+
122
+ Is it destructive?
123
+
124
+ Does it require text input?
125
+
126
+ Does it require selection?
127
+
128
+ Does it require navigation?
129
+ ```
130
+
131
+ # 6. BUTTON
132
+
133
+ Use a button when the user triggers an action.
134
+
135
+ Examples:
136
+
137
+ ```text
138
+ Save
139
+ Play
140
+ Create
141
+ Share
142
+ Delete
143
+ ```
144
+
145
+ .
146
+
147
+ # 7. BUTTON ANATOMY
148
+
149
+ A button may contain:
150
+
151
+ ```text
152
+ icon
153
+ label
154
+ loading state
155
+ disabled state
156
+ selected state
157
+ ```
158
+
159
+ depending on purpose.
160
+
161
+ # 8. BUTTON HIERARCHY
162
+
163
+ Establish:
164
+
165
+ ```text
166
+ primary
167
+ secondary
168
+ tertiary
169
+ destructive
170
+ ```
171
+
172
+ rather than making every button equally prominent.
173
+
174
+ # 9. PRIMARY BUTTON
175
+
176
+ Use for the most important action within a context.
177
+
178
+ Avoid multiple competing primary buttons.
179
+
180
+ # 10. SECONDARY BUTTON
181
+
182
+ Use for supporting actions.
183
+
184
+ It should remain visually subordinate to the primary action.
185
+
186
+ # 11. TERTIARY ACTION
187
+
188
+ Useful for low-emphasis actions.
189
+
190
+ Do not reduce the interaction target simply because visual emphasis is low.
191
+
192
+ # 12. DESTRUCTIVE BUTTON
193
+
194
+ Destructive actions should visually communicate consequence.
195
+
196
+ Examples:
197
+
198
+ ```text
199
+ Delete
200
+ Remove permanently
201
+ Reset
202
+ Erase
203
+ ```
204
+
205
+ .
206
+
207
+ # 13. DESTRUCTIVE ACTION PLACEMENT
208
+
209
+ Do not place destructive actions where accidental taps are likely.
210
+
211
+ # 14. BUTTON LABELS
212
+
213
+ Prefer verbs.
214
+
215
+ Good:
216
+
217
+ ```text
218
+ Save
219
+ Create
220
+ Add to Queue
221
+ Rename
222
+ ```
223
+
224
+ Weak:
225
+
226
+ ```text
227
+ Okay
228
+ Yes
229
+ Done
230
+ Continue
231
+ ```
232
+
233
+ when a more specific action can be stated.
234
+
235
+ # 15. ICON BUTTON
236
+
237
+ Use an icon button when:
238
+
239
+ ```text
240
+ action is familiar
241
+ space is limited
242
+ icon meaning is recognizable
243
+ ```
244
+
245
+ Provide an accessible label.
246
+
247
+ # 16. ICON + LABEL
248
+
249
+ Prefer icon + label when the action may be ambiguous.
250
+
251
+ Example:
252
+
253
+ ```text
254
+ [+] Add to playlist
255
+ ```
256
+
257
+ can be clearer than an isolated symbol.
258
+
259
+ # 17. BUTTON STATES
260
+
261
+ Define at minimum:
262
+
263
+ ```text
264
+ default
265
+ pressed
266
+ disabled
267
+ focused
268
+ loading
269
+ ```
270
+
271
+ when applicable.
272
+
273
+ # 18. PRESSED STATE
274
+
275
+ A pressed state provides immediate feedback.
276
+
277
+ It should be subtle enough to feel integrated with the design.
278
+
279
+ # 19. DISABLED STATE
280
+
281
+ Disabled controls should communicate unavailable state without becoming
282
+ illegible.
283
+
284
+ # 20. LOADING BUTTON
285
+
286
+ When an action takes time:
287
+
288
+ ```text
289
+ button
290
+ ↓
291
+ loading
292
+ ↓
293
+ success / failure
294
+ ```
295
+
296
+ Prevent accidental duplicate submissions.
297
+
298
+ # 21. TOGGLE
299
+
300
+ Use a toggle for an immediate binary preference.
301
+
302
+ Examples:
303
+
304
+ ```text
305
+ Dark Mode
306
+ Autoplay
307
+ Notifications
308
+ Offline Mode
309
+ ```
310
+
311
+ .
312
+
313
+ # 22. TOGGLE RULE
314
+
315
+ A toggle should change state immediately when appropriate.
316
+
317
+ Do not use a toggle for an action that requires a separate confirmation step.
318
+
319
+ # 23. TOGGLE VS BUTTON
320
+
321
+ Use:
322
+
323
+ ```text
324
+ Toggle
325
+ → persistent binary state
326
+ ```
327
+
328
+ Use:
329
+
330
+ ```text
331
+ Button
332
+ → performs an action
333
+ ```
334
+
335
+ .
336
+
337
+ # 24. CHECKBOX
338
+
339
+ Checkboxes are useful when users can select multiple independent options,
340
+ especially in dense selection contexts.
341
+
342
+ # 25. RADIO SELECTION
343
+
344
+ Use a single-choice selection mechanism when exactly one option can be active.
345
+
346
+ # 26. SEGMENTED CONTROL
347
+
348
+ Use segmented controls for a small set of mutually exclusive views or modes.
349
+
350
+ Example:
351
+
352
+ ```text
353
+ Day | Week | Month
354
+ ```
355
+
356
+ .
357
+
358
+ # 27. SEGMENTED CONTROL LIMIT
359
+
360
+ Do not overload a segmented control with many options.
361
+
362
+ If options become numerous:
363
+
364
+ ```text
365
+ menu
366
+ picker
367
+ list
368
+ ```
369
+
370
+ may be more appropriate.
371
+
372
+ # 28. PICKER
373
+
374
+ Use a picker when users need to select from a meaningful set of options and the
375
+ choice does not require a full dedicated screen.
376
+
377
+ # 29. LARGE OPTION SET
378
+
379
+ For large datasets:
380
+
381
+ ```text
382
+ search
383
+ list
384
+ filtered picker
385
+ ```
386
+
387
+ may be superior to an enormous selection control.
388
+
389
+ # 30. SLIDER
390
+
391
+ Use sliders for continuous or approximate values.
392
+
393
+ Examples:
394
+
395
+ ```text
396
+ Volume
397
+ Brightness
398
+ Playback position
399
+ Intensity
400
+ ```
401
+
402
+ .
403
+
404
+ # 31. SLIDER + PRECISION
405
+
406
+ If exact numeric input matters, pair the slider with:
407
+
408
+ ```text
409
+ value
410
+ stepper
411
+ numeric input
412
+ ```
413
+
414
+ when appropriate.
415
+
416
+ # 32. STEPPER
417
+
418
+ Use a stepper for incremental numeric changes.
419
+
420
+ Example:
421
+
422
+ ```text
423
+ Quantity
424
+ − 3 +
425
+ ```
426
+
427
+ .
428
+
429
+ # 33. STEPPER LIMITATION
430
+
431
+ Do not use a stepper when users need to jump across a very large range.
432
+
433
+ # 34. TEXT FIELD
434
+
435
+ Use a text field when users need to provide or edit textual information.
436
+
437
+ # 35. TEXT FIELD LABELING
438
+
439
+ The field should clearly communicate:
440
+
441
+ ```text
442
+ what to enter
443
+ ```
444
+
445
+ without requiring users to guess from placeholder text alone.
446
+
447
+ # 36. PLACEHOLDER TEXT
448
+
449
+ Placeholder text is supplementary.
450
+
451
+ Do not use placeholder text as the only label for important fields.
452
+
453
+ # 37. INPUT TYPES
454
+
455
+ Use the most appropriate input configuration for:
456
+
457
+ ```text
458
+ email
459
+ password
460
+ number
461
+ URL
462
+ search
463
+ phone
464
+ multiline text
465
+ ```
466
+
467
+ .
468
+
469
+ # 38. PASSWORD FIELD
470
+
471
+ Provide appropriate visibility controls where useful.
472
+
473
+ Do not unnecessarily hide password requirements.
474
+
475
+ # 39. SEARCH FIELD
476
+
477
+ Search fields should communicate:
478
+
479
+ ```text
480
+ what can be searched
481
+ ```
482
+
483
+ and provide clear interaction states.
484
+
485
+ # 40. SEARCH CLEAR
486
+
487
+ Provide an easy way to clear the query when useful.
488
+
489
+ # 41. FORM DESIGN
490
+
491
+ Forms should minimize unnecessary fields.
492
+
493
+ Prefer:
494
+
495
+ ```text
496
+ progressive disclosure
497
+ sensible defaults
498
+ validation
499
+ ```
500
+
501
+ over giant forms.
502
+
503
+ # 42. FORM GROUPING
504
+
505
+ Group related fields.
506
+
507
+ Example:
508
+
509
+ ```text
510
+ Account
511
+ ├── Name
512
+ ├── Email
513
+
514
+ Preferences
515
+ ├── Theme
516
+ ├── Notifications
517
+ ```
518
+
519
+ .
520
+
521
+ # 43. INLINE VALIDATION
522
+
523
+ Validate at useful moments.
524
+
525
+ Avoid constantly interrupting users while they are typing.
526
+
527
+ # 44. ERROR PLACEMENT
528
+
529
+ Place errors close to the affected field or action.
530
+
531
+ # 45. LISTS
532
+
533
+ Lists are one of the most important mobile information patterns.
534
+
535
+ Use them when users need to:
536
+
537
+ ```text
538
+ scan
539
+ select
540
+ navigate
541
+ manage
542
+ ```
543
+
544
+ collections.
545
+
546
+ # 46. LIST ROW
547
+
548
+ A list row should communicate:
549
+
550
+ ```text
551
+ primary information
552
+ secondary information
553
+ state
554
+ available action
555
+ ```
556
+
557
+ only when necessary.
558
+
559
+ # 47. ROW DENSITY
560
+
561
+ Density should reflect information importance.
562
+
563
+ Do not make every row extremely compact.
564
+
565
+ # 48. LIST HIERARCHY
566
+
567
+ Use:
568
+
569
+ ```text
570
+ section
571
+ header
572
+ row
573
+ supporting information
574
+ ```
575
+
576
+ to establish structure.
577
+
578
+ # 49. LIST ACCESSORY
579
+
580
+ Accessories may indicate:
581
+
582
+ ```text
583
+ navigation
584
+ selection
585
+ status
586
+ action
587
+ ```
588
+
589
+ Do not add accessories purely for decoration.
590
+
591
+ # 50. DISCLOSURE INDICATOR
592
+
593
+ A disclosure indicator communicates:
594
+
595
+ ```text
596
+ "This row opens another destination."
597
+ ```
598
+
599
+ Do not use it on rows that do not navigate.
600
+
601
+ # 51. LIST ACTIONS
602
+
603
+ Actions such as:
604
+
605
+ ```text
606
+ delete
607
+ archive
608
+ favorite
609
+ ```
610
+
611
+ may be contextual rather than permanently visible.
612
+
613
+ # 52. SWIPE ACTIONS
614
+
615
+ Swipe actions are useful for frequent contextual operations.
616
+
617
+ Do not make critical functionality available only through swipe.
618
+
619
+ # 53. LIST SELECTION
620
+
621
+ Selection states should be visually and semantically clear.
622
+
623
+ # 54. MULTI-SELECTION
624
+
625
+ When multiple items can be selected:
626
+
627
+ ```text
628
+ selection mode
629
+ selection count
630
+ available actions
631
+ ```
632
+
633
+ should become clear.
634
+
635
+ # 55. EMPTY LIST
636
+
637
+ An empty list should explain what the user can do next.
638
+
639
+ # 56. COLLECTIONS
640
+
641
+ Use grids when visual recognition is important.
642
+
643
+ Examples:
644
+
645
+ ```text
646
+ albums
647
+ photos
648
+ templates
649
+ themes
650
+ ```
651
+
652
+ .
653
+
654
+ # 57. GRID VS LIST
655
+
656
+ Use:
657
+
658
+ ```text
659
+ Grid
660
+ → visual recognition
661
+
662
+ List
663
+ → textual scanning
664
+ ```
665
+
666
+ .
667
+
668
+ # 58. CARDS
669
+
670
+ Cards are useful for grouping content that has its own conceptual boundary.
671
+
672
+ Do not put every piece of content inside a card.
673
+
674
+ # 59. CARD OVERUSE
675
+
676
+ Excessive cards create:
677
+
678
+ ```text
679
+ visual noise
680
+ fragmentation
681
+ ```
682
+
683
+ and weaken hierarchy.
684
+
685
+ # 60. CARD ACTIONS
686
+
687
+ If a card represents a destination, the interaction should make that clear.
688
+
689
+ If the card contains multiple independent actions, ensure their targets are
690
+ distinct.
691
+
692
+ # 61. GROUPED CONTENT
693
+
694
+ Not every grouping needs a visible container.
695
+
696
+ Hierarchy can be created with:
697
+
698
+ ```text
699
+ spacing
700
+ typography
701
+ alignment
702
+ background
703
+ ```
704
+
705
+ .
706
+
707
+ # 62. SECTION
708
+
709
+ Sections help users understand relationships between content groups.
710
+
711
+ Use meaningful section labels.
712
+
713
+ # 63. TOOLBAR
714
+
715
+ Toolbars provide access to contextual actions associated with the current
716
+ destination.
717
+
718
+ # 64. TOOLBAR PRIORITY
719
+
720
+ Only the most useful actions should be immediately visible.
721
+
722
+ Rare actions can move into a menu.
723
+
724
+ # 65. NAVIGATION BAR
725
+
726
+ Navigation bars communicate:
727
+
728
+ ```text
729
+ current destination
730
+ navigation hierarchy
731
+ primary contextual actions
732
+ ```
733
+
734
+ .
735
+
736
+ # 66. NAVIGATION BAR TITLE
737
+
738
+ Use titles that identify the current context.
739
+
740
+ Avoid unnecessary decorative titles.
741
+
742
+ # 67. LARGE TITLES
743
+
744
+ Large titles can establish strong hierarchy on top-level destinations.
745
+
746
+ They should not be forced onto every screen.
747
+
748
+ # 68. TOOLBAR VS TAB BAR
749
+
750
+ Use:
751
+
752
+ ```text
753
+ Tab bar
754
+ → move between primary destinations
755
+
756
+ Toolbar
757
+ → perform actions within current destination
758
+ ```
759
+
760
+ .
761
+
762
+ # 69. TAB BAR VS NAVIGATION BAR
763
+
764
+ Use:
765
+
766
+ ```text
767
+ Tab bar
768
+ → horizontal product-level navigation
769
+
770
+ Navigation bar
771
+ → current hierarchy and contextual navigation
772
+ ```
773
+
774
+ .
775
+
776
+ # 70. ALERT
777
+
778
+ Alerts should interrupt only when the decision is important enough to justify
779
+ interruption.
780
+
781
+ # 71. ALERT ANTI-PATTERN
782
+
783
+ Do not use alerts for:
784
+
785
+ ```text
786
+ routine success
787
+ minor information
788
+ every validation error
789
+ ```
790
+
791
+ .
792
+
793
+ # 72. CONFIRMATION
794
+
795
+ Ask for confirmation when:
796
+
797
+ ```text
798
+ consequence is significant
799
+ action is difficult to reverse
800
+ user intent is ambiguous
801
+ ```
802
+
803
+ .
804
+
805
+ # 73. SHEET
806
+
807
+ Use a sheet for focused temporary tasks.
808
+
809
+ Examples:
810
+
811
+ ```text
812
+ filters
813
+ sorting
814
+ sharing
815
+ selection
816
+ quick configuration
817
+ ```
818
+
819
+ .
820
+
821
+ # 74. SHEET CONTENT
822
+
823
+ A sheet should have:
824
+
825
+ ```text
826
+ clear purpose
827
+ clear dismissal
828
+ appropriate height
829
+ logical controls
830
+ ```
831
+
832
+ .
833
+
834
+ # 75. SHEET DETENTS
835
+
836
+ Use the smallest practical presentation that comfortably supports the task.
837
+
838
+ Do not make tiny sheets unusable.
839
+
840
+ Do not make trivial tasks full-screen without reason.
841
+
842
+ # 76. MENU
843
+
844
+ Menus are useful for secondary actions.
845
+
846
+ Good examples:
847
+
848
+ ```text
849
+ Sort By
850
+ Share
851
+ Duplicate
852
+ Rename
853
+ Move
854
+ ```
855
+
856
+ .
857
+
858
+ # 77. MENU VS SHEET
859
+
860
+ Use a menu for:
861
+
862
+ ```text
863
+ short action list
864
+ ```
865
+
866
+ Use a sheet when:
867
+
868
+ ```text
869
+ task needs more context
870
+ multiple controls
871
+ longer interaction
872
+ ```
873
+
874
+ .
875
+
876
+ # 78. CONTEXT MENU
877
+
878
+ Context menus are useful for object-specific actions.
879
+
880
+ They should not be the only discovery mechanism for critical operations.
881
+
882
+ # 79. ACTION MENU
883
+
884
+ Group related secondary actions when exposing them individually would create
885
+ visual clutter.
886
+
887
+ # 80. PROGRESS INDICATOR
888
+
889
+ Use progress indicators when the user needs to understand that work is
890
+ continuing.
891
+
892
+ # 81. DETERMINATE PROGRESS
893
+
894
+ Use determinate progress when completion can be estimated.
895
+
896
+ Example:
897
+
898
+ ```text
899
+ Downloading
900
+ 65%
901
+ ```
902
+
903
+ .
904
+
905
+ # 82. INDETERMINATE PROGRESS
906
+
907
+ Use indeterminate progress when duration cannot reasonably be predicted.
908
+
909
+ # 83. LOADING PLACEHOLDERS
910
+
911
+ Skeleton or placeholder states can preserve layout while content loads.
912
+
913
+ Do not animate them excessively.
914
+
915
+ # 84. SUCCESS FEEDBACK
916
+
917
+ Successful actions should provide enough feedback to establish that the action
918
+ worked.
919
+
920
+ # 85. FEEDBACK HIERARCHY
921
+
922
+ Prefer:
923
+
924
+ ```text
925
+ inline feedback
926
+ toast/banner where appropriate
927
+ subtle animation
928
+ haptic
929
+ ```
930
+
931
+ depending on importance.
932
+
933
+ Do not use every feedback mechanism simultaneously.
934
+
935
+ # 86. TOAST / TRANSIENT MESSAGE
936
+
937
+ Transient messages are useful for non-blocking feedback.
938
+
939
+ Important information should not disappear before users can reasonably process
940
+ it.
941
+
942
+ # 87. BADGE
943
+
944
+ Badges communicate compact status or counts.
945
+
946
+ Examples:
947
+
948
+ ```text
949
+ 3
950
+ NEW
951
+ LIVE
952
+ ```
953
+
954
+ .
955
+
956
+ # 88. BADGE OVERUSE
957
+
958
+ Badges should not decorate every element.
959
+
960
+ They should represent meaningful status.
961
+
962
+ # 89. CHIP
963
+
964
+ Chips can represent:
965
+
966
+ ```text
967
+ filter
968
+ category
969
+ selection
970
+ metadata
971
+ ```
972
+
973
+ depending on context.
974
+
975
+ # 90. CHIP VS BUTTON
976
+
977
+ A chip can represent a state or compact option.
978
+
979
+ A button represents an action.
980
+
981
+ Do not confuse the two.
982
+
983
+ # 91. PROGRESSIVE DISCLOSURE
984
+
985
+ If a component has many controls:
986
+
987
+ ```text
988
+ show the primary controls
989
+ hide secondary controls
990
+ ```
991
+
992
+ until needed.
993
+
994
+ # 92. DISCLOSURE CONTROL
995
+
996
+ Expandable controls should communicate:
997
+
998
+ ```text
999
+ collapsed
1000
+ expanded
1001
+ ```
1002
+
1003
+ clearly.
1004
+
1005
+ # 93. ACCORDION
1006
+
1007
+ Use expandable sections when content is secondary and users may not need to see
1008
+ everything simultaneously.
1009
+
1010
+ # 94. ACCORDION LIMITATION
1011
+
1012
+ Do not hide essential information behind many nested expandable sections.
1013
+
1014
+ # 95. TOOLTIP / HINT
1015
+
1016
+ Hints should explain unfamiliar controls.
1017
+
1018
+ Do not use hints to compensate for poor labeling.
1019
+
1020
+ # 96. IMAGE COMPONENT
1021
+
1022
+ Images should communicate purpose.
1023
+
1024
+ Consider:
1025
+
1026
+ ```text
1027
+ aspect ratio
1028
+ cropping
1029
+ loading
1030
+ placeholder
1031
+ failure
1032
+ accessibility
1033
+ ```
1034
+
1035
+ .
1036
+
1037
+ # 97. AVATAR
1038
+
1039
+ Avatars identify entities.
1040
+
1041
+ They should not become decorative circles with no semantic value.
1042
+
1043
+ # 98. MEDIA THUMBNAIL
1044
+
1045
+ Media thumbnails should communicate:
1046
+
1047
+ ```text
1048
+ what content is represented
1049
+ ```
1050
+
1051
+ and where applicable:
1052
+
1053
+ ```text
1054
+ duration
1055
+ state
1056
+ playability
1057
+ ```
1058
+
1059
+ .
1060
+
1061
+ # 99. PLAYBACK CONTROL
1062
+
1063
+ For media applications, controls should distinguish:
1064
+
1065
+ ```text
1066
+ play
1067
+ pause
1068
+ stop
1069
+ previous
1070
+ next
1071
+ seek
1072
+ volume
1073
+ queue
1074
+ ```
1075
+
1076
+ where the product requires them.
1077
+
1078
+ # 100. PRIMARY MEDIA ACTION
1079
+
1080
+ The primary media action should be visually dominant.
1081
+
1082
+ Example:
1083
+
1084
+ ```text
1085
+ Play
1086
+ ```
1087
+
1088
+ should generally have greater emphasis than:
1089
+
1090
+ ```text
1091
+ Share
1092
+ Download
1093
+ Report
1094
+ ```
1095
+
1096
+ .
1097
+
1098
+ # 101. SLIDER + MEDIA
1099
+
1100
+ Playback sliders should communicate:
1101
+
1102
+ ```text
1103
+ current position
1104
+ duration
1105
+ ```
1106
+
1107
+ when relevant.
1108
+
1109
+ # 102. NOW PLAYING
1110
+
1111
+ A media-focused surface may contain:
1112
+
1113
+ ```text
1114
+ artwork
1115
+ title
1116
+ artist
1117
+ progress
1118
+ primary controls
1119
+ secondary controls
1120
+ queue
1121
+ ```
1122
+
1123
+ but hierarchy must remain clear.
1124
+
1125
+ # 103. CUSTOM CONTROLS
1126
+
1127
+ Custom controls are justified when:
1128
+
1129
+ ```text
1130
+ platform control cannot express the interaction
1131
+ brand experience is core
1132
+ specialized interaction is required
1133
+ ```
1134
+
1135
+ .
1136
+
1137
+ # 104. CUSTOM CONTROL RULE
1138
+
1139
+ Custom does not mean unfamiliar.
1140
+
1141
+ A custom control should preserve recognizable:
1142
+
1143
+ ```text
1144
+ purpose
1145
+ state
1146
+ feedback
1147
+ interaction
1148
+ ```
1149
+
1150
+ .
1151
+
1152
+ # 105. REINVENTION TEST
1153
+
1154
+ Before creating a custom control ask:
1155
+
1156
+ ```text
1157
+ Does an established control already solve this?
1158
+
1159
+ Would users recognize it?
1160
+
1161
+ Does customization improve the task?
1162
+
1163
+ Does it preserve accessibility?
1164
+
1165
+ Does it add complexity?
1166
+ ```
1167
+
1168
+ If the existing control wins:
1169
+
1170
+ ```text
1171
+ use the existing pattern.
1172
+ ```
1173
+
1174
+ # 106. COMPONENT COMPOSITION
1175
+
1176
+ Complex components should be composed from simple primitives.
1177
+
1178
+ Example:
1179
+
1180
+ ```text
1181
+ ListItem
1182
+ ├── Thumbnail
1183
+ ├── Text
1184
+ ├── Metadata
1185
+ └── Action
1186
+ ```
1187
+
1188
+ rather than one enormous monolithic component.
1189
+
1190
+ # 107. COMPONENT RESPONSIBILITY
1191
+
1192
+ Each component should have a clear responsibility.
1193
+
1194
+ Avoid components that simultaneously control:
1195
+
1196
+ ```text
1197
+ navigation
1198
+ database
1199
+ networking
1200
+ visual state
1201
+ business logic
1202
+ ```
1203
+
1204
+ unless architecture specifically requires it.
1205
+
1206
+ # 108. COMPONENT STATES
1207
+
1208
+ Every reusable component should define relevant states.
1209
+
1210
+ Example:
1211
+
1212
+ ```text
1213
+ Button
1214
+ ├── default
1215
+ ├── pressed
1216
+ ├── disabled
1217
+ ├── loading
1218
+ └── focused
1219
+ ```
1220
+
1221
+ # 109. STATE COMPLETENESS
1222
+
1223
+ If a component can fail, load, select, disable, or expand:
1224
+
1225
+ ```text
1226
+ design those states
1227
+ ```
1228
+
1229
+ before implementation.
1230
+
1231
+ # 110. COMPONENT CONSISTENCY
1232
+
1233
+ Same component:
1234
+
1235
+ ```text
1236
+ same semantics
1237
+ same interaction
1238
+ same state behavior
1239
+ ```
1240
+
1241
+ across the application.
1242
+
1243
+ # 111. VARIANTS
1244
+
1245
+ Use variants when the underlying interaction is the same.
1246
+
1247
+ Example:
1248
+
1249
+ ```text
1250
+ Button
1251
+ ├── primary
1252
+ ├── secondary
1253
+ ├── destructive
1254
+ └── subtle
1255
+ ```
1256
+
1257
+ Avoid creating unrelated components for every visual variation.
1258
+
1259
+ # 112. COMPONENT API
1260
+
1261
+ For implementation, component APIs should expose semantic intent.
1262
+
1263
+ Prefer conceptual:
1264
+
1265
+ ```text
1266
+ <Button variant="primary">
1267
+ ```
1268
+
1269
+ over:
1270
+
1271
+ ```text
1272
+ <Button blue rounded large special>
1273
+ ```
1274
+
1275
+ .
1276
+
1277
+ # 113. DESIGN TOKENS
1278
+
1279
+ Components should consume design tokens rather than hard-coded values.
1280
+
1281
+ Examples:
1282
+
1283
+ ```text
1284
+ spacing
1285
+ radius
1286
+ typography
1287
+ color
1288
+ motion
1289
+ elevation
1290
+ ```
1291
+
1292
+ .
1293
+
1294
+ # 114. COMPONENT ACCESSIBILITY
1295
+
1296
+ Every interactive component must define:
1297
+
1298
+ ```text
1299
+ accessible name
1300
+ role
1301
+ state
1302
+ value
1303
+ interaction
1304
+ focus
1305
+ ```
1306
+
1307
+ where applicable.
1308
+
1309
+ # 115. TOUCH TARGETS
1310
+
1311
+ Visual size and interaction size can differ.
1312
+
1313
+ Example:
1314
+
1315
+ ```text
1316
+ 24px icon
1317
+ +
1318
+ 44px+ interaction region
1319
+ ```
1320
+
1321
+ when appropriate for the platform and context.
1322
+
1323
+ # 116. COMPONENT MOTION
1324
+
1325
+ Components may animate state changes.
1326
+
1327
+ Animation should:
1328
+
1329
+ ```text
1330
+ reinforce state
1331
+ preserve context
1332
+ remain brief
1333
+ respect reduced motion
1334
+ ```
1335
+
1336
+ .
1337
+
1338
+ # 117. COMPONENT FEEDBACK
1339
+
1340
+ Every meaningful interaction should produce an understandable result.
1341
+
1342
+ The result may be:
1343
+
1344
+ ```text
1345
+ visual
1346
+ semantic
1347
+ haptic
1348
+ navigation
1349
+ state change
1350
+ ```
1351
+
1352
+ depending on context.
1353
+
1354
+ # 118. COMPONENT ERROR STATES
1355
+
1356
+ Inputs, network-backed components, and asynchronous controls should define
1357
+ failure states.
1358
+
1359
+ # 119. COMPONENT EMPTY STATES
1360
+
1361
+ Collection components should define:
1362
+
1363
+ ```text
1364
+ loading
1365
+ empty
1366
+ content
1367
+ error
1368
+ ```
1369
+
1370
+ when applicable.
1371
+
1372
+ # 120. COMPONENT SKELETON
1373
+
1374
+ Skeleton states should preserve approximate layout so content replacement does
1375
+ not create unnecessary visual movement.
1376
+
1377
+ # 121. COMPONENT PERFORMANCE
1378
+
1379
+ Avoid components that create unnecessary:
1380
+
1381
+ ```text
1382
+ re-renders
1383
+ layout calculations
1384
+ animations
1385
+ image decoding
1386
+ ```
1387
+
1388
+ especially in long lists.
1389
+
1390
+ # 122. LIST PERFORMANCE
1391
+
1392
+ Large collections should use appropriate virtualization and efficient rendering
1393
+ strategies.
1394
+
1395
+ Do not design a visually beautiful list that becomes unusable with thousands
1396
+ of items.
1397
+
1398
+ # 123. COMPONENT REUSE
1399
+
1400
+ Reuse components when:
1401
+
1402
+ ```text
1403
+ interaction
1404
+ semantics
1405
+ behavior
1406
+ ```
1407
+
1408
+ are genuinely shared.
1409
+
1410
+ Do not force visually unrelated experiences into one generic component.
1411
+
1412
+ # 124. PREMATURE ABSTRACTION
1413
+
1414
+ Do not build a massive design-system component abstraction before patterns have
1415
+ stabilized.
1416
+
1417
+ # 125. COMPONENT EVOLUTION
1418
+
1419
+ Preferred sequence:
1420
+
1421
+ ```text
1422
+ prototype
1423
+ ↓
1424
+ identify repetition
1425
+ ↓
1426
+ standardize
1427
+ ↓
1428
+ extract component
1429
+ ↓
1430
+ define variants
1431
+ ↓
1432
+ document
1433
+ ```
1434
+
1435
+ .
1436
+
1437
+ # 126. COMPONENT DECISION MATRIX
1438
+
1439
+ ```text
1440
+ Need
1441
+ │
1442
+ ├── Trigger action → Button
1443
+ ├── Binary preference → Toggle
1444
+ ├── Single choice → Radio / Picker / Segmented control
1445
+ ├── Multiple choice → Checkbox / Multi-select
1446
+ ├── Continuous value → Slider
1447
+ ├── Incremental number → Stepper
1448
+ ├── Text → Text Field
1449
+ ├── Large collection → List / Grid
1450
+ ├── Temporary task → Sheet / Modal
1451
+ ├── Secondary actions → Menu
1452
+ ├── Navigation → Navigation component
1453
+ ├── Persistent destinations → Tab navigation
1454
+ └── Contextual object actions → Context menu / contextual actions
1455
+ ```
1456
+
1457
+ # 127. COMPONENT SELECTION ALGORITHM
1458
+
1459
+ ```text
1460
+ INPUT
1461
+ ↓
1462
+ Identify user intent
1463
+ ↓
1464
+ Action / selection / input / navigation?
1465
+ ↓
1466
+ Determine frequency
1467
+ ↓
1468
+ Determine importance
1469
+ ↓
1470
+ Determine persistence
1471
+ ↓
1472
+ Determine complexity
1473
+ ↓
1474
+ Select established interaction
1475
+ ↓
1476
+ Check accessibility
1477
+ ↓
1478
+ Check discoverability
1479
+ ↓
1480
+ Check state requirements
1481
+ ↓
1482
+ Customize visually
1483
+ ↓
1484
+ Test
1485
+ ↓
1486
+ IMPLEMENT
1487
+ ```
1488
+
1489
+ # 128. COMPONENT ANTI-PATTERNS
1490
+
1491
+ Avoid:
1492
+
1493
+ ```text
1494
+ giant buttons everywhere
1495
+ cards inside cards inside cards
1496
+ icon-only ambiguous controls
1497
+ custom toggles with unfamiliar behavior
1498
+ fake text fields
1499
+ fake navigation bars
1500
+ fake tab bars
1501
+ tiny touch targets
1502
+ decorative badges
1503
+ excessive pills
1504
+ excessive gradients
1505
+ excessive shadows
1506
+ ```
1507
+
1508
+ .
1509
+
1510
+ # 129. COMPONENT BEAUTY RULE
1511
+
1512
+ A component should feel beautiful because:
1513
+
1514
+ ```text
1515
+ hierarchy
1516
+ spacing
1517
+ proportion
1518
+ material
1519
+ typography
1520
+ motion
1521
+ ```
1522
+
1523
+ are good.
1524
+
1525
+ Not because it contains visual effects everywhere.
1526
+
1527
+ # 130. COMPONENT CONSISTENCY RULE
1528
+
1529
+ If two controls perform the same conceptual action:
1530
+
1531
+ ```text
1532
+ their interaction should feel related.
1533
+ ```
1534
+
1535
+ If two controls look identical:
1536
+
1537
+ ```text
1538
+ their behavior should not unexpectedly differ.
1539
+ ```
1540
+
1541
+ # 131. COMPONENT SIMPLICITY
1542
+
1543
+ Prefer the simplest component capable of completing the task.
1544
+
1545
+ Complexity must earn its place.
1546
+
1547
+ # 132. COMPONENT REVIEW
1548
+
1549
+ For each component evaluate:
1550
+
1551
+ ```text
1552
+ Purpose
1553
+ Hierarchy
1554
+ Discoverability
1555
+ State
1556
+ Accessibility
1557
+ Touch target
1558
+ Feedback
1559
+ Motion
1560
+ Consistency
1561
+ Performance
1562
+ ```
1563
+
1564
+ .
1565
+
1566
+ # 133. COMPONENT REVIEW OUTPUT
1567
+
1568
+ ```text
1569
+ COMPONENT REVIEW
1570
+ ────────────────────────
1571
+
1572
+ Component:
1573
+ ...
1574
+
1575
+ Purpose:
1576
+ ...
1577
+
1578
+ Recommended pattern:
1579
+ ...
1580
+
1581
+ Primary action:
1582
+ ...
1583
+
1584
+ States:
1585
+ ...
1586
+
1587
+ Accessibility:
1588
+ ...
1589
+
1590
+ Interaction:
1591
+ ...
1592
+
1593
+ Variants:
1594
+ ...
1595
+
1596
+ Potential problems:
1597
+ ...
1598
+
1599
+ Recommendation:
1600
+ ...
1601
+ ```
1602
+
1603
+ # 134. FINAL PRINCIPLE
1604
+
1605
+ Do not design controls independently from the tasks they perform.
1606
+
1607
+ The correct component is the one that makes the intended action:
1608
+
1609
+ ```text
1610
+ obvious
1611
+ reachable
1612
+ understandable
1613
+ predictable
1614
+ recoverable
1615
+ ```
1616
+
1617
+ .
1618
+
1619
+ # 135. FINAL AGENT DIRECTIVE
1620
+
1621
+ Before inventing a component:
1622
+
1623
+ ```text
1624
+ 1. Identify the interaction.
1625
+ 2. Search existing platform patterns.
1626
+ 3. Select the simplest appropriate control.
1627
+ 4. Define its states.
1628
+ 5. Define its accessibility.
1629
+ 6. Define its feedback.
1630
+ 7. Customize its visual expression.
1631
+ 8. Test it in context.
1632
+ ```
1633
+
1634
+ The agent should **extend the platform language before replacing it**.