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,764 @@
|
|
|
1
|
+
## File 73 — Visual Design Systems, Theming, Tokens & Brand Intelligence
|
|
2
|
+
|
|
3
|
+
File 72 taught the agent how to make interfaces **fast, responsive, and efficient**.
|
|
4
|
+
|
|
5
|
+
File 73 establishes the **visual language** that makes an application feel coherent, intentional, recognizable, and scalable.
|
|
6
|
+
|
|
7
|
+
> **A design system is not a color palette. It is the visual and behavioral grammar of the product.**
|
|
8
|
+
|
|
9
|
+
The agent should treat visual design as a **system of relationships**, not isolated styling decisions.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 1. Visual system architecture
|
|
14
|
+
|
|
15
|
+
The agent should reason through:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
BRAND
|
|
19
|
+
↓
|
|
20
|
+
DESIGN PRINCIPLES
|
|
21
|
+
↓
|
|
22
|
+
TOKENS
|
|
23
|
+
↓
|
|
24
|
+
FOUNDATIONS
|
|
25
|
+
↓
|
|
26
|
+
COMPONENTS
|
|
27
|
+
↓
|
|
28
|
+
PATTERNS
|
|
29
|
+
↓
|
|
30
|
+
SCREENS
|
|
31
|
+
↓
|
|
32
|
+
PRODUCT EXPERIENCE
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
A screen should inherit the system rather than inventing its own visual rules.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# 2. Design principles
|
|
40
|
+
|
|
41
|
+
Before defining visual details, establish principles.
|
|
42
|
+
|
|
43
|
+
Examples:
|
|
44
|
+
|
|
45
|
+
```text id="d6v2m8"
|
|
46
|
+
Minimal
|
|
47
|
+
Expressive
|
|
48
|
+
Premium
|
|
49
|
+
Technical
|
|
50
|
+
Friendly
|
|
51
|
+
Dense
|
|
52
|
+
Calm
|
|
53
|
+
Futuristic
|
|
54
|
+
Editorial
|
|
55
|
+
Playful
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
These principles influence later decisions.
|
|
59
|
+
|
|
60
|
+
For example:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
Premium
|
|
64
|
+
→ restrained color
|
|
65
|
+
→ strong typography
|
|
66
|
+
→ deliberate spacing
|
|
67
|
+
→ subtle motion
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
# 3. Design tokens
|
|
73
|
+
|
|
74
|
+
Tokens should centralize reusable decisions.
|
|
75
|
+
|
|
76
|
+
Typical categories:
|
|
77
|
+
|
|
78
|
+
```text id="p4x8n3"
|
|
79
|
+
Color
|
|
80
|
+
Typography
|
|
81
|
+
Spacing
|
|
82
|
+
Radius
|
|
83
|
+
Elevation
|
|
84
|
+
Border
|
|
85
|
+
Opacity
|
|
86
|
+
Motion
|
|
87
|
+
Sizing
|
|
88
|
+
Z-index
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Example conceptual structure:
|
|
92
|
+
|
|
93
|
+
```text
|
|
94
|
+
color.background.primary
|
|
95
|
+
color.surface.primary
|
|
96
|
+
color.text.primary
|
|
97
|
+
color.text.secondary
|
|
98
|
+
color.border.default
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The agent should avoid scattering raw values throughout the codebase.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
# 4. Semantic tokens
|
|
106
|
+
|
|
107
|
+
Prefer meaning over implementation.
|
|
108
|
+
|
|
109
|
+
Instead of:
|
|
110
|
+
|
|
111
|
+
```text id="r7m3q9"
|
|
112
|
+
blue500
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
prefer:
|
|
116
|
+
|
|
117
|
+
```text id="x8c2n5"
|
|
118
|
+
color.action.primary
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
This allows the underlying visual value to change without rewriting component logic.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
# 5. Color architecture
|
|
126
|
+
|
|
127
|
+
Define a color system containing:
|
|
128
|
+
|
|
129
|
+
```text id="k5q8m2"
|
|
130
|
+
Backgrounds
|
|
131
|
+
Surfaces
|
|
132
|
+
Text
|
|
133
|
+
Borders
|
|
134
|
+
Primary actions
|
|
135
|
+
Secondary actions
|
|
136
|
+
Success
|
|
137
|
+
Warning
|
|
138
|
+
Error
|
|
139
|
+
Info
|
|
140
|
+
Disabled
|
|
141
|
+
Focus
|
|
142
|
+
Selection
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Every important semantic state should have a defined visual representation.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
# 6. Color hierarchy
|
|
150
|
+
|
|
151
|
+
Avoid using strong colors everywhere.
|
|
152
|
+
|
|
153
|
+
Establish:
|
|
154
|
+
|
|
155
|
+
```text id="v4m9p7"
|
|
156
|
+
Primary
|
|
157
|
+
Secondary
|
|
158
|
+
Tertiary
|
|
159
|
+
Muted
|
|
160
|
+
Disabled
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Visual emphasis should correspond to importance.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
# 7. Dark themes
|
|
168
|
+
|
|
169
|
+
Dark mode should not simply invert colors.
|
|
170
|
+
|
|
171
|
+
Consider:
|
|
172
|
+
|
|
173
|
+
```text id="n3x7c2"
|
|
174
|
+
Surface hierarchy
|
|
175
|
+
Text contrast
|
|
176
|
+
Borders
|
|
177
|
+
Elevation
|
|
178
|
+
Shadows
|
|
179
|
+
Images
|
|
180
|
+
Brand colors
|
|
181
|
+
Focus states
|
|
182
|
+
Disabled states
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Dark interfaces often need carefully tuned surface relationships.
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
# 8. Light themes
|
|
190
|
+
|
|
191
|
+
Light mode similarly requires:
|
|
192
|
+
|
|
193
|
+
```text id="m8q4r1"
|
|
194
|
+
Surface hierarchy
|
|
195
|
+
Contrast
|
|
196
|
+
Borders
|
|
197
|
+
Elevation
|
|
198
|
+
State colors
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
A theme should remain coherent across both modes.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
# 9. Multiple themes
|
|
206
|
+
|
|
207
|
+
If the product supports multiple themes:
|
|
208
|
+
|
|
209
|
+
```text id="p7v2x8"
|
|
210
|
+
Theme
|
|
211
|
+
↓
|
|
212
|
+
Semantic tokens
|
|
213
|
+
↓
|
|
214
|
+
Components
|
|
215
|
+
↓
|
|
216
|
+
Screens
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Components should not need separate implementations for every theme.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
# 10. Typography system
|
|
224
|
+
|
|
225
|
+
Define:
|
|
226
|
+
|
|
227
|
+
```text id="c4n9m6"
|
|
228
|
+
Display
|
|
229
|
+
Heading
|
|
230
|
+
Subheading
|
|
231
|
+
Body
|
|
232
|
+
Label
|
|
233
|
+
Caption
|
|
234
|
+
Metadata
|
|
235
|
+
Code
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Each should have:
|
|
239
|
+
|
|
240
|
+
```text
|
|
241
|
+
Family
|
|
242
|
+
Size
|
|
243
|
+
Weight
|
|
244
|
+
Line height
|
|
245
|
+
Letter spacing
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
The system should establish hierarchy rather than arbitrary font sizes.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
# 11. Typography hierarchy
|
|
253
|
+
|
|
254
|
+
A useful hierarchy communicates:
|
|
255
|
+
|
|
256
|
+
```text id="x5m8q3"
|
|
257
|
+
What is this?
|
|
258
|
+
↓
|
|
259
|
+
What matters?
|
|
260
|
+
↓
|
|
261
|
+
What supports it?
|
|
262
|
+
↓
|
|
263
|
+
What is metadata?
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
Typography should reinforce information architecture.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
# 12. Font selection
|
|
271
|
+
|
|
272
|
+
Choose fonts based on:
|
|
273
|
+
|
|
274
|
+
```text id="r2v7n4"
|
|
275
|
+
Readability
|
|
276
|
+
Brand
|
|
277
|
+
Platform
|
|
278
|
+
Language support
|
|
279
|
+
Performance
|
|
280
|
+
Weight availability
|
|
281
|
+
Licensing
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
Avoid loading unnecessary font variants.
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
# 13. Spacing system
|
|
289
|
+
|
|
290
|
+
Create a consistent spacing scale.
|
|
291
|
+
|
|
292
|
+
Conceptually:
|
|
293
|
+
|
|
294
|
+
```text id="m9q3x6"
|
|
295
|
+
XS
|
|
296
|
+
SM
|
|
297
|
+
MD
|
|
298
|
+
LG
|
|
299
|
+
XL
|
|
300
|
+
2XL
|
|
301
|
+
3XL
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
The exact values depend on the product.
|
|
305
|
+
|
|
306
|
+
Consistency matters more than blindly following a particular scale.
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
# 14. Layout rhythm
|
|
311
|
+
|
|
312
|
+
Spacing should communicate relationships.
|
|
313
|
+
|
|
314
|
+
For example:
|
|
315
|
+
|
|
316
|
+
```text id="k8p4r2"
|
|
317
|
+
Related elements
|
|
318
|
+
→ smaller gap
|
|
319
|
+
|
|
320
|
+
Different groups
|
|
321
|
+
→ larger gap
|
|
322
|
+
|
|
323
|
+
Major sections
|
|
324
|
+
→ largest gap
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
Whitespace is structural information.
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
# 15. Border system
|
|
332
|
+
|
|
333
|
+
Define:
|
|
334
|
+
|
|
335
|
+
```text id="v3m7q9"
|
|
336
|
+
Default
|
|
337
|
+
Subtle
|
|
338
|
+
Strong
|
|
339
|
+
Focus
|
|
340
|
+
Error
|
|
341
|
+
Selected
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
Don't invent border colors independently for every component.
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
# 16. Radius system
|
|
349
|
+
|
|
350
|
+
Define a coherent radius language:
|
|
351
|
+
|
|
352
|
+
```text id="x6n2p5"
|
|
353
|
+
None
|
|
354
|
+
Small
|
|
355
|
+
Medium
|
|
356
|
+
Large
|
|
357
|
+
Pill
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
Radius should reflect the product's personality.
|
|
361
|
+
|
|
362
|
+
Examples:
|
|
363
|
+
|
|
364
|
+
```text
|
|
365
|
+
Technical
|
|
366
|
+
→ tighter geometry
|
|
367
|
+
|
|
368
|
+
Friendly
|
|
369
|
+
→ softer rounding
|
|
370
|
+
|
|
371
|
+
Premium
|
|
372
|
+
→ restrained rounding
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
# 17. Elevation
|
|
378
|
+
|
|
379
|
+
Elevation can communicate hierarchy.
|
|
380
|
+
|
|
381
|
+
Use:
|
|
382
|
+
|
|
383
|
+
```text id="c7q4m8"
|
|
384
|
+
Flat
|
|
385
|
+
Raised
|
|
386
|
+
Floating
|
|
387
|
+
Overlay
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Don't use shadows everywhere.
|
|
391
|
+
|
|
392
|
+
Elevation should indicate meaningful spatial relationships.
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
# 18. Iconography
|
|
397
|
+
|
|
398
|
+
Establish:
|
|
399
|
+
|
|
400
|
+
```text id="r5x9n3"
|
|
401
|
+
Icon family
|
|
402
|
+
Stroke weight
|
|
403
|
+
Size scale
|
|
404
|
+
Alignment
|
|
405
|
+
Corner style
|
|
406
|
+
Filled vs outline
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
Mixing unrelated icon styles makes interfaces feel inconsistent.
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
# 19. Component visual states
|
|
414
|
+
|
|
415
|
+
Every component should consider:
|
|
416
|
+
|
|
417
|
+
```text id="m2v8p4"
|
|
418
|
+
Default
|
|
419
|
+
Hover
|
|
420
|
+
Pressed
|
|
421
|
+
Focused
|
|
422
|
+
Selected
|
|
423
|
+
Disabled
|
|
424
|
+
Loading
|
|
425
|
+
Success
|
|
426
|
+
Warning
|
|
427
|
+
Error
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Not every component needs every state, but important states must be defined.
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
# 20. Visual hierarchy
|
|
435
|
+
|
|
436
|
+
For every screen, identify:
|
|
437
|
+
|
|
438
|
+
```text id="n8q3x6"
|
|
439
|
+
Primary focus
|
|
440
|
+
Secondary focus
|
|
441
|
+
Supporting content
|
|
442
|
+
Background information
|
|
443
|
+
Actions
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
The agent should prevent visual competition between unrelated elements.
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
# 21. Surface hierarchy
|
|
451
|
+
|
|
452
|
+
Especially in complex interfaces:
|
|
453
|
+
|
|
454
|
+
```text id="k4m7r2"
|
|
455
|
+
Background
|
|
456
|
+
↓
|
|
457
|
+
Surface
|
|
458
|
+
↓
|
|
459
|
+
Elevated surface
|
|
460
|
+
↓
|
|
461
|
+
Overlay
|
|
462
|
+
↓
|
|
463
|
+
Modal
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
Each level should be distinguishable without excessive contrast.
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
# 22. Brand integration
|
|
471
|
+
|
|
472
|
+
Brand should appear through:
|
|
473
|
+
|
|
474
|
+
```text id="p6x3m9"
|
|
475
|
+
Color
|
|
476
|
+
Typography
|
|
477
|
+
Shape
|
|
478
|
+
Imagery
|
|
479
|
+
Motion
|
|
480
|
+
Iconography
|
|
481
|
+
Tone
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
Avoid forcing logos or brand colors into every corner of the interface.
|
|
485
|
+
|
|
486
|
+
Good branding can be subtle.
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
# 23. Visual identity vs usability
|
|
491
|
+
|
|
492
|
+
The agent should protect usability when brand decisions conflict with functionality.
|
|
493
|
+
|
|
494
|
+
For example:
|
|
495
|
+
|
|
496
|
+
```text id="c8n5q2"
|
|
497
|
+
Brand color
|
|
498
|
+
↓
|
|
499
|
+
Insufficient contrast
|
|
500
|
+
↓
|
|
501
|
+
Adjust semantic variant
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
Don't sacrifice accessibility merely to preserve a particular color.
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
# 24. Theming architecture
|
|
509
|
+
|
|
510
|
+
Use:
|
|
511
|
+
|
|
512
|
+
```text id="v7m2x4"
|
|
513
|
+
Base tokens
|
|
514
|
+
↓
|
|
515
|
+
Semantic tokens
|
|
516
|
+
↓
|
|
517
|
+
Theme values
|
|
518
|
+
↓
|
|
519
|
+
Components
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
This makes themes easier to maintain.
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
# 25. Component tokens
|
|
527
|
+
|
|
528
|
+
Components can have specialized tokens:
|
|
529
|
+
|
|
530
|
+
```text id="m4q8p1"
|
|
531
|
+
button.height
|
|
532
|
+
button.radius
|
|
533
|
+
button.padding
|
|
534
|
+
button.primary.background
|
|
535
|
+
button.primary.text
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
This keeps component behavior consistent.
|
|
539
|
+
|
|
540
|
+
---
|
|
541
|
+
|
|
542
|
+
# 26. Avoid token explosion
|
|
543
|
+
|
|
544
|
+
Don't create a token for every individual visual value.
|
|
545
|
+
|
|
546
|
+
Bad:
|
|
547
|
+
|
|
548
|
+
```text id="x9c3m7"
|
|
549
|
+
buttonCardHeaderTopLeftBorderRadius42
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
Better:
|
|
553
|
+
|
|
554
|
+
```text id="p5n8q2"
|
|
555
|
+
radius.large
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
Tokens should represent meaningful design decisions.
|
|
559
|
+
|
|
560
|
+
---
|
|
561
|
+
|
|
562
|
+
# 27. Visual consistency
|
|
563
|
+
|
|
564
|
+
The agent should detect:
|
|
565
|
+
|
|
566
|
+
```text id="r8m3v6"
|
|
567
|
+
Similar buttons with different heights
|
|
568
|
+
Different radii for equivalent controls
|
|
569
|
+
Inconsistent spacing
|
|
570
|
+
Random text sizes
|
|
571
|
+
Different icon weights
|
|
572
|
+
Unrelated shadows
|
|
573
|
+
Different state colors
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
Repeated patterns should look related.
|
|
577
|
+
|
|
578
|
+
---
|
|
579
|
+
|
|
580
|
+
# 28. Controlled variation
|
|
581
|
+
|
|
582
|
+
Consistency doesn't mean everything must look identical.
|
|
583
|
+
|
|
584
|
+
Variation is useful for:
|
|
585
|
+
|
|
586
|
+
```text id="k2x7n4"
|
|
587
|
+
Hierarchy
|
|
588
|
+
Emphasis
|
|
589
|
+
Context
|
|
590
|
+
Brand expression
|
|
591
|
+
Interaction priority
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
The agent should distinguish:
|
|
595
|
+
|
|
596
|
+
```text
|
|
597
|
+
Intentional variation
|
|
598
|
+
vs
|
|
599
|
+
Accidental inconsistency
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
---
|
|
603
|
+
|
|
604
|
+
# 29. Design-system maturity
|
|
605
|
+
|
|
606
|
+
A system can evolve:
|
|
607
|
+
|
|
608
|
+
```text id="v6q4m8"
|
|
609
|
+
Stage 1
|
|
610
|
+
Ad hoc styles
|
|
611
|
+
|
|
612
|
+
Stage 2
|
|
613
|
+
Reusable components
|
|
614
|
+
|
|
615
|
+
Stage 3
|
|
616
|
+
Design tokens
|
|
617
|
+
|
|
618
|
+
Stage 4
|
|
619
|
+
Semantic system
|
|
620
|
+
|
|
621
|
+
Stage 5
|
|
622
|
+
Cross-platform system
|
|
623
|
+
|
|
624
|
+
Stage 6
|
|
625
|
+
Governed design language
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
The agent should move the product toward greater consistency without creating unnecessary abstraction.
|
|
629
|
+
|
|
630
|
+
---
|
|
631
|
+
|
|
632
|
+
# 30. Visual regression
|
|
633
|
+
|
|
634
|
+
After visual-system changes, verify:
|
|
635
|
+
|
|
636
|
+
```text id="x4m9p2"
|
|
637
|
+
Typography
|
|
638
|
+
Spacing
|
|
639
|
+
Colors
|
|
640
|
+
Components
|
|
641
|
+
Dark mode
|
|
642
|
+
Light mode
|
|
643
|
+
Responsive layouts
|
|
644
|
+
Accessibility
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
A token change can affect hundreds of screens.
|
|
648
|
+
|
|
649
|
+
---
|
|
650
|
+
|
|
651
|
+
# 31. Design-system documentation
|
|
652
|
+
|
|
653
|
+
Document:
|
|
654
|
+
|
|
655
|
+
```text id="n7p3r5"
|
|
656
|
+
Token
|
|
657
|
+
Purpose
|
|
658
|
+
Allowed values
|
|
659
|
+
Usage
|
|
660
|
+
Do not use when
|
|
661
|
+
Examples
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
This allows both humans and coding agents to use the system correctly.
|
|
665
|
+
|
|
666
|
+
---
|
|
667
|
+
|
|
668
|
+
# 32. Design-system anti-patterns
|
|
669
|
+
|
|
670
|
+
Detect:
|
|
671
|
+
|
|
672
|
+
```text id="c5m8x2"
|
|
673
|
+
Raw colors everywhere
|
|
674
|
+
Random spacing
|
|
675
|
+
Component-specific one-off styles
|
|
676
|
+
Too many tokens
|
|
677
|
+
Unsemantic tokens
|
|
678
|
+
Inconsistent typography
|
|
679
|
+
Mixed icon families
|
|
680
|
+
Shadow overload
|
|
681
|
+
Radius inconsistency
|
|
682
|
+
Theme-specific hacks
|
|
683
|
+
Brand overuse
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
---
|
|
687
|
+
|
|
688
|
+
# 33. Visual-system audit
|
|
689
|
+
|
|
690
|
+
```text id="q8m4n7"
|
|
691
|
+
□ Color system exists
|
|
692
|
+
□ Semantic colors exist
|
|
693
|
+
□ Typography hierarchy exists
|
|
694
|
+
□ Spacing scale exists
|
|
695
|
+
□ Radius system exists
|
|
696
|
+
□ Border system exists
|
|
697
|
+
□ Elevation system exists
|
|
698
|
+
□ Iconography is consistent
|
|
699
|
+
□ Component states are defined
|
|
700
|
+
□ Themes use shared semantics
|
|
701
|
+
□ Accessibility survives themes
|
|
702
|
+
□ Brand is recognizable
|
|
703
|
+
□ Raw values are minimized
|
|
704
|
+
□ Variations are intentional
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
---
|
|
708
|
+
|
|
709
|
+
# 34. Visual design workflow
|
|
710
|
+
|
|
711
|
+
```text id="p3x8m5"
|
|
712
|
+
DEFINE BRAND
|
|
713
|
+
↓
|
|
714
|
+
DEFINE DESIGN PRINCIPLES
|
|
715
|
+
↓
|
|
716
|
+
DEFINE FOUNDATIONS
|
|
717
|
+
↓
|
|
718
|
+
DEFINE TOKENS
|
|
719
|
+
↓
|
|
720
|
+
DEFINE COMPONENT STATES
|
|
721
|
+
↓
|
|
722
|
+
DEFINE THEMES
|
|
723
|
+
↓
|
|
724
|
+
COMPOSE SCREENS
|
|
725
|
+
↓
|
|
726
|
+
AUDIT CONSISTENCY
|
|
727
|
+
↓
|
|
728
|
+
TEST ACCESSIBILITY
|
|
729
|
+
↓
|
|
730
|
+
TEST RESPONSIVENESS
|
|
731
|
+
↓
|
|
732
|
+
DOCUMENT
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
## File 73 operating principle
|
|
738
|
+
|
|
739
|
+
> **Build a visual language once, encode it systematically, and let the entire product inherit it.**
|
|
740
|
+
|
|
741
|
+
The agent should think:
|
|
742
|
+
|
|
743
|
+
```text id="m7q2x9"
|
|
744
|
+
ONE DESIGN LANGUAGE
|
|
745
|
+
↓
|
|
746
|
+
MANY COMPONENTS
|
|
747
|
+
↓
|
|
748
|
+
MANY SCREENS
|
|
749
|
+
↓
|
|
750
|
+
MANY PLATFORMS
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
rather than:
|
|
754
|
+
|
|
755
|
+
```text
|
|
756
|
+
Every screen
|
|
757
|
+
↓
|
|
758
|
+
New visual decisions
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
That distinction is what turns a collection of attractive screens into a **coherent product**.
|
|
762
|
+
|
|
763
|
+
---
|
|
764
|
+
|