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,1520 @@
1
+
2
+
3
+ # iOS Design System Architecture
4
+
5
+ > Agent intelligence module for constructing coherent, scalable, adaptive,
6
+ > and maintainable design systems for premium iOS-style applications.
7
+
8
+ Version: 1.0
9
+ Platform: iOS / iPadOS / React Native / Expo
10
+ Role: Design-system architecture 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
+ * ios-components-and-controls.md
20
+ * typography.md
21
+ * spacing.md
22
+ * color.md
23
+ * motion-and-animation.md
24
+ * ios-materials-and-surfaces.md
25
+
26
+ # 1. PURPOSE
27
+
28
+ A design system is not a collection of colors and components.
29
+
30
+ It is a system of relationships.
31
+
32
+ ```text
33
+ Principles
34
+ ↓
35
+ Foundations
36
+ ↓
37
+ Tokens
38
+ ↓
39
+ Primitives
40
+ ↓
41
+ Components
42
+ ↓
43
+ Patterns
44
+ ↓
45
+ Screens
46
+ ↓
47
+ Flows
48
+ ↓
49
+ Product
50
+ ```
51
+
52
+ The agent must preserve consistency across every layer.
53
+
54
+ # 2. CORE PRINCIPLE
55
+
56
+ The design system should make the correct design decision:
57
+
58
+ ```text
59
+ easy to make
60
+ easy to reuse
61
+ easy to understand
62
+ hard to misuse
63
+ ```
64
+
65
+ .
66
+
67
+ # 3. DESIGN SYSTEM LAYERS
68
+
69
+ Use seven primary layers:
70
+
71
+ ```text
72
+ 1. Principles
73
+ 2. Foundations
74
+ 3. Tokens
75
+ 4. Primitives
76
+ 5. Components
77
+ 6. Patterns
78
+ 7. Templates
79
+ ```
80
+
81
+ .
82
+
83
+ # 4. PRINCIPLES
84
+
85
+ Principles define the design philosophy.
86
+
87
+ Examples:
88
+
89
+ ```text
90
+ clarity
91
+ hierarchy
92
+ consistency
93
+ accessibility
94
+ restraint
95
+ feedback
96
+ platform familiarity
97
+ ```
98
+
99
+ Principles should guide decisions when explicit rules do not exist.
100
+
101
+ # 5. FOUNDATIONS
102
+
103
+ Foundations define the raw visual language:
104
+
105
+ ```text
106
+ typography
107
+ color
108
+ spacing
109
+ shape
110
+ iconography
111
+ materials
112
+ motion
113
+ layout
114
+ ```
115
+
116
+ .
117
+
118
+ # 6. TOKENS
119
+
120
+ Tokens convert foundations into reusable values.
121
+
122
+ Examples:
123
+
124
+ ```text
125
+ color.text.primary
126
+ color.background.primary
127
+ spacing.md
128
+ radius.lg
129
+ type.title.large
130
+ motion.standard
131
+ ```
132
+
133
+ .
134
+
135
+ # 7. SEMANTIC TOKENS
136
+
137
+ Prefer semantic tokens over raw values.
138
+
139
+ Weak:
140
+
141
+ ```text
142
+ #FFFFFF
143
+ ```
144
+
145
+ Better:
146
+
147
+ ```text
148
+ color.background.primary
149
+ ```
150
+
151
+ The semantic token communicates intent.
152
+
153
+ # 8. TOKEN ABSTRACTION
154
+
155
+ Do not create tokens for every imaginable value.
156
+
157
+ A token should exist because:
158
+
159
+ ```text
160
+ the value is reused
161
+ or
162
+ the value represents meaningful design intent
163
+ ```
164
+
165
+ .
166
+
167
+ # 9. TOKEN HIERARCHY
168
+
169
+ A useful structure:
170
+
171
+ ```text
172
+ Global
173
+ ↓
174
+ Semantic
175
+ ↓
176
+ Component
177
+ ```
178
+
179
+ Example:
180
+
181
+ ```text
182
+ gray.100
183
+ ↓
184
+ background.secondary
185
+ ↓
186
+ card.background
187
+ ```
188
+
189
+ # 10. GLOBAL TOKENS
190
+
191
+ Global tokens represent primitive values.
192
+
193
+ Examples:
194
+
195
+ ```text
196
+ font families
197
+ base colors
198
+ spacing scale
199
+ radius scale
200
+ motion durations
201
+ ```
202
+
203
+ .
204
+
205
+ # 11. SEMANTIC TOKENS
206
+
207
+ Semantic tokens represent usage.
208
+
209
+ Examples:
210
+
211
+ ```text
212
+ text.primary
213
+ text.secondary
214
+ background.primary
215
+ background.secondary
216
+ border.subtle
217
+ accent.primary
218
+ ```
219
+
220
+ .
221
+
222
+ # 12. COMPONENT TOKENS
223
+
224
+ Component tokens represent component-specific decisions.
225
+
226
+ Example:
227
+
228
+ ```text
229
+ button.primary.background
230
+ button.primary.foreground
231
+ button.primary.radius
232
+ ```
233
+
234
+ Use sparingly.
235
+
236
+ # 13. TOKEN INHERITANCE
237
+
238
+ Components should inherit from semantic foundations wherever practical.
239
+
240
+ Avoid creating isolated values unnecessarily.
241
+
242
+ # 14. DESIGN SYSTEM SOURCE OF TRUTH
243
+
244
+ Every important design decision should have one authoritative definition.
245
+
246
+ Avoid:
247
+
248
+ ```text
249
+ Button radius = 12
250
+ somewhere else
251
+ Button radius = 14
252
+ ```
253
+
254
+ without a deliberate variant.
255
+
256
+ # 15. SINGLE SOURCE OF TRUTH
257
+
258
+ When a value changes:
259
+
260
+ ```text
261
+ design token
262
+ ↓
263
+ component
264
+ ↓
265
+ screen
266
+ ```
267
+
268
+ should update consistently.
269
+
270
+ # 16. COMPONENT HIERARCHY
271
+
272
+ Use:
273
+
274
+ ```text
275
+ Primitive
276
+ ↓
277
+ Base component
278
+ ↓
279
+ Variant
280
+ ↓
281
+ Composite component
282
+ ↓
283
+ Pattern
284
+ ```
285
+
286
+ Example:
287
+
288
+ ```text
289
+ Text
290
+ ↓
291
+ Button
292
+ ↓
293
+ PrimaryButton
294
+ ↓
295
+ ActionBar
296
+ ```
297
+
298
+ .
299
+
300
+ # 17. PRIMITIVES
301
+
302
+ Primitives are the smallest reusable visual/interaction units.
303
+
304
+ Examples:
305
+
306
+ ```text
307
+ Text
308
+ Icon
309
+ Spacer
310
+ Divider
311
+ Surface
312
+ Stack
313
+ Row
314
+ ```
315
+
316
+ .
317
+
318
+ # 18. PRIMITIVE RULE
319
+
320
+ Primitives should remain simple.
321
+
322
+ Do not turn primitives into giant business-logic containers.
323
+
324
+ # 19. COMPONENTS
325
+
326
+ Components solve specific interaction or presentation problems.
327
+
328
+ Examples:
329
+
330
+ ```text
331
+ Button
332
+ TextField
333
+ Switch
334
+ Slider
335
+ ListItem
336
+ Card
337
+ Sheet
338
+ ```
339
+
340
+ .
341
+
342
+ # 20. COMPOSITE COMPONENTS
343
+
344
+ Composite components combine primitives and components.
345
+
346
+ Example:
347
+
348
+ ```text
349
+ MediaRow
350
+ ├── Artwork
351
+ ├── Text
352
+ ├── Metadata
353
+ ├── FavoriteButton
354
+ └── Disclosure
355
+ ```
356
+
357
+ .
358
+
359
+ # 21. PATTERNS
360
+
361
+ Patterns solve recurring UX problems.
362
+
363
+ Examples:
364
+
365
+ ```text
366
+ Search + filter
367
+ Empty state
368
+ Creation flow
369
+ Media player
370
+ Settings section
371
+ Selection mode
372
+ ```
373
+
374
+ .
375
+
376
+ # 22. TEMPLATES
377
+
378
+ Templates define reusable screen structures.
379
+
380
+ Examples:
381
+
382
+ ```text
383
+ ListScreen
384
+ DetailScreen
385
+ SettingsScreen
386
+ SearchScreen
387
+ EditorScreen
388
+ DashboardScreen
389
+ ```
390
+
391
+ .
392
+
393
+ # 23. TEMPLATE VS SCREEN
394
+
395
+ A template is reusable structure.
396
+
397
+ A screen is a specific product destination.
398
+
399
+ Do not turn every screen into a separate design-system template.
400
+
401
+ # 24. VARIANTS
402
+
403
+ Variants should represent meaningful differences.
404
+
405
+ Good:
406
+
407
+ ```text
408
+ Button
409
+ ├── primary
410
+ ├── secondary
411
+ └── destructive
412
+ ```
413
+
414
+ Bad:
415
+
416
+ ```text
417
+ Button
418
+ ├── blue
419
+ ├── blue2
420
+ ├── blueLarge
421
+ ├── blueLargeRounded
422
+ ├── blueLargeRoundedShadow
423
+ ```
424
+
425
+ unless these represent actual product semantics.
426
+
427
+ # 25. VARIANT EXPLOSION
428
+
429
+ If a component requires dozens of variants:
430
+
431
+ ```text
432
+ stop
433
+ ```
434
+
435
+ Investigate whether:
436
+
437
+ ```text
438
+ component boundaries
439
+ tokens
440
+ patterns
441
+ ```
442
+
443
+ are wrong.
444
+
445
+ # 26. COMPOSITION OVER VARIANT EXPLOSION
446
+
447
+ Prefer composing smaller components.
448
+
449
+ Example:
450
+
451
+ ```text
452
+ Card
453
+ +
454
+ Badge
455
+ +
456
+ Action
457
+ ```
458
+
459
+ rather than:
460
+
461
+ ```text
462
+ CardWithBadgeWithActionWithStatusVariant
463
+ ```
464
+
465
+ # 27. DESIGN SYSTEM API
466
+
467
+ Component APIs should express semantic intent.
468
+
469
+ Prefer:
470
+
471
+ ```text
472
+ <Button variant="primary">
473
+ ```
474
+
475
+ rather than:
476
+
477
+ ```text
478
+ <Button background="#..." radius={...}>
479
+ ```
480
+
481
+ # 28. DESIGN SYSTEM CONSTRAINTS
482
+
483
+ A good system constrains choices without eliminating creativity.
484
+
485
+ It should provide:
486
+
487
+ ```text
488
+ safe defaults
489
+ reasonable options
490
+ clear escape hatches
491
+ ```
492
+
493
+ .
494
+
495
+ # 29. ESCAPE HATCHES
496
+
497
+ Custom design should remain possible when justified.
498
+
499
+ Example:
500
+
501
+ ```text
502
+ Custom component
503
+ ```
504
+
505
+ is acceptable when:
506
+
507
+ ```text
508
+ platform pattern does not solve the task
509
+ product identity requires it
510
+ interaction is genuinely novel
511
+ ```
512
+
513
+ .
514
+
515
+ # 30. ESCAPE HATCH REVIEW
516
+
517
+ Custom elements should be reviewed for:
518
+
519
+ ```text
520
+ accessibility
521
+ consistency
522
+ discoverability
523
+ maintenance
524
+ performance
525
+ ```
526
+
527
+ .
528
+
529
+ # 31. DESIGN TOKENS + DARK MODE
530
+
531
+ Semantic tokens should support appearance changes.
532
+
533
+ Example:
534
+
535
+ ```text
536
+ background.primary
537
+ ```
538
+
539
+ may resolve differently in:
540
+
541
+ ```text
542
+ light
543
+ dark
544
+ ```
545
+
546
+ without requiring component redesign.
547
+
548
+ # 32. DARK MODE ARCHITECTURE
549
+
550
+ Do not create two independent design systems:
551
+
552
+ ```text
553
+ Light System
554
+ Dark System
555
+ ```
556
+
557
+ Instead:
558
+
559
+ ```text
560
+ One semantic system
561
+ +
562
+ appearance-specific values
563
+ ```
564
+
565
+ # 33. MATERIAL TOKENS
566
+
567
+ Materials should be represented semantically.
568
+
569
+ Examples:
570
+
571
+ ```text
572
+ surface.primary
573
+ surface.secondary
574
+ surface.translucent
575
+ surface.elevated
576
+ ```
577
+
578
+ rather than hard-coded blur values everywhere.
579
+
580
+ # 34. MOTION TOKENS
581
+
582
+ Motion should also be tokenized.
583
+
584
+ Example:
585
+
586
+ ```text
587
+ motion.fast
588
+ motion.standard
589
+ motion.slow
590
+ ```
591
+
592
+ and:
593
+
594
+ ```text
595
+ motion.emphasis
596
+ motion.transition
597
+ motion.feedback
598
+ ```
599
+
600
+ where useful.
601
+
602
+ # 35. MOTION CONSISTENCY
603
+
604
+ Similar interactions should use similar motion behavior.
605
+
606
+ Avoid:
607
+
608
+ ```text
609
+ screen A = 150ms
610
+ screen B = 270ms
611
+ screen C = 430ms
612
+ ```
613
+
614
+ without a reason.
615
+
616
+ # 36. TYPOGRAPHY TOKENS
617
+
618
+ Typography should use semantic roles.
619
+
620
+ Example:
621
+
622
+ ```text
623
+ display.large
624
+ title.large
625
+ title.medium
626
+ body
627
+ body.secondary
628
+ caption
629
+ ```
630
+
631
+ .
632
+
633
+ # 37. SPACING TOKENS
634
+
635
+ Use a consistent spacing scale.
636
+
637
+ Example:
638
+
639
+ ```text
640
+ xs
641
+ sm
642
+ md
643
+ lg
644
+ xl
645
+ xxl
646
+ ```
647
+
648
+ The exact numerical values should come from the project's token system.
649
+
650
+ # 38. SPACING EXCEPTION
651
+
652
+ Custom spacing is acceptable when it solves a genuine layout requirement.
653
+
654
+ Do not create arbitrary values by default.
655
+
656
+ # 39. SHAPE SYSTEM
657
+
658
+ Define a coherent radius language.
659
+
660
+ Example:
661
+
662
+ ```text
663
+ small
664
+ medium
665
+ large
666
+ pill
667
+ ```
668
+
669
+ Avoid random corner radii across the application.
670
+
671
+ # 40. SHAPE SEMANTICS
672
+
673
+ Radius should communicate hierarchy.
674
+
675
+ For example:
676
+
677
+ ```text
678
+ small
679
+ → controls
680
+
681
+ medium
682
+ → cards
683
+
684
+ large
685
+ → prominent surfaces
686
+
687
+ pill
688
+ → compact tags / filters
689
+ ```
690
+
691
+ depending on the design language.
692
+
693
+ # 41. ICON SYSTEM
694
+
695
+ Use a coherent icon family.
696
+
697
+ Consider:
698
+
699
+ ```text
700
+ stroke weight
701
+ optical size
702
+ filled vs outlined style
703
+ corner treatment
704
+ alignment
705
+ ```
706
+
707
+ .
708
+
709
+ # 42. ICON SEMANTICS
710
+
711
+ Icons should retain consistent meanings throughout the product.
712
+
713
+ Do not use one symbol for multiple unrelated actions.
714
+
715
+ # 43. ICON SIZING
716
+
717
+ Define standard icon sizes.
718
+
719
+ Example conceptual scale:
720
+
721
+ ```text
722
+ small
723
+ medium
724
+ large
725
+ hero
726
+ ```
727
+
728
+ Do not manually invent sizes for every screen.
729
+
730
+ # 44. COMPONENT SPACING
731
+
732
+ Components should consume spacing tokens.
733
+
734
+ Avoid local magic numbers unless justified.
735
+
736
+ # 45. LAYOUT PRIMITIVES
737
+
738
+ Common layout primitives may include:
739
+
740
+ ```text
741
+ Stack
742
+ Row
743
+ Grid
744
+ Inset
745
+ Center
746
+ Scroll
747
+ Overlay
748
+ ```
749
+
750
+ These help create consistent geometry.
751
+
752
+ # 46. LAYOUT SYSTEM
753
+
754
+ The design system should define:
755
+
756
+ ```text
757
+ content margins
758
+ safe areas
759
+ maximum widths
760
+ grid behavior
761
+ spacing
762
+ alignment
763
+ ```
764
+
765
+ .
766
+
767
+ # 47. SAFE AREAS
768
+
769
+ Critical content should respect system-safe regions.
770
+
771
+ Do not allow controls to collide with:
772
+
773
+ ```text
774
+ notches
775
+ home indicators
776
+ system bars
777
+ ```
778
+
779
+ .
780
+
781
+ # 48. ADAPTIVE LAYOUT
782
+
783
+ Components should adapt to available space.
784
+
785
+ Avoid assuming one fixed device size.
786
+
787
+ # 49. COMPONENT RESPONSIVENESS
788
+
789
+ Components should define behavior for:
790
+
791
+ ```text
792
+ compact width
793
+ regular width
794
+ large width
795
+ ```
796
+
797
+ where relevant.
798
+
799
+ # 50. iPAD / LARGE SCREEN
800
+
801
+ On larger screens, do not simply stretch the phone layout.
802
+
803
+ Consider:
804
+
805
+ ```text
806
+ multi-column layout
807
+ sidebar
808
+ split view
809
+ persistent navigation
810
+ ```
811
+
812
+ when appropriate.
813
+
814
+ # 51. COMPONENT DOCUMENTATION
815
+
816
+ Every reusable component should document:
817
+
818
+ ```text
819
+ Purpose
820
+ Usage
821
+ Variants
822
+ States
823
+ Accessibility
824
+ Do
825
+ Don't
826
+ Examples
827
+ ```
828
+
829
+ .
830
+
831
+ # 52. COMPONENT CONTRACT
832
+
833
+ A component contract should define:
834
+
835
+ ```text
836
+ Inputs
837
+ Outputs
838
+ States
839
+ Accessibility
840
+ Visual behavior
841
+ Interaction behavior
842
+ ```
843
+
844
+ .
845
+
846
+ # 53. DESIGN SYSTEM DOCUMENTATION
847
+
848
+ Documentation should answer:
849
+
850
+ ```text
851
+ When should I use this?
852
+
853
+ When should I not use it?
854
+
855
+ What alternatives exist?
856
+
857
+ What states are supported?
858
+ ```
859
+
860
+ .
861
+
862
+ # 54. DO / DON'T
863
+
864
+ Each important component should have explicit misuse guidance.
865
+
866
+ Example:
867
+
868
+ ```text
869
+ DO:
870
+ Use primary button for the main action.
871
+
872
+ DON'T:
873
+ Use three primary buttons in one section.
874
+ ```
875
+
876
+ # 55. COMPONENT DISCOVERY
877
+
878
+ The system should make components easy to discover.
879
+
880
+ Use predictable naming.
881
+
882
+ Example:
883
+
884
+ ```text
885
+ Button
886
+ IconButton
887
+ TextField
888
+ SearchField
889
+ ListItem
890
+ SectionHeader
891
+ ```
892
+
893
+ rather than obscure internal names.
894
+
895
+ # 56. NAMING
896
+
897
+ Names should describe semantic purpose.
898
+
899
+ Prefer:
900
+
901
+ ```text
902
+ MediaCard
903
+ ```
904
+
905
+ over:
906
+
907
+ ```text
908
+ BlueRoundedThing
909
+ ```
910
+
911
+ # 57. DESIGN SYSTEM VERSIONING
912
+
913
+ Treat the design system as versioned infrastructure.
914
+
915
+ Changes can affect:
916
+
917
+ ```text
918
+ many screens
919
+ many features
920
+ ```
921
+
922
+ therefore changes should be intentional.
923
+
924
+ # 58. BREAKING CHANGES
925
+
926
+ A breaking component change should identify:
927
+
928
+ ```text
929
+ affected consumers
930
+ migration path
931
+ visual impact
932
+ behavioral impact
933
+ accessibility impact
934
+ ```
935
+
936
+ .
937
+
938
+ # 59. DEPRECATION
939
+
940
+ When replacing a component:
941
+
942
+ ```text
943
+ old
944
+ ↓
945
+ deprecated
946
+ ↓
947
+ migration
948
+ ↓
949
+ new
950
+ ```
951
+
952
+ Do not abruptly remove heavily used primitives without migration planning.
953
+
954
+ # 60. DESIGN DEBT
955
+
956
+ Track:
957
+
958
+ ```text
959
+ duplicate components
960
+ inconsistent spacing
961
+ hard-coded colors
962
+ legacy patterns
963
+ accessibility gaps
964
+ ```
965
+
966
+ as design debt.
967
+
968
+ # 61. DESIGN SYSTEM HEALTH
969
+
970
+ Periodically evaluate:
971
+
972
+ ```text
973
+ consistency
974
+ reuse
975
+ complexity
976
+ accessibility
977
+ performance
978
+ documentation
979
+ ```
980
+
981
+ .
982
+
983
+ # 62. COMPONENT DUPLICATION
984
+
985
+ If multiple components solve essentially the same problem:
986
+
987
+ ```text
988
+ consolidate
989
+ ```
990
+
991
+ unless there is a legitimate semantic difference.
992
+
993
+ # 63. COMPONENT FRAGMENTATION
994
+
995
+ Do not create a component for every visual grouping.
996
+
997
+ A component deserves independent existence when it has meaningful:
998
+
999
+ ```text
1000
+ reuse
1001
+ behavior
1002
+ state
1003
+ semantics
1004
+ ```
1005
+
1006
+ .
1007
+
1008
+ # 64. DESIGN SYSTEM VS PRODUCT
1009
+
1010
+ The design system should support the product.
1011
+
1012
+ The product should not become constrained by unnecessary design-system bureaucracy.
1013
+
1014
+ # 65. PRODUCT-SPECIFIC COMPONENTS
1015
+
1016
+ A component can remain product-specific until a pattern proves reusable.
1017
+
1018
+ # 66. PROMOTION TO DESIGN SYSTEM
1019
+
1020
+ A product component can be promoted when:
1021
+
1022
+ ```text
1023
+ repetition
1024
+ stability
1025
+ semantic clarity
1026
+ ```
1027
+
1028
+ are established.
1029
+
1030
+ # 67. DESIGN SYSTEM GOVERNANCE
1031
+
1032
+ Major changes should answer:
1033
+
1034
+ ```text
1035
+ Why is this changing?
1036
+
1037
+ What problem does it solve?
1038
+
1039
+ What does it affect?
1040
+
1041
+ Is it consistent with platform conventions?
1042
+
1043
+ ```
1044
+
1045
+ .
1046
+
1047
+ # 68. DESIGN SYSTEM CONSISTENCY
1048
+
1049
+ Consistency means:
1050
+
1051
+ ```text
1052
+ same meaning
1053
+ same behavior
1054
+ same visual language
1055
+ ```
1056
+
1057
+ not:
1058
+
1059
+ ```text
1060
+ everything looks identical
1061
+ ```
1062
+
1063
+ # 69. INTENTIONAL INCONSISTENCY
1064
+
1065
+ Exceptions can be correct when the user task genuinely differs.
1066
+
1067
+ The agent should explain the exception.
1068
+
1069
+ # 70. PLATFORM CONVENTION PRIORITY
1070
+
1071
+ When choosing between:
1072
+
1073
+ ```text
1074
+ platform convention
1075
+ custom pattern
1076
+ ```
1077
+
1078
+ prefer the platform convention unless there is a documented reason to diverge.
1079
+
1080
+ # 71. BRAND EXPRESSION
1081
+
1082
+ Brand identity should primarily appear through:
1083
+
1084
+ ```text
1085
+ color
1086
+ typography
1087
+ imagery
1088
+ materials
1089
+ iconography
1090
+ motion
1091
+ content
1092
+ ```
1093
+
1094
+ without unnecessarily replacing familiar interaction conventions.
1095
+
1096
+ # 72. VISUAL PERSONALITY
1097
+
1098
+ A strong design system can be highly distinctive while maintaining familiar
1099
+ interaction behavior.
1100
+
1101
+ # 73. DESIGN SYSTEM FLEXIBILITY
1102
+
1103
+ Avoid over-constraining:
1104
+
1105
+ ```text
1106
+ every radius
1107
+ every margin
1108
+ every composition
1109
+ ```
1110
+
1111
+ The system should guide rather than imprison designers.
1112
+
1113
+ # 74. DESIGN SYSTEM SCALE
1114
+
1115
+ A mature system should support:
1116
+
1117
+ ```text
1118
+ 1 screen
1119
+ 10 screens
1120
+ 100 screens
1121
+ ```
1122
+
1123
+ without becoming inconsistent.
1124
+
1125
+ # 75. DESIGN SYSTEM PERFORMANCE
1126
+
1127
+ Components should avoid unnecessary runtime complexity.
1128
+
1129
+ Design-system abstraction must not become performance abstraction failure.
1130
+
1131
+ # 76. REACT NATIVE CONSIDERATION
1132
+
1133
+ For React Native:
1134
+
1135
+ ```text
1136
+ design tokens
1137
+ ↓
1138
+ theme
1139
+ ↓
1140
+ components
1141
+ ↓
1142
+ patterns
1143
+ ↓
1144
+ screens
1145
+ ```
1146
+
1147
+ should remain structurally aligned with the conceptual design system.
1148
+
1149
+ # 77. EXPO CONSIDERATION
1150
+
1151
+ Expo applications should preserve platform conventions while allowing shared
1152
+ cross-platform primitives.
1153
+
1154
+ Do not force identical UI across platforms when platform conventions differ.
1155
+
1156
+ # 78. PLATFORM ADAPTATION
1157
+
1158
+ Shared components may have:
1159
+
1160
+ ```text
1161
+ shared semantics
1162
+ +
1163
+ platform-specific presentation
1164
+ ```
1165
+
1166
+ .
1167
+
1168
+ # 79. CROSS-PLATFORM RULE
1169
+
1170
+ Do not optimize for:
1171
+
1172
+ ```text
1173
+ "same pixels everywhere"
1174
+ ```
1175
+
1176
+ Optimize for:
1177
+
1178
+ ```text
1179
+ "same product meaning everywhere"
1180
+ ```
1181
+
1182
+ # 80. DESIGN SYSTEM SOURCE STRUCTURE
1183
+
1184
+ A conceptual implementation might resemble:
1185
+
1186
+ ```text
1187
+ design-system/
1188
+ │
1189
+ ├── tokens/
1190
+ │ ├── colors
1191
+ │ ├── typography
1192
+ │ ├── spacing
1193
+ │ ├── radius
1194
+ │ └── motion
1195
+ │
1196
+ ├── primitives/
1197
+ │ ├── Text
1198
+ │ ├── Icon
1199
+ │ ├── Stack
1200
+ │ └── Surface
1201
+ │
1202
+ ├── components/
1203
+ │ ├── Button
1204
+ │ ├── Input
1205
+ │ ├── ListItem
1206
+ │ └── Sheet
1207
+ │
1208
+ ├── patterns/
1209
+ │ ├── EmptyState
1210
+ │ ├── Search
1211
+ │ └── SelectionMode
1212
+ │
1213
+ └── templates/
1214
+ ├── ListScreen
1215
+ ├── DetailScreen
1216
+ └── SettingsScreen
1217
+ ```
1218
+
1219
+ # 81. DESIGN TOKEN FLOW
1220
+
1221
+ ```text
1222
+ Raw value
1223
+ ↓
1224
+ Primitive token
1225
+ ↓
1226
+ Semantic token
1227
+ ↓
1228
+ Component token
1229
+ ↓
1230
+ Component
1231
+ ↓
1232
+ Pattern
1233
+ ↓
1234
+ Screen
1235
+ ```
1236
+
1237
+ # 82. DESIGN DECISION FLOW
1238
+
1239
+ ```text
1240
+ User need
1241
+ ↓
1242
+ UX pattern
1243
+ ↓
1244
+ Component
1245
+ ↓
1246
+ Variant
1247
+ ↓
1248
+ Tokens
1249
+ ↓
1250
+ Implementation
1251
+ ```
1252
+
1253
+ Never reverse this unnecessarily.
1254
+
1255
+ # 83. DESIGN SYSTEM REVIEW
1256
+
1257
+ For each new component ask:
1258
+
1259
+ ```text
1260
+ Does this already exist?
1261
+
1262
+ Can an existing component solve it?
1263
+
1264
+ Is a variant enough?
1265
+
1266
+ Is a new component genuinely justified?
1267
+
1268
+ Will this create duplication?
1269
+
1270
+ Is it accessible?
1271
+
1272
+ Is it responsive?
1273
+
1274
+ Does it follow platform conventions?
1275
+ ```
1276
+
1277
+ # 84. DESIGN SYSTEM SCORE
1278
+
1279
+ Suggested evaluation:
1280
+
1281
+ ```text
1282
+ Consistency 20
1283
+ Scalability 15
1284
+ Reusability 15
1285
+ Accessibility 15
1286
+ Platform alignment 10
1287
+ Token architecture 10
1288
+ Documentation 5
1289
+ Adaptability 5
1290
+ Maintainability 5
1291
+ ──────────────────────────
1292
+ Total 100
1293
+ ```
1294
+
1295
+ Interpretation:
1296
+
1297
+ ```text
1298
+ 95–100 Exceptional
1299
+ 90–94 Excellent
1300
+ 80–89 Strong
1301
+ 70–79 Needs refinement
1302
+ 60–69 Weak
1303
+ <60 Re-architect
1304
+ ```
1305
+
1306
+ # 85. DESIGN SYSTEM REVIEW OUTPUT
1307
+
1308
+ ```text
1309
+ DESIGN SYSTEM REVIEW
1310
+ ────────────────────────
1311
+
1312
+ Principles:
1313
+ ...
1314
+
1315
+ Foundations:
1316
+ ...
1317
+
1318
+ Tokens:
1319
+ ...
1320
+
1321
+ Primitives:
1322
+ ...
1323
+
1324
+ Components:
1325
+ ...
1326
+
1327
+ Patterns:
1328
+ ...
1329
+
1330
+ Templates:
1331
+ ...
1332
+
1333
+ Duplication:
1334
+ ...
1335
+
1336
+ Inconsistencies:
1337
+ ...
1338
+
1339
+ Accessibility:
1340
+ ...
1341
+
1342
+ Platform alignment:
1343
+ ...
1344
+
1345
+ Design debt:
1346
+ ...
1347
+
1348
+ Recommended changes:
1349
+ ...
1350
+ ```
1351
+
1352
+ # 86. DESIGN SYSTEM MATURITY
1353
+
1354
+ Level 1:
1355
+
1356
+ ```text
1357
+ Visual consistency
1358
+ ```
1359
+
1360
+ Level 2:
1361
+
1362
+ ```text
1363
+ Reusable components
1364
+ ```
1365
+
1366
+ Level 3:
1367
+
1368
+ ```text
1369
+ Semantic tokens
1370
+ ```
1371
+
1372
+ Level 4:
1373
+
1374
+ ```text
1375
+ Reusable UX patterns
1376
+ ```
1377
+
1378
+ Level 5:
1379
+
1380
+ ```text
1381
+ Adaptive design system
1382
+ ```
1383
+
1384
+ Level 6:
1385
+
1386
+ ```text
1387
+ Agent-assisted design system
1388
+ ```
1389
+
1390
+ # 87. AGENT-ASSISTED DESIGN SYSTEM
1391
+
1392
+ The agent should be able to:
1393
+
1394
+ ```text
1395
+ inspect
1396
+ identify
1397
+ reuse
1398
+ compose
1399
+ adapt
1400
+ review
1401
+ refactor
1402
+ document
1403
+ ```
1404
+
1405
+ the design system.
1406
+
1407
+ # 88. AGENT COMPONENT SELECTION
1408
+
1409
+ When asked to design a feature:
1410
+
1411
+ ```text
1412
+ Feature
1413
+ ↓
1414
+ Identify required interactions
1415
+ ↓
1416
+ Search existing patterns
1417
+ ↓
1418
+ Search existing components
1419
+ ↓
1420
+ Reuse where possible
1421
+ ↓
1422
+ Compose where necessary
1423
+ ↓
1424
+ Create new component only if justified
1425
+ ```
1426
+
1427
+ .
1428
+
1429
+ # 89. AGENT CONSISTENCY CHECK
1430
+
1431
+ Before finalizing a screen:
1432
+
1433
+ ```text
1434
+ Compare against existing components.
1435
+ Compare spacing.
1436
+ Compare typography.
1437
+ Compare colors.
1438
+ Compare interaction patterns.
1439
+ Compare motion.
1440
+ Compare accessibility.
1441
+ ```
1442
+
1443
+ .
1444
+
1445
+ # 90. AGENT DESIGN DEBT CHECK
1446
+
1447
+ The agent should flag:
1448
+
1449
+ ```text
1450
+ new duplicate component
1451
+ new arbitrary token
1452
+ new hard-coded color
1453
+ new arbitrary spacing
1454
+ new inconsistent radius
1455
+ new custom control
1456
+ ```
1457
+
1458
+ .
1459
+
1460
+ # 91. AGENT EXCEPTION PROTOCOL
1461
+
1462
+ If intentionally breaking a system convention:
1463
+
1464
+ ```text
1465
+ Exception:
1466
+ Reason:
1467
+ User benefit:
1468
+ Alternative considered:
1469
+ Accessibility impact:
1470
+ Maintenance impact:
1471
+ ```
1472
+
1473
+ .
1474
+
1475
+ # 92. FINAL DESIGN SYSTEM PRINCIPLE
1476
+
1477
+ A mature design system should make the application feel like:
1478
+
1479
+ ```text
1480
+ one coherent product
1481
+ ```
1482
+
1483
+ even when it contains:
1484
+
1485
+ ```text
1486
+ dozens of screens
1487
+ hundreds of components
1488
+ multiple workflows
1489
+ ```
1490
+
1491
+ .
1492
+
1493
+ # 93. FINAL AGENT DIRECTIVE
1494
+
1495
+ Do not ask:
1496
+
1497
+ > "What UI should I make?"
1498
+
1499
+ Ask:
1500
+
1501
+ ```text
1502
+ What is the user's goal?
1503
+ ↓
1504
+ What interaction solves it?
1505
+ ↓
1506
+ What existing pattern solves that interaction?
1507
+ ↓
1508
+ What component implements that pattern?
1509
+ ↓
1510
+ What tokens express the visual language?
1511
+ ↓
1512
+ What states must exist?
1513
+ ↓
1514
+ How does accessibility change the design?
1515
+ ↓
1516
+ How does the platform influence it?
1517
+ ↓
1518
+ How does this fit the existing system?
1519
+ ```
1520
+