mobileui-os 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,1343 @@
|
|
|
1
|
+
# iOS Components & UI Patterns
|
|
2
|
+
|
|
3
|
+
> Advanced agent knowledge module for selecting, composing, adapting, and
|
|
4
|
+
> implementing iOS interface components and reusable UI patterns.
|
|
5
|
+
|
|
6
|
+
Version: 1.0
|
|
7
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
8
|
+
Layer: Advanced UI component intelligence
|
|
9
|
+
|
|
10
|
+
Related foundation:
|
|
11
|
+
|
|
12
|
+
* Previous iOS design, UX, interaction, accessibility, search, and state modules
|
|
13
|
+
* Especially navigation, components, forms, motion, and state foundations
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# 1. PURPOSE
|
|
18
|
+
|
|
19
|
+
This module teaches the agent how to choose and compose interface components
|
|
20
|
+
rather than treating every screen as a collection of arbitrary rectangles.
|
|
21
|
+
|
|
22
|
+
The goal is:
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
User intent
|
|
26
|
+
↓
|
|
27
|
+
Interaction requirement
|
|
28
|
+
↓
|
|
29
|
+
Appropriate component
|
|
30
|
+
↓
|
|
31
|
+
Platform convention
|
|
32
|
+
↓
|
|
33
|
+
Consistent composition
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The agent should prefer established patterns over inventing new controls.
|
|
37
|
+
|
|
38
|
+
# 2. COMPONENT-FIRST THINKING
|
|
39
|
+
|
|
40
|
+
Before creating a component, determine:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
What does the user need to accomplish?
|
|
44
|
+
What information must be visible?
|
|
45
|
+
What interaction is required?
|
|
46
|
+
How frequently is it used?
|
|
47
|
+
How important is the action?
|
|
48
|
+
What platform pattern already solves this?
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
# 3. COMPONENT HIERARCHY
|
|
52
|
+
|
|
53
|
+
Think in layers:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
Screen
|
|
57
|
+
├── Section
|
|
58
|
+
│ ├── Component
|
|
59
|
+
│ │ ├── Element
|
|
60
|
+
│ │ └── Interaction
|
|
61
|
+
│ └── Component
|
|
62
|
+
└── Section
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Avoid creating visually disconnected components without structural purpose.
|
|
66
|
+
|
|
67
|
+
# 4. PRIMARY COMPONENTS
|
|
68
|
+
|
|
69
|
+
Typical application primitives include:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
Navigation
|
|
73
|
+
Buttons
|
|
74
|
+
Lists
|
|
75
|
+
Rows
|
|
76
|
+
Cards
|
|
77
|
+
Inputs
|
|
78
|
+
Menus
|
|
79
|
+
Sheets
|
|
80
|
+
Dialogs
|
|
81
|
+
Alerts
|
|
82
|
+
Tabs
|
|
83
|
+
Controls
|
|
84
|
+
Pickers
|
|
85
|
+
Indicators
|
|
86
|
+
Progress
|
|
87
|
+
Avatars
|
|
88
|
+
Badges
|
|
89
|
+
Toolbars
|
|
90
|
+
Headers
|
|
91
|
+
Footers
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Select based on user intent rather than visual preference.
|
|
95
|
+
|
|
96
|
+
# 5. COMPONENT SELECTION RULE
|
|
97
|
+
|
|
98
|
+
Prefer:
|
|
99
|
+
|
|
100
|
+
```text
|
|
101
|
+
Native pattern
|
|
102
|
+
>
|
|
103
|
+
Established platform pattern
|
|
104
|
+
>
|
|
105
|
+
Existing design-system component
|
|
106
|
+
>
|
|
107
|
+
Custom component
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Custom UI should exist because the product requires it, not because the agent
|
|
111
|
+
can draw something different.
|
|
112
|
+
|
|
113
|
+
# 6. BUTTONS
|
|
114
|
+
|
|
115
|
+
Buttons represent actions.
|
|
116
|
+
|
|
117
|
+
The visual hierarchy should communicate action importance.
|
|
118
|
+
|
|
119
|
+
# 7. BUTTON HIERARCHY
|
|
120
|
+
|
|
121
|
+
Typical hierarchy:
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
Primary
|
|
125
|
+
Secondary
|
|
126
|
+
Tertiary
|
|
127
|
+
Destructive
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Do not give every button equal visual weight.
|
|
131
|
+
|
|
132
|
+
# 8. PRIMARY ACTION
|
|
133
|
+
|
|
134
|
+
A screen should usually have a visually identifiable primary action when one
|
|
135
|
+
exists.
|
|
136
|
+
|
|
137
|
+
# 9. BUTTON LABELS
|
|
138
|
+
|
|
139
|
+
Prefer action-oriented labels:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
Save
|
|
143
|
+
Create
|
|
144
|
+
Add
|
|
145
|
+
Delete
|
|
146
|
+
Continue
|
|
147
|
+
Share
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
over vague labels such as:
|
|
151
|
+
|
|
152
|
+
```text
|
|
153
|
+
OK
|
|
154
|
+
Done
|
|
155
|
+
Proceed
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
when a more specific action can be named.
|
|
159
|
+
|
|
160
|
+
# 10. DESTRUCTIVE ACTIONS
|
|
161
|
+
|
|
162
|
+
Destructive actions should be visually distinguishable and appropriately
|
|
163
|
+
protected against accidental activation.
|
|
164
|
+
|
|
165
|
+
# 11. DESTRUCTIVE CONFIRMATION
|
|
166
|
+
|
|
167
|
+
For irreversible actions, confirmation may be appropriate.
|
|
168
|
+
|
|
169
|
+
Do not require confirmation for every minor action.
|
|
170
|
+
|
|
171
|
+
# 12. BUTTON STATES
|
|
172
|
+
|
|
173
|
+
Every reusable button should account for:
|
|
174
|
+
|
|
175
|
+
```text
|
|
176
|
+
Default
|
|
177
|
+
Pressed
|
|
178
|
+
Focused
|
|
179
|
+
Disabled
|
|
180
|
+
Loading
|
|
181
|
+
Success
|
|
182
|
+
Error
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
where applicable.
|
|
186
|
+
|
|
187
|
+
# 13. LOADING BUTTONS
|
|
188
|
+
|
|
189
|
+
The loading state should prevent duplicate submission while preserving enough
|
|
190
|
+
context to understand what is happening.
|
|
191
|
+
|
|
192
|
+
# 14. ICON BUTTONS
|
|
193
|
+
|
|
194
|
+
Icon-only controls require strong semantic labeling.
|
|
195
|
+
|
|
196
|
+
They should not rely solely on visual recognition.
|
|
197
|
+
|
|
198
|
+
# 15. ICON BUTTON SIZE
|
|
199
|
+
|
|
200
|
+
Touch targets should remain sufficiently large even when the visible icon is
|
|
201
|
+
small.
|
|
202
|
+
|
|
203
|
+
# 16. ICON + LABEL
|
|
204
|
+
|
|
205
|
+
Use both when an icon alone is ambiguous.
|
|
206
|
+
|
|
207
|
+
# 17. LISTS
|
|
208
|
+
|
|
209
|
+
Lists are one of the most important information structures in mobile UI.
|
|
210
|
+
|
|
211
|
+
Use lists when users need to:
|
|
212
|
+
|
|
213
|
+
```text
|
|
214
|
+
Scan
|
|
215
|
+
Compare
|
|
216
|
+
Select
|
|
217
|
+
Manage
|
|
218
|
+
Navigate
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
multiple related items.
|
|
222
|
+
|
|
223
|
+
# 18. LIST ROW
|
|
224
|
+
|
|
225
|
+
A strong row generally contains:
|
|
226
|
+
|
|
227
|
+
```text
|
|
228
|
+
Leading identity
|
|
229
|
+
Primary content
|
|
230
|
+
Secondary information
|
|
231
|
+
Optional trailing value/action
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Only include what supports the task.
|
|
235
|
+
|
|
236
|
+
# 19. LIST DENSITY
|
|
237
|
+
|
|
238
|
+
Choose density according to:
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
Information volume
|
|
242
|
+
Task frequency
|
|
243
|
+
Screen size
|
|
244
|
+
Touch requirements
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
Do not make lists dense simply to fit more content.
|
|
248
|
+
|
|
249
|
+
# 20. LIST SEPARATORS
|
|
250
|
+
|
|
251
|
+
Separators should clarify grouping without becoming visual noise.
|
|
252
|
+
|
|
253
|
+
# 21. GROUPED LISTS
|
|
254
|
+
|
|
255
|
+
Grouped sections are useful when categories or hierarchy matter.
|
|
256
|
+
|
|
257
|
+
# 22. SECTION HEADERS
|
|
258
|
+
|
|
259
|
+
Section headers should establish context without competing with content.
|
|
260
|
+
|
|
261
|
+
# 23. LIST ACTIONS
|
|
262
|
+
|
|
263
|
+
Common actions include:
|
|
264
|
+
|
|
265
|
+
```text
|
|
266
|
+
Tap
|
|
267
|
+
Select
|
|
268
|
+
Swipe
|
|
269
|
+
Reorder
|
|
270
|
+
Delete
|
|
271
|
+
Edit
|
|
272
|
+
Share
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
Use the least intrusive interaction appropriate for the task.
|
|
276
|
+
|
|
277
|
+
# 24. SWIPE ACTIONS
|
|
278
|
+
|
|
279
|
+
Swipe actions are useful for secondary operations.
|
|
280
|
+
|
|
281
|
+
Do not hide essential functionality exclusively behind gestures.
|
|
282
|
+
|
|
283
|
+
# 25. CONTEXT MENUS
|
|
284
|
+
|
|
285
|
+
Context menus expose secondary actions without permanently occupying layout
|
|
286
|
+
space.
|
|
287
|
+
|
|
288
|
+
# 26. CONTEXT MENU SELECTION
|
|
289
|
+
|
|
290
|
+
Use context menus when:
|
|
291
|
+
|
|
292
|
+
```text
|
|
293
|
+
An object has multiple secondary operations
|
|
294
|
+
Actions are contextual
|
|
295
|
+
Space is limited
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Do not use them for the only way to perform a critical action.
|
|
299
|
+
|
|
300
|
+
# 27. CONTEXT MENU CONTENT
|
|
301
|
+
|
|
302
|
+
Group actions logically:
|
|
303
|
+
|
|
304
|
+
```text
|
|
305
|
+
Open
|
|
306
|
+
Share
|
|
307
|
+
Rename
|
|
308
|
+
Move
|
|
309
|
+
Delete
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
Destructive actions should receive appropriate separation and treatment.
|
|
313
|
+
|
|
314
|
+
# 28. ACTION SHEETS
|
|
315
|
+
|
|
316
|
+
Action sheets are appropriate when a user must choose between a small number of
|
|
317
|
+
contextual actions.
|
|
318
|
+
|
|
319
|
+
# 29. ACTION SHEET RULE
|
|
320
|
+
|
|
321
|
+
The sheet should answer:
|
|
322
|
+
|
|
323
|
+
```text
|
|
324
|
+
"What do you want to do with this?"
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
rather than becoming a dumping ground for every possible action.
|
|
328
|
+
|
|
329
|
+
# 30. SHEETS
|
|
330
|
+
|
|
331
|
+
Sheets are useful for temporary tasks that preserve context with the underlying
|
|
332
|
+
screen.
|
|
333
|
+
|
|
334
|
+
# 31. SHEET TYPES
|
|
335
|
+
|
|
336
|
+
Conceptually distinguish:
|
|
337
|
+
|
|
338
|
+
```text
|
|
339
|
+
Short action sheet
|
|
340
|
+
Form sheet
|
|
341
|
+
Detail sheet
|
|
342
|
+
Configuration sheet
|
|
343
|
+
Selection sheet
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
Each should have appropriate content density.
|
|
347
|
+
|
|
348
|
+
# 32. SHEET HEIGHT
|
|
349
|
+
|
|
350
|
+
Use the smallest practical height for the task.
|
|
351
|
+
|
|
352
|
+
Do not force a full-screen presentation when a compact sheet is sufficient.
|
|
353
|
+
|
|
354
|
+
# 33. SHEET EXPANSION
|
|
355
|
+
|
|
356
|
+
If content requires more space, allow progressive expansion rather than
|
|
357
|
+
compressing the interface excessively.
|
|
358
|
+
|
|
359
|
+
# 34. SHEET CONTEXT
|
|
360
|
+
|
|
361
|
+
The user should understand what object or task the sheet belongs to.
|
|
362
|
+
|
|
363
|
+
# 35. SHEET DISMISSAL
|
|
364
|
+
|
|
365
|
+
Users should have a clear path to dismiss or complete the task.
|
|
366
|
+
|
|
367
|
+
# 36. FORM SHEETS
|
|
368
|
+
|
|
369
|
+
Form sheets should preserve:
|
|
370
|
+
|
|
371
|
+
```text
|
|
372
|
+
Title
|
|
373
|
+
Current task
|
|
374
|
+
Inputs
|
|
375
|
+
Validation
|
|
376
|
+
Primary action
|
|
377
|
+
Dismissal
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
without excessive chrome.
|
|
381
|
+
|
|
382
|
+
# 37. DIALOGS
|
|
383
|
+
|
|
384
|
+
Dialogs interrupt the current flow.
|
|
385
|
+
|
|
386
|
+
Use them only when interruption is justified.
|
|
387
|
+
|
|
388
|
+
# 38. DIALOG PURPOSE
|
|
389
|
+
|
|
390
|
+
Good dialog use:
|
|
391
|
+
|
|
392
|
+
```text
|
|
393
|
+
Critical decision
|
|
394
|
+
Irreversible action
|
|
395
|
+
Important warning
|
|
396
|
+
Focused short interaction
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
Poor dialog use:
|
|
400
|
+
|
|
401
|
+
```text
|
|
402
|
+
Routine information
|
|
403
|
+
Minor status update
|
|
404
|
+
Long forms
|
|
405
|
+
Normal navigation
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
Those generally belong elsewhere.
|
|
409
|
+
|
|
410
|
+
# 39. ALERTS
|
|
411
|
+
|
|
412
|
+
Alerts should be concise and decision-oriented.
|
|
413
|
+
|
|
414
|
+
# 40. ALERT BUTTON COUNT
|
|
415
|
+
|
|
416
|
+
Avoid excessive choices.
|
|
417
|
+
|
|
418
|
+
Users should understand the consequences of each available action.
|
|
419
|
+
|
|
420
|
+
# 41. DESTRUCTIVE ALERTS
|
|
421
|
+
|
|
422
|
+
Make the destructive outcome unmistakable.
|
|
423
|
+
|
|
424
|
+
# 42. ALERT COPY
|
|
425
|
+
|
|
426
|
+
Structure:
|
|
427
|
+
|
|
428
|
+
```text
|
|
429
|
+
Title
|
|
430
|
+
Short explanation
|
|
431
|
+
Action choices
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
Avoid paragraphs of technical explanation.
|
|
435
|
+
|
|
436
|
+
# 43. MENUS
|
|
437
|
+
|
|
438
|
+
Menus provide compact access to related actions.
|
|
439
|
+
|
|
440
|
+
# 44. MENU GROUPING
|
|
441
|
+
|
|
442
|
+
Related operations should appear together.
|
|
443
|
+
|
|
444
|
+
# 45. MENU ORDER
|
|
445
|
+
|
|
446
|
+
Place frequent actions where users can find them easily.
|
|
447
|
+
|
|
448
|
+
# 46. MENU DESTRUCTIVE ACTIONS
|
|
449
|
+
|
|
450
|
+
Destructive actions should be visually and spatially separated where practical.
|
|
451
|
+
|
|
452
|
+
# 47. PICKERS
|
|
453
|
+
|
|
454
|
+
Pickers are useful when users must choose from a constrained set.
|
|
455
|
+
|
|
456
|
+
# 48. PICKER SELECTION
|
|
457
|
+
|
|
458
|
+
Selection should provide immediate and understandable feedback.
|
|
459
|
+
|
|
460
|
+
# 49. PICKER SIZE
|
|
461
|
+
|
|
462
|
+
Do not expose hundreds of choices in a tiny scrolling control when search or
|
|
463
|
+
grouping would be more efficient.
|
|
464
|
+
|
|
465
|
+
# 50. DATE AND TIME
|
|
466
|
+
|
|
467
|
+
Use platform-appropriate date and time controls where the task benefits from
|
|
468
|
+
native familiarity.
|
|
469
|
+
|
|
470
|
+
# 51. SEGMENTED CONTROLS
|
|
471
|
+
|
|
472
|
+
Use segmented controls for a small number of mutually exclusive views or modes.
|
|
473
|
+
|
|
474
|
+
# 52. SEGMENT COUNT
|
|
475
|
+
|
|
476
|
+
Too many segments make the control difficult to scan.
|
|
477
|
+
|
|
478
|
+
Switch to another pattern when choices become numerous.
|
|
479
|
+
|
|
480
|
+
# 53. TOGGLES
|
|
481
|
+
|
|
482
|
+
Toggles are appropriate for binary settings that take effect immediately or
|
|
483
|
+
clearly represent an on/off state.
|
|
484
|
+
|
|
485
|
+
# 54. TOGGLE LABELS
|
|
486
|
+
|
|
487
|
+
The label should describe the setting, not the state.
|
|
488
|
+
|
|
489
|
+
Good:
|
|
490
|
+
|
|
491
|
+
```text
|
|
492
|
+
Notifications
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
rather than:
|
|
496
|
+
|
|
497
|
+
```text
|
|
498
|
+
Enable notifications
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
when the control itself communicates the state.
|
|
502
|
+
|
|
503
|
+
# 55. STEPPERS
|
|
504
|
+
|
|
505
|
+
Use steppers for small incremental numeric changes.
|
|
506
|
+
|
|
507
|
+
# 56. SLIDERS
|
|
508
|
+
|
|
509
|
+
Sliders are appropriate when:
|
|
510
|
+
|
|
511
|
+
```text
|
|
512
|
+
Continuous values
|
|
513
|
+
Approximate adjustment
|
|
514
|
+
Direct manipulation
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
are useful.
|
|
518
|
+
|
|
519
|
+
# 57. PRECISE VALUES
|
|
520
|
+
|
|
521
|
+
If precise values matter, pair sliders with visible values or an alternative
|
|
522
|
+
precise input mechanism.
|
|
523
|
+
|
|
524
|
+
# 58. PROGRESS
|
|
525
|
+
|
|
526
|
+
Progress communicates completion state.
|
|
527
|
+
|
|
528
|
+
Use determinate progress when the amount remaining can be meaningfully known.
|
|
529
|
+
|
|
530
|
+
# 59. ACTIVITY INDICATORS
|
|
531
|
+
|
|
532
|
+
Indeterminate activity indicators communicate ongoing work when duration is
|
|
533
|
+
unknown.
|
|
534
|
+
|
|
535
|
+
# 60. PROGRESSIVE DISCLOSURE
|
|
536
|
+
|
|
537
|
+
Do not show advanced controls until they are relevant.
|
|
538
|
+
|
|
539
|
+
# 61. DISCLOSURE CONTROLS
|
|
540
|
+
|
|
541
|
+
Expandable sections are useful when users need optional detail without permanent
|
|
542
|
+
visual density.
|
|
543
|
+
|
|
544
|
+
# 62. DISCLOSURE HIERARCHY
|
|
545
|
+
|
|
546
|
+
Expansion should preserve the relationship between the parent and revealed
|
|
547
|
+
content.
|
|
548
|
+
|
|
549
|
+
# 63. ACCORDIONS
|
|
550
|
+
|
|
551
|
+
Use accordions when multiple independent sections can be expanded and collapsed.
|
|
552
|
+
|
|
553
|
+
# 64. CARDS
|
|
554
|
+
|
|
555
|
+
Cards group related content.
|
|
556
|
+
|
|
557
|
+
They should not be used merely because cards look modern.
|
|
558
|
+
|
|
559
|
+
# 65. CARD PURPOSE
|
|
560
|
+
|
|
561
|
+
A card should communicate:
|
|
562
|
+
|
|
563
|
+
```text
|
|
564
|
+
This information belongs together.
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
If every element is placed inside a card, the hierarchy loses meaning.
|
|
568
|
+
|
|
569
|
+
# 66. CARD DENSITY
|
|
570
|
+
|
|
571
|
+
Avoid stuffing unrelated controls into a single surface.
|
|
572
|
+
|
|
573
|
+
# 67. CARD ACTIONS
|
|
574
|
+
|
|
575
|
+
If a card is interactive, make the interaction model obvious.
|
|
576
|
+
|
|
577
|
+
# 68. GRID
|
|
578
|
+
|
|
579
|
+
Grids are useful for:
|
|
580
|
+
|
|
581
|
+
```text
|
|
582
|
+
Images
|
|
583
|
+
Products
|
|
584
|
+
Media
|
|
585
|
+
Categories
|
|
586
|
+
Visual collections
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
where recognition is more visual than textual.
|
|
590
|
+
|
|
591
|
+
# 69. GRID CONSISTENCY
|
|
592
|
+
|
|
593
|
+
Maintain predictable item dimensions and spacing.
|
|
594
|
+
|
|
595
|
+
# 70. ADAPTIVE GRID
|
|
596
|
+
|
|
597
|
+
Grid columns should adapt to available space rather than relying on arbitrary
|
|
598
|
+
fixed dimensions.
|
|
599
|
+
|
|
600
|
+
# 71. COLLECTIONS
|
|
601
|
+
|
|
602
|
+
Collections are appropriate for large, reusable sets of items that may support
|
|
603
|
+
different layouts.
|
|
604
|
+
|
|
605
|
+
# 72. LIST VS GRID
|
|
606
|
+
|
|
607
|
+
Choose:
|
|
608
|
+
|
|
609
|
+
```text
|
|
610
|
+
List → text-heavy recognition
|
|
611
|
+
Grid → visual recognition
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
When both matter, allow an appropriate view switch.
|
|
615
|
+
|
|
616
|
+
# 73. BADGES
|
|
617
|
+
|
|
618
|
+
Badges communicate compact status or counts.
|
|
619
|
+
|
|
620
|
+
# 74. BADGE RESTRAINT
|
|
621
|
+
|
|
622
|
+
Do not place badges everywhere.
|
|
623
|
+
|
|
624
|
+
Excessive badges destroy hierarchy.
|
|
625
|
+
|
|
626
|
+
# 75. STATUS INDICATORS
|
|
627
|
+
|
|
628
|
+
Status should communicate:
|
|
629
|
+
|
|
630
|
+
```text
|
|
631
|
+
Active
|
|
632
|
+
Inactive
|
|
633
|
+
Pending
|
|
634
|
+
Synced
|
|
635
|
+
Failed
|
|
636
|
+
Available
|
|
637
|
+
Unavailable
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
clearly.
|
|
641
|
+
|
|
642
|
+
# 76. AVATARS
|
|
643
|
+
|
|
644
|
+
Avatars identify people or entities visually.
|
|
645
|
+
|
|
646
|
+
Use consistent sizing and fallback behavior.
|
|
647
|
+
|
|
648
|
+
# 77. AVATAR FALLBACK
|
|
649
|
+
|
|
650
|
+
If an image is unavailable:
|
|
651
|
+
|
|
652
|
+
```text
|
|
653
|
+
Initial
|
|
654
|
+
Generic icon
|
|
655
|
+
Generated identity
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
may be used depending on context.
|
|
659
|
+
|
|
660
|
+
# 78. TOOLBARS
|
|
661
|
+
|
|
662
|
+
Toolbars should expose high-value contextual actions.
|
|
663
|
+
|
|
664
|
+
# 79. TOOLBAR DENSITY
|
|
665
|
+
|
|
666
|
+
Avoid packing every possible action into a toolbar.
|
|
667
|
+
|
|
668
|
+
# 80. NAVIGATION BAR ACTIONS
|
|
669
|
+
|
|
670
|
+
Navigation actions should preserve the platform's spatial expectations.
|
|
671
|
+
|
|
672
|
+
# 81. TAB BARS
|
|
673
|
+
|
|
674
|
+
Tabs represent major destinations or persistent sections.
|
|
675
|
+
|
|
676
|
+
# 82. TAB COUNT
|
|
677
|
+
|
|
678
|
+
Do not overload a tab bar with too many destinations.
|
|
679
|
+
|
|
680
|
+
# 83. TAB LABELS
|
|
681
|
+
|
|
682
|
+
Labels should clearly communicate destinations.
|
|
683
|
+
|
|
684
|
+
# 84. TAB ICONS
|
|
685
|
+
|
|
686
|
+
Icons should reinforce the destination rather than act as decorative symbols.
|
|
687
|
+
|
|
688
|
+
# 85. TAB PERSISTENCE
|
|
689
|
+
|
|
690
|
+
Switching tabs should generally preserve useful context within each destination.
|
|
691
|
+
|
|
692
|
+
# 86. SEARCH IN NAVIGATION
|
|
693
|
+
|
|
694
|
+
Search may belong in navigation when it is a major cross-application function.
|
|
695
|
+
|
|
696
|
+
# 87. SETTINGS
|
|
697
|
+
|
|
698
|
+
Settings interfaces should prioritize:
|
|
699
|
+
|
|
700
|
+
```text
|
|
701
|
+
Discoverability
|
|
702
|
+
Grouping
|
|
703
|
+
Clarity
|
|
704
|
+
Predictability
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
over visual experimentation.
|
|
708
|
+
|
|
709
|
+
# 88. SETTINGS ROW
|
|
710
|
+
|
|
711
|
+
A setting row should communicate:
|
|
712
|
+
|
|
713
|
+
```text
|
|
714
|
+
Setting
|
|
715
|
+
Current state
|
|
716
|
+
Optional navigation/action
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
at a glance.
|
|
720
|
+
|
|
721
|
+
# 89. SETTINGS GROUPING
|
|
722
|
+
|
|
723
|
+
Group settings according to user mental models rather than implementation
|
|
724
|
+
architecture.
|
|
725
|
+
|
|
726
|
+
# 90. SETTINGS DEPTH
|
|
727
|
+
|
|
728
|
+
Avoid deeply nested settings.
|
|
729
|
+
|
|
730
|
+
# 91. DESTRUCTIVE SETTINGS
|
|
731
|
+
|
|
732
|
+
Destructive or privacy-sensitive settings deserve stronger separation.
|
|
733
|
+
|
|
734
|
+
# 92. ONBOARDING
|
|
735
|
+
|
|
736
|
+
Onboarding should introduce only what is necessary to begin successfully.
|
|
737
|
+
|
|
738
|
+
# 93. ONBOARDING PRINCIPLE
|
|
739
|
+
|
|
740
|
+
Do not explain obvious interface elements.
|
|
741
|
+
|
|
742
|
+
Teach concepts that are:
|
|
743
|
+
|
|
744
|
+
```text
|
|
745
|
+
Important
|
|
746
|
+
Non-obvious
|
|
747
|
+
Necessary
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
.
|
|
751
|
+
|
|
752
|
+
# 94. FIRST-RUN EXPERIENCE
|
|
753
|
+
|
|
754
|
+
The first-run interface should move the user toward meaningful product value
|
|
755
|
+
quickly.
|
|
756
|
+
|
|
757
|
+
# 95. PERMISSION TIMING
|
|
758
|
+
|
|
759
|
+
Request permissions when their purpose is immediately understandable.
|
|
760
|
+
|
|
761
|
+
# 96. PERMISSION CONTEXT
|
|
762
|
+
|
|
763
|
+
Explain why access matters before asking when appropriate.
|
|
764
|
+
|
|
765
|
+
# 97. MODALITY
|
|
766
|
+
|
|
767
|
+
Every modal interaction increases cognitive interruption.
|
|
768
|
+
|
|
769
|
+
Use the least modal pattern that solves the task.
|
|
770
|
+
|
|
771
|
+
# 98. MODAL DECISION
|
|
772
|
+
|
|
773
|
+
Ask:
|
|
774
|
+
|
|
775
|
+
```text
|
|
776
|
+
Can this be inline?
|
|
777
|
+
Can this be a sheet?
|
|
778
|
+
Can this be a navigation destination?
|
|
779
|
+
Does this really require interruption?
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
before using an alert.
|
|
783
|
+
|
|
784
|
+
# 99. COMPONENT COMPOSITION
|
|
785
|
+
|
|
786
|
+
Complex screens should be assembled from simple components.
|
|
787
|
+
|
|
788
|
+
Avoid monolithic components containing every behavior.
|
|
789
|
+
|
|
790
|
+
# 100. COMPONENT RESPONSIBILITY
|
|
791
|
+
|
|
792
|
+
A component should have a clear responsibility.
|
|
793
|
+
|
|
794
|
+
# 101. REUSABILITY
|
|
795
|
+
|
|
796
|
+
Reuse when the interaction and semantics are genuinely shared.
|
|
797
|
+
|
|
798
|
+
Do not abstract two components merely because they look similar today.
|
|
799
|
+
|
|
800
|
+
# 102. VARIANTS
|
|
801
|
+
|
|
802
|
+
Use explicit variants for meaningful differences:
|
|
803
|
+
|
|
804
|
+
```text
|
|
805
|
+
Button:
|
|
806
|
+
primary
|
|
807
|
+
secondary
|
|
808
|
+
destructive
|
|
809
|
+
```
|
|
810
|
+
|
|
811
|
+
rather than arbitrary styling props everywhere.
|
|
812
|
+
|
|
813
|
+
# 103. DESIGN TOKENS
|
|
814
|
+
|
|
815
|
+
Components should consume shared tokens rather than hard-coded values.
|
|
816
|
+
|
|
817
|
+
# 104. COMPONENT API
|
|
818
|
+
|
|
819
|
+
A reusable component API should expose:
|
|
820
|
+
|
|
821
|
+
```text
|
|
822
|
+
Content
|
|
823
|
+
State
|
|
824
|
+
Variant
|
|
825
|
+
Interaction
|
|
826
|
+
Accessibility
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
without exposing unnecessary implementation details.
|
|
830
|
+
|
|
831
|
+
# 105. COMPOSITION OVER CONFIGURATION
|
|
832
|
+
|
|
833
|
+
Prefer composing smaller components over building enormous components with
|
|
834
|
+
dozens of boolean properties.
|
|
835
|
+
|
|
836
|
+
# 106. COMPONENT STATES
|
|
837
|
+
|
|
838
|
+
Reusable components should explicitly define relevant states:
|
|
839
|
+
|
|
840
|
+
```text
|
|
841
|
+
Default
|
|
842
|
+
Pressed
|
|
843
|
+
Focused
|
|
844
|
+
Disabled
|
|
845
|
+
Loading
|
|
846
|
+
Selected
|
|
847
|
+
Error
|
|
848
|
+
Success
|
|
849
|
+
```
|
|
850
|
+
|
|
851
|
+
.
|
|
852
|
+
|
|
853
|
+
# 107. COMPONENT ACCESSIBILITY
|
|
854
|
+
|
|
855
|
+
Every interactive component needs:
|
|
856
|
+
|
|
857
|
+
```text
|
|
858
|
+
Semantic role
|
|
859
|
+
Accessible label
|
|
860
|
+
State information
|
|
861
|
+
Action description
|
|
862
|
+
Appropriate focus behavior
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
where applicable.
|
|
866
|
+
|
|
867
|
+
# 108. COMPONENT TESTABILITY
|
|
868
|
+
|
|
869
|
+
Components should be testable independently from entire screens when practical.
|
|
870
|
+
|
|
871
|
+
# 109. COMPONENT PERFORMANCE
|
|
872
|
+
|
|
873
|
+
Avoid unnecessary re-renders caused by:
|
|
874
|
+
|
|
875
|
+
```text
|
|
876
|
+
Unstable props
|
|
877
|
+
Large object creation
|
|
878
|
+
Expensive calculations
|
|
879
|
+
Unnecessary subscriptions
|
|
880
|
+
```
|
|
881
|
+
|
|
882
|
+
.
|
|
883
|
+
|
|
884
|
+
# 110. LIST PERFORMANCE
|
|
885
|
+
|
|
886
|
+
Large lists should use appropriate virtualization.
|
|
887
|
+
|
|
888
|
+
Never render thousands of complex rows unnecessarily.
|
|
889
|
+
|
|
890
|
+
# 111. COMPONENT LAZY LOADING
|
|
891
|
+
|
|
892
|
+
Heavy components may be loaded only when needed.
|
|
893
|
+
|
|
894
|
+
# 112. COMPONENT DEPENDENCY DISCIPLINE
|
|
895
|
+
|
|
896
|
+
Do not add a library simply to implement a small component that can be built
|
|
897
|
+
cleanly with existing platform primitives.
|
|
898
|
+
|
|
899
|
+
# 113. NATIVE VS CUSTOM
|
|
900
|
+
|
|
901
|
+
Use native behavior when:
|
|
902
|
+
|
|
903
|
+
```text
|
|
904
|
+
Platform familiarity matters
|
|
905
|
+
Accessibility is complex
|
|
906
|
+
Gesture behavior is system-level
|
|
907
|
+
Performance is important
|
|
908
|
+
```
|
|
909
|
+
|
|
910
|
+
Custom rendering is appropriate when the product genuinely requires it.
|
|
911
|
+
|
|
912
|
+
# 114. CUSTOM COMPONENT WARNING
|
|
913
|
+
|
|
914
|
+
A custom component should still preserve:
|
|
915
|
+
|
|
916
|
+
```text
|
|
917
|
+
Platform interaction expectations
|
|
918
|
+
Accessibility
|
|
919
|
+
Touch behavior
|
|
920
|
+
Keyboard behavior
|
|
921
|
+
Motion conventions
|
|
922
|
+
```
|
|
923
|
+
|
|
924
|
+
.
|
|
925
|
+
|
|
926
|
+
# 115. PLATFORM ADAPTATION
|
|
927
|
+
|
|
928
|
+
A component may share design tokens while changing implementation across
|
|
929
|
+
platforms.
|
|
930
|
+
|
|
931
|
+
# 116. IOS / ANDROID DIFFERENCE
|
|
932
|
+
|
|
933
|
+
Do not force identical behavior merely to maintain visual consistency.
|
|
934
|
+
|
|
935
|
+
# 117. IPAD
|
|
936
|
+
|
|
937
|
+
Larger screens may support:
|
|
938
|
+
|
|
939
|
+
```text
|
|
940
|
+
Split views
|
|
941
|
+
Sidebars
|
|
942
|
+
Multi-column layouts
|
|
943
|
+
Popover-style interactions
|
|
944
|
+
Persistent navigation
|
|
945
|
+
```
|
|
946
|
+
|
|
947
|
+
where appropriate.
|
|
948
|
+
|
|
949
|
+
# 118. COMPACT VS REGULAR
|
|
950
|
+
|
|
951
|
+
Components should adapt to available width rather than merely scaling.
|
|
952
|
+
|
|
953
|
+
# 119. SAFE AREAS
|
|
954
|
+
|
|
955
|
+
Content should respect system areas:
|
|
956
|
+
|
|
957
|
+
```text
|
|
958
|
+
Status region
|
|
959
|
+
Home indicator region
|
|
960
|
+
Camera/sensor areas
|
|
961
|
+
```
|
|
962
|
+
|
|
963
|
+
where applicable.
|
|
964
|
+
|
|
965
|
+
# 120. KEYBOARD
|
|
966
|
+
|
|
967
|
+
Input components must respond intelligently when the keyboard appears.
|
|
968
|
+
|
|
969
|
+
# 121. FOCUS
|
|
970
|
+
|
|
971
|
+
Keyboard and accessibility focus should remain predictable during transitions.
|
|
972
|
+
|
|
973
|
+
# 122. SCROLL + INPUT
|
|
974
|
+
|
|
975
|
+
Avoid layouts where the keyboard covers the active input.
|
|
976
|
+
|
|
977
|
+
# 123. COMPONENT MOTION
|
|
978
|
+
|
|
979
|
+
Motion should reinforce:
|
|
980
|
+
|
|
981
|
+
```text
|
|
982
|
+
Hierarchy
|
|
983
|
+
Cause and effect
|
|
984
|
+
Continuity
|
|
985
|
+
State changes
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
rather than decorate every interaction.
|
|
989
|
+
|
|
990
|
+
# 124. PRESSED FEEDBACK
|
|
991
|
+
|
|
992
|
+
Interactive controls should provide immediate feedback.
|
|
993
|
+
|
|
994
|
+
# 125. HAPTICS
|
|
995
|
+
|
|
996
|
+
Use haptics selectively for meaningful interactions.
|
|
997
|
+
|
|
998
|
+
Do not vibrate on every tap.
|
|
999
|
+
|
|
1000
|
+
# 126. GESTURE ALTERNATIVES
|
|
1001
|
+
|
|
1002
|
+
Critical actions hidden behind gestures should have visible alternatives.
|
|
1003
|
+
|
|
1004
|
+
# 127. TOUCH TARGETS
|
|
1005
|
+
|
|
1006
|
+
Visible controls may be visually small while maintaining an adequately sized
|
|
1007
|
+
interactive area.
|
|
1008
|
+
|
|
1009
|
+
# 128. HIT SLOP
|
|
1010
|
+
|
|
1011
|
+
When technically appropriate, interactive regions may extend beyond the visible
|
|
1012
|
+
icon while preserving logical separation.
|
|
1013
|
+
|
|
1014
|
+
# 129. OVERLAPPING TARGETS
|
|
1015
|
+
|
|
1016
|
+
Do not enlarge hit areas so much that neighboring controls become ambiguous.
|
|
1017
|
+
|
|
1018
|
+
# 130. COMPONENT FEEDBACK
|
|
1019
|
+
|
|
1020
|
+
Every important interaction should produce understandable feedback:
|
|
1021
|
+
|
|
1022
|
+
```text
|
|
1023
|
+
Pressed
|
|
1024
|
+
Changed
|
|
1025
|
+
Saved
|
|
1026
|
+
Failed
|
|
1027
|
+
Selected
|
|
1028
|
+
Deleted
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
when appropriate.
|
|
1032
|
+
|
|
1033
|
+
# 131. COMPONENT ERROR BOUNDARIES
|
|
1034
|
+
|
|
1035
|
+
Complex component trees should fail gracefully rather than taking down the
|
|
1036
|
+
entire screen.
|
|
1037
|
+
|
|
1038
|
+
# 132. FALLBACK UI
|
|
1039
|
+
|
|
1040
|
+
A component that cannot render optional content should have a meaningful
|
|
1041
|
+
fallback.
|
|
1042
|
+
|
|
1043
|
+
# 133. IMAGE COMPONENT
|
|
1044
|
+
|
|
1045
|
+
Image components should account for:
|
|
1046
|
+
|
|
1047
|
+
```text
|
|
1048
|
+
Loading
|
|
1049
|
+
Success
|
|
1050
|
+
Missing
|
|
1051
|
+
Failure
|
|
1052
|
+
Different aspect ratios
|
|
1053
|
+
Accessibility description
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
.
|
|
1057
|
+
|
|
1058
|
+
# 134. MEDIA COMPONENT
|
|
1059
|
+
|
|
1060
|
+
Media controls should prioritize:
|
|
1061
|
+
|
|
1062
|
+
```text
|
|
1063
|
+
Play/pause
|
|
1064
|
+
Progress
|
|
1065
|
+
Current state
|
|
1066
|
+
Primary navigation
|
|
1067
|
+
```
|
|
1068
|
+
|
|
1069
|
+
over secondary controls.
|
|
1070
|
+
|
|
1071
|
+
# 135. FILE COMPONENT
|
|
1072
|
+
|
|
1073
|
+
File rows should communicate:
|
|
1074
|
+
|
|
1075
|
+
```text
|
|
1076
|
+
Name
|
|
1077
|
+
Type
|
|
1078
|
+
Relevant metadata
|
|
1079
|
+
Availability
|
|
1080
|
+
Primary action
|
|
1081
|
+
```
|
|
1082
|
+
|
|
1083
|
+
without overwhelming the user.
|
|
1084
|
+
|
|
1085
|
+
# 136. DOCUMENT COMPONENT
|
|
1086
|
+
|
|
1087
|
+
Document interfaces should prioritize content over decorative chrome.
|
|
1088
|
+
|
|
1089
|
+
# 137. DATA-DENSE COMPONENTS
|
|
1090
|
+
|
|
1091
|
+
For developer and productivity applications, information density can be higher
|
|
1092
|
+
than consumer apps.
|
|
1093
|
+
|
|
1094
|
+
However:
|
|
1095
|
+
|
|
1096
|
+
```text
|
|
1097
|
+
Density ≠ clutter
|
|
1098
|
+
```
|
|
1099
|
+
|
|
1100
|
+
# 138. PREMIUM COMPONENT PRINCIPLE
|
|
1101
|
+
|
|
1102
|
+
Premium UI usually comes from:
|
|
1103
|
+
|
|
1104
|
+
```text
|
|
1105
|
+
Precision
|
|
1106
|
+
Consistency
|
|
1107
|
+
Hierarchy
|
|
1108
|
+
Spacing
|
|
1109
|
+
Motion
|
|
1110
|
+
Restraint
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
rather than visual complexity.
|
|
1114
|
+
|
|
1115
|
+
# 139. COMPONENT ANTI-PATTERNS
|
|
1116
|
+
|
|
1117
|
+
Avoid:
|
|
1118
|
+
|
|
1119
|
+
```text
|
|
1120
|
+
Everything is a card
|
|
1121
|
+
Everything is rounded
|
|
1122
|
+
Every action has an icon
|
|
1123
|
+
Every action is colorful
|
|
1124
|
+
Too many shadows
|
|
1125
|
+
Too many badges
|
|
1126
|
+
Too many modals
|
|
1127
|
+
Too many variants
|
|
1128
|
+
Huge component APIs
|
|
1129
|
+
Inconsistent controls
|
|
1130
|
+
Custom behavior that contradicts iOS conventions
|
|
1131
|
+
```
|
|
1132
|
+
|
|
1133
|
+
.
|
|
1134
|
+
|
|
1135
|
+
# 140. COMPONENT REVIEW
|
|
1136
|
+
|
|
1137
|
+
For every component ask:
|
|
1138
|
+
|
|
1139
|
+
```text
|
|
1140
|
+
Is this the right component?
|
|
1141
|
+
Is the hierarchy clear?
|
|
1142
|
+
Is the interaction obvious?
|
|
1143
|
+
Is it accessible?
|
|
1144
|
+
Does it behave like users expect?
|
|
1145
|
+
Does it adapt to different sizes?
|
|
1146
|
+
Does it handle failure?
|
|
1147
|
+
Does it perform efficiently?
|
|
1148
|
+
Does it belong in the design system?
|
|
1149
|
+
```
|
|
1150
|
+
|
|
1151
|
+
# 141. COMPONENT INVENTORY
|
|
1152
|
+
|
|
1153
|
+
Before creating new components, inspect the project.
|
|
1154
|
+
|
|
1155
|
+
Create an inventory:
|
|
1156
|
+
|
|
1157
|
+
```text
|
|
1158
|
+
Existing component
|
|
1159
|
+
Equivalent component
|
|
1160
|
+
Missing component
|
|
1161
|
+
Duplicate component
|
|
1162
|
+
Broken component
|
|
1163
|
+
```
|
|
1164
|
+
|
|
1165
|
+
Reuse or improve existing components before creating duplicates.
|
|
1166
|
+
|
|
1167
|
+
# 142. COMPONENT CONSOLIDATION
|
|
1168
|
+
|
|
1169
|
+
If multiple components solve the same problem:
|
|
1170
|
+
|
|
1171
|
+
```text
|
|
1172
|
+
Component A
|
|
1173
|
+
Component B
|
|
1174
|
+
Component C
|
|
1175
|
+
↓
|
|
1176
|
+
Shared primitive
|
|
1177
|
+
↓
|
|
1178
|
+
Explicit variants
|
|
1179
|
+
```
|
|
1180
|
+
|
|
1181
|
+
when their semantics genuinely overlap.
|
|
1182
|
+
|
|
1183
|
+
# 143. COMPONENT NAMING
|
|
1184
|
+
|
|
1185
|
+
Names should communicate intent.
|
|
1186
|
+
|
|
1187
|
+
Prefer:
|
|
1188
|
+
|
|
1189
|
+
```text
|
|
1190
|
+
PrimaryButton
|
|
1191
|
+
MediaRow
|
|
1192
|
+
FileRow
|
|
1193
|
+
SearchField
|
|
1194
|
+
SettingsRow
|
|
1195
|
+
```
|
|
1196
|
+
|
|
1197
|
+
over:
|
|
1198
|
+
|
|
1199
|
+
```text
|
|
1200
|
+
BlueButton
|
|
1201
|
+
BigRow
|
|
1202
|
+
FancyCard
|
|
1203
|
+
Thing
|
|
1204
|
+
```
|
|
1205
|
+
|
|
1206
|
+
.
|
|
1207
|
+
|
|
1208
|
+
# 144. COMPONENT STRUCTURE
|
|
1209
|
+
|
|
1210
|
+
A component should make its hierarchy understandable from its implementation.
|
|
1211
|
+
|
|
1212
|
+
# 145. COMPONENT DOCUMENTATION
|
|
1213
|
+
|
|
1214
|
+
Reusable components should document:
|
|
1215
|
+
|
|
1216
|
+
```text
|
|
1217
|
+
Purpose
|
|
1218
|
+
Props
|
|
1219
|
+
Variants
|
|
1220
|
+
States
|
|
1221
|
+
Accessibility
|
|
1222
|
+
Usage
|
|
1223
|
+
Restrictions
|
|
1224
|
+
```
|
|
1225
|
+
|
|
1226
|
+
.
|
|
1227
|
+
|
|
1228
|
+
# 146. COMPONENT DESIGN TOKEN USAGE
|
|
1229
|
+
|
|
1230
|
+
Do not introduce arbitrary spacing, colors, radii, or typography values without
|
|
1231
|
+
a reason.
|
|
1232
|
+
|
|
1233
|
+
# 147. CONSISTENCY
|
|
1234
|
+
|
|
1235
|
+
Two controls performing the same role should behave similarly unless platform
|
|
1236
|
+
or context requires a difference.
|
|
1237
|
+
|
|
1238
|
+
# 148. CONTEXTUAL CONSISTENCY
|
|
1239
|
+
|
|
1240
|
+
Consistency should preserve meaning.
|
|
1241
|
+
|
|
1242
|
+
Do not make unrelated things identical simply for visual uniformity.
|
|
1243
|
+
|
|
1244
|
+
# 149. COMPONENT DECISION TREE
|
|
1245
|
+
|
|
1246
|
+
When designing a new interaction:
|
|
1247
|
+
|
|
1248
|
+
```text
|
|
1249
|
+
Does a native component solve it?
|
|
1250
|
+
│
|
|
1251
|
+
YES
|
|
1252
|
+
↓
|
|
1253
|
+
Use/adapt it.
|
|
1254
|
+
|
|
1255
|
+
NO
|
|
1256
|
+
↓
|
|
1257
|
+
Does an existing project component solve it?
|
|
1258
|
+
│
|
|
1259
|
+
YES
|
|
1260
|
+
↓
|
|
1261
|
+
Reuse/extend it.
|
|
1262
|
+
|
|
1263
|
+
NO
|
|
1264
|
+
↓
|
|
1265
|
+
Can a simple primitive solve it?
|
|
1266
|
+
│
|
|
1267
|
+
YES
|
|
1268
|
+
↓
|
|
1269
|
+
Compose primitives.
|
|
1270
|
+
|
|
1271
|
+
NO
|
|
1272
|
+
↓
|
|
1273
|
+
Create a custom component.
|
|
1274
|
+
```
|
|
1275
|
+
|
|
1276
|
+
Then add it to the design system only if it has reusable value.
|
|
1277
|
+
|
|
1278
|
+
# 150. AGENT COMPONENT WORKFLOW
|
|
1279
|
+
|
|
1280
|
+
The agent should follow:
|
|
1281
|
+
|
|
1282
|
+
```text
|
|
1283
|
+
1. Understand the interaction
|
|
1284
|
+
2. Search existing component inventory
|
|
1285
|
+
3. Identify native equivalent
|
|
1286
|
+
4. Select appropriate pattern
|
|
1287
|
+
5. Determine states
|
|
1288
|
+
6. Determine accessibility
|
|
1289
|
+
7. Determine responsive behavior
|
|
1290
|
+
8. Implement
|
|
1291
|
+
9. Test interaction
|
|
1292
|
+
10. Audit visual consistency
|
|
1293
|
+
11. Add to component system if reusable
|
|
1294
|
+
```
|
|
1295
|
+
|
|
1296
|
+
.
|
|
1297
|
+
|
|
1298
|
+
# 151. COMPONENT QUALITY GATE
|
|
1299
|
+
|
|
1300
|
+
Before accepting a new component:
|
|
1301
|
+
|
|
1302
|
+
```text
|
|
1303
|
+
[ ] Clear purpose
|
|
1304
|
+
[ ] Appropriate platform pattern
|
|
1305
|
+
[ ] Existing components checked
|
|
1306
|
+
[ ] Variants are intentional
|
|
1307
|
+
[ ] States defined
|
|
1308
|
+
[ ] Accessibility defined
|
|
1309
|
+
[ ] Touch targets valid
|
|
1310
|
+
[ ] Keyboard behavior considered
|
|
1311
|
+
[ ] Dark mode works
|
|
1312
|
+
[ ] Dynamic text works
|
|
1313
|
+
[ ] Responsive behavior works
|
|
1314
|
+
[ ] Performance acceptable
|
|
1315
|
+
[ ] Error behavior considered
|
|
1316
|
+
[ ] No unnecessary dependency
|
|
1317
|
+
[ ] Naming is semantic
|
|
1318
|
+
[ ] API is maintainable
|
|
1319
|
+
```
|
|
1320
|
+
|
|
1321
|
+
---
|
|
1322
|
+
|
|
1323
|
+
# 152. FINAL PRINCIPLE
|
|
1324
|
+
|
|
1325
|
+
A premium application should not feel like:
|
|
1326
|
+
|
|
1327
|
+
```text
|
|
1328
|
+
50 independently designed components.
|
|
1329
|
+
```
|
|
1330
|
+
|
|
1331
|
+
It should feel like:
|
|
1332
|
+
|
|
1333
|
+
```text
|
|
1334
|
+
One coherent system
|
|
1335
|
+
built from reusable parts.
|
|
1336
|
+
```
|
|
1337
|
+
|
|
1338
|
+
The agent's job is therefore not merely to **create components**.
|
|
1339
|
+
|
|
1340
|
+
It is to create the **right component, in the right context, with the right
|
|
1341
|
+
behavior, states, accessibility, and platform conventions**.
|
|
1342
|
+
|
|
1343
|
+
That is what turns a collection of screens into a real product design system.
|