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,1351 @@
1
+ # Color, Materials, Contrast, Themes & Visual Depth
2
+
3
+ > Advanced agent module for color systems, semantic colors, contrast,
4
+ > materials, translucency, gradients, surfaces, elevation, dark mode, light
5
+ > mode, dynamic themes, and visual depth across iOS, iPadOS, React Native, and
6
+ > Expo.
7
+
8
+ Version: 1.0
9
+ Platform: iOS / iPadOS / React Native / Expo
10
+ Layer: Advanced visual-system intelligence
11
+
12
+ ---
13
+
14
+ # 1. PURPOSE
15
+
16
+ Color should communicate more than appearance.
17
+
18
+ A mature color system communicates:
19
+
20
+ ```text id="c4m8x2"
21
+ Hierarchy
22
+ State
23
+ Interaction
24
+ Meaning
25
+ Brand
26
+ Depth
27
+ Environment
28
+ Accessibility
29
+ ```
30
+
31
+ The agent must therefore design a **semantic color system**, not a collection
32
+ of arbitrary hex values.
33
+
34
+ ---
35
+
36
+ # 2. CORE PRINCIPLE
37
+
38
+ Do not ask:
39
+
40
+ > "What color should this button be?"
41
+
42
+ Ask:
43
+
44
+ > **"What semantic role does this button represent?"**
45
+
46
+ For example:
47
+
48
+ ```text id="v7p3n5"
49
+ Primary action
50
+ → Primary color
51
+
52
+ Destructive action
53
+ → Destructive color
54
+
55
+ Disabled state
56
+ → Disabled semantic color
57
+ ```
58
+
59
+ ---
60
+
61
+ # 3. COLOR TOKENS
62
+
63
+ Color should be centralized.
64
+
65
+ Example:
66
+
67
+ ```text id="m2x8c4"
68
+ color.background
69
+ color.surface
70
+ color.surfaceElevated
71
+ color.textPrimary
72
+ color.textSecondary
73
+ color.textTertiary
74
+ color.border
75
+ color.primary
76
+ color.success
77
+ color.warning
78
+ color.error
79
+ ```
80
+
81
+ ---
82
+
83
+ # 4. SEMANTIC COLORS
84
+
85
+ Components should consume semantic roles rather than hard-coded colors.
86
+
87
+ Bad:
88
+
89
+ ```text id="p8c3m7"
90
+ background: "#..."
91
+ ```
92
+
93
+ Better:
94
+
95
+ ```text id="q4x7n2"
96
+ background: color.surface
97
+ ```
98
+
99
+ ---
100
+
101
+ # 5. BRAND COLORS
102
+
103
+ Brand colors should be separated from functional system colors.
104
+
105
+ Example:
106
+
107
+ ```text id="x5m8v3"
108
+ Brand
109
+ → Identity
110
+
111
+ Primary
112
+ → Interaction
113
+
114
+ Success
115
+ → System meaning
116
+ ```
117
+
118
+ A brand color should not automatically become the success color.
119
+
120
+ ---
121
+
122
+ # 6. PRIMARY COLOR
123
+
124
+ Primary color usually represents the main interactive emphasis.
125
+
126
+ Use it consistently.
127
+
128
+ ---
129
+
130
+ # 7. SECONDARY COLOR
131
+
132
+ Secondary accents can support hierarchy without competing with the primary
133
+ action.
134
+
135
+ ---
136
+
137
+ # 8. TERTIARY ACCENTS
138
+
139
+ Use tertiary colors selectively.
140
+
141
+ Too many accent colors weaken hierarchy.
142
+
143
+ ---
144
+
145
+ # 9. BACKGROUND COLORS
146
+
147
+ A mature system may have multiple background roles:
148
+
149
+ ```text id="n3c7m5"
150
+ Base background
151
+ Secondary background
152
+ Grouped background
153
+ Elevated background
154
+ ```
155
+
156
+ ---
157
+
158
+ # 10. SURFACE COLORS
159
+
160
+ Surfaces distinguish content from the surrounding environment.
161
+
162
+ Examples:
163
+
164
+ ```text id="x8m2q6"
165
+ Cards
166
+ Panels
167
+ Sheets
168
+ Menus
169
+ Toolbars
170
+ ```
171
+
172
+ ---
173
+
174
+ # 11. SURFACE HIERARCHY
175
+
176
+ Not every surface needs a visibly different color.
177
+
178
+ Hierarchy can also be created through:
179
+
180
+ ```text id="v4p8n3"
181
+ Spacing
182
+ Border
183
+ Shadow
184
+ Blur
185
+ Material
186
+ Contrast
187
+ ```
188
+
189
+ ---
190
+
191
+ # 12. TOO MANY SURFACES
192
+
193
+ Avoid creating dozens of slightly different background colors.
194
+
195
+ This creates visual noise.
196
+
197
+ ---
198
+
199
+ # 13. TEXT COLORS
200
+
201
+ At minimum consider:
202
+
203
+ ```text id="m7c2x5"
204
+ Primary
205
+ Secondary
206
+ Tertiary
207
+ Disabled
208
+ Inverse
209
+ Accent
210
+ ```
211
+
212
+ ---
213
+
214
+ # 14. PRIMARY TEXT
215
+
216
+ Primary text should have the strongest readable contrast against its surface.
217
+
218
+ ---
219
+
220
+ # 15. SECONDARY TEXT
221
+
222
+ Secondary text should be quieter but remain comfortably readable.
223
+
224
+ ---
225
+
226
+ # 16. TERTIARY TEXT
227
+
228
+ Tertiary text should only be used for genuinely low-priority information.
229
+
230
+ Do not make important information look tertiary.
231
+
232
+ ---
233
+
234
+ # 17. INVERSE TEXT
235
+
236
+ Inverse text is useful when content appears over a contrasting surface.
237
+
238
+ Example:
239
+
240
+ ```text id="q6x3m8"
241
+ Dark surface
242
+ → Light text
243
+ ```
244
+
245
+ ---
246
+
247
+ # 18. STATE COLORS
248
+
249
+ Define semantic states:
250
+
251
+ ```text id="p5v8c2"
252
+ Success
253
+ Warning
254
+ Error
255
+ Info
256
+ Selected
257
+ Disabled
258
+ ```
259
+
260
+ ---
261
+
262
+ # 19. SUCCESS
263
+
264
+ Success should communicate:
265
+
266
+ ```text id="x3m7q5"
267
+ Completed
268
+ Valid
269
+ Available
270
+ Connected
271
+ ```
272
+
273
+ ---
274
+
275
+ # 20. WARNING
276
+
277
+ Warning should communicate:
278
+
279
+ ```text id="m8c4v2"
280
+ Potential problem
281
+ Attention needed
282
+ Risk
283
+ ```
284
+
285
+ ---
286
+
287
+ # 21. ERROR
288
+
289
+ Error should communicate:
290
+
291
+ ```text id="n5x7p3"
292
+ Failure
293
+ Invalid input
294
+ Unavailable
295
+ Destructive state
296
+ ```
297
+
298
+ ---
299
+
300
+ # 22. INFO
301
+
302
+ Informational colors can communicate neutral system information without
303
+ creating urgency.
304
+
305
+ ---
306
+
307
+ # 23. COLOR + TEXT
308
+
309
+ Never communicate important state through color alone.
310
+
311
+ Use combinations such as:
312
+
313
+ ```text id="q2m8c4"
314
+ Color
315
+ +
316
+ Icon
317
+ +
318
+ Text
319
+ +
320
+ Position
321
+ ```
322
+
323
+ ---
324
+
325
+ # 24. COLOR + ICON
326
+
327
+ Example:
328
+
329
+ ```text id="v7x3m5"
330
+ Success
331
+ → Checkmark + semantic color
332
+
333
+ Error
334
+ → Error icon + semantic color
335
+ ```
336
+
337
+ ---
338
+
339
+ # 25. COLOR + SHAPE
340
+
341
+ Selection may combine:
342
+
343
+ ```text id="p4n8c2"
344
+ Tint
345
+ +
346
+ Border
347
+ +
348
+ Checkmark
349
+ ```
350
+
351
+ ---
352
+
353
+ # 26. CONTRAST
354
+
355
+ Every important visual relationship should be evaluated for sufficient
356
+ contrast.
357
+
358
+ Check:
359
+
360
+ ```text id="m3x7v8"
361
+ Text/background
362
+ Icon/background
363
+ Control/background
364
+ Border/background
365
+ Selected/unselected
366
+ Disabled/enabled
367
+ ```
368
+
369
+ ---
370
+
371
+ # 27. ACCESSIBLE CONTRAST
372
+
373
+ Do not optimize only for users with perfect vision.
374
+
375
+ Contrast should remain usable under:
376
+
377
+ ```text id="c8p2m5"
378
+ Different displays
379
+ Brightness changes
380
+ Accessibility settings
381
+ Outdoor lighting
382
+ Color vision differences
383
+ ```
384
+
385
+ ---
386
+
387
+ # 28. COLOR BLINDNESS
388
+
389
+ The system should remain understandable without relying solely on hue.
390
+
391
+ ---
392
+
393
+ # 29. RED + GREEN
394
+
395
+ Do not use red and green as the only distinction between two states.
396
+
397
+ Use:
398
+
399
+ ```text id="x7m4q2"
400
+ Icon
401
+ Text
402
+ Shape
403
+ Position
404
+ ```
405
+
406
+ as additional signals.
407
+
408
+ ---
409
+
410
+ # 30. DARK MODE
411
+
412
+ Dark mode is not simply:
413
+
414
+ ```text id="n5c8v3"
415
+ White background
416
+ → Black background
417
+ ```
418
+
419
+ It requires a separate hierarchy of surfaces and contrast.
420
+
421
+ ---
422
+
423
+ # 31. DARK MODE SURFACES
424
+
425
+ Dark interfaces may require:
426
+
427
+ ```text id="q3m7x8"
428
+ Base
429
+ Elevated
430
+ Higher elevation
431
+ Overlay
432
+ ```
433
+
434
+ rather than one universal dark background.
435
+
436
+ ---
437
+
438
+ # 32. DARK MODE CONTRAST
439
+
440
+ Avoid pure white text against pure black everywhere.
441
+
442
+ Strong contrast can feel harsh when used indiscriminately.
443
+
444
+ ---
445
+
446
+ # 33. LIGHT MODE
447
+
448
+ Light mode requires attention to:
449
+
450
+ ```text id="p8x4m2"
451
+ Surface separation
452
+ Borders
453
+ Shadows
454
+ Text contrast
455
+ Tint
456
+ ```
457
+
458
+ ---
459
+
460
+ # 34. LIGHT + DARK PARITY
461
+
462
+ Dark and light themes should preserve the same semantic hierarchy.
463
+
464
+ Do not create completely different information architectures for each mode.
465
+
466
+ ---
467
+
468
+ # 35. SEMANTIC THEME TOKENS
469
+
470
+ A theme should map semantic tokens:
471
+
472
+ ```text id="m2c7v5"
473
+ background
474
+ surface
475
+ text
476
+ border
477
+ primary
478
+ error
479
+ success
480
+ ```
481
+
482
+ to actual values.
483
+
484
+ ---
485
+
486
+ # 36. THEME SWITCHING
487
+
488
+ When users change themes:
489
+
490
+ ```text id="x5n8q3"
491
+ Current state
492
+ ↓
493
+ Theme changes
494
+ ↓
495
+ Content remains intact
496
+ ```
497
+
498
+ Do not reset navigation or user state.
499
+
500
+ ---
501
+
502
+ # 37. THEME TRANSITION
503
+
504
+ A theme transition can be animated subtly when appropriate.
505
+
506
+ Avoid dramatic flashing.
507
+
508
+ ---
509
+
510
+ # 38. SYSTEM THEME
511
+
512
+ Where appropriate, support:
513
+
514
+ ```text id="q7m3c8"
515
+ Light
516
+ Dark
517
+ System
518
+ ```
519
+
520
+ ---
521
+
522
+ # 39. USER THEME
523
+
524
+ If the product offers custom themes, preserve semantic roles across all themes.
525
+
526
+ ---
527
+
528
+ # 40. CUSTOM THEMES
529
+
530
+ A custom theme should still define:
531
+
532
+ ```text id="v4x8m2"
533
+ Background
534
+ Surface
535
+ Text
536
+ Primary
537
+ Secondary
538
+ Success
539
+ Warning
540
+ Error
541
+ Border
542
+ ```
543
+
544
+ ---
545
+
546
+ # 41. THEME VALIDATION
547
+
548
+ Every theme must be checked for:
549
+
550
+ ```text id="n6c2p5"
551
+ Contrast
552
+ Readability
553
+ State visibility
554
+ Selection visibility
555
+ Disabled-state clarity
556
+ ```
557
+
558
+ ---
559
+
560
+ # 42. MATERIALS
561
+
562
+ Materials create depth without requiring opaque blocks of color.
563
+
564
+ Examples conceptually:
565
+
566
+ ```text id="m8x3v7"
567
+ Solid
568
+ Translucent
569
+ Blurred
570
+ Elevated
571
+ Overlay
572
+ ```
573
+
574
+ ---
575
+
576
+ # 43. MATERIAL PURPOSE
577
+
578
+ Use materials when they communicate:
579
+
580
+ ```text id="q5p8c2"
581
+ Layer
582
+ Context
583
+ Depth
584
+ Separation
585
+ ```
586
+
587
+ ---
588
+
589
+ # 44. TRANSLUCENCY
590
+
591
+ Translucency can preserve environmental context.
592
+
593
+ Use it carefully.
594
+
595
+ ---
596
+
597
+ # 45. TRANSLUCENT SURFACES
598
+
599
+ Potential surfaces:
600
+
601
+ ```text id="x3m7n5"
602
+ Navigation bars
603
+ Toolbars
604
+ Floating controls
605
+ Sheets
606
+ Overlays
607
+ ```
608
+
609
+ ---
610
+
611
+ # 46. BLUR
612
+
613
+ Blur can separate foreground controls from moving background content.
614
+
615
+ It should not make content behind the surface unreadable.
616
+
617
+ ---
618
+
619
+ # 47. MATERIAL HIERARCHY
620
+
621
+ Different materials should communicate different spatial layers.
622
+
623
+ Example:
624
+
625
+ ```text id="p2c8m4"
626
+ Background
627
+ ↓
628
+ Content
629
+ ↓
630
+ Floating surface
631
+ ↓
632
+ Modal
633
+ ```
634
+
635
+ ---
636
+
637
+ # 48. GLASS EFFECTS
638
+
639
+ Glass-like surfaces can be useful for premium visual systems.
640
+
641
+ However:
642
+
643
+ ```text id="m5x8v2"
644
+ Glass
645
+ ≠
646
+ Everything transparent
647
+ ```
648
+
649
+ ---
650
+
651
+ # 49. GLASS RESTRAINT
652
+
653
+ Excessive translucency creates:
654
+
655
+ ```text id="c7n3p8"
656
+ Low contrast
657
+ Visual noise
658
+ Poor readability
659
+ Performance cost
660
+ ```
661
+
662
+ Use glass selectively.
663
+
664
+ ---
665
+
666
+ # 50. BACKGROUND CONTENT
667
+
668
+ When using translucent surfaces, the background should remain visually
669
+ subordinate.
670
+
671
+ ---
672
+
673
+ # 51. GRADIENTS
674
+
675
+ Gradients should have a purpose.
676
+
677
+ Potential uses:
678
+
679
+ ```text id="x4m7c2"
680
+ Brand
681
+ Depth
682
+ Highlight
683
+ Atmosphere
684
+ Hero content
685
+ ```
686
+
687
+ ---
688
+
689
+ # 52. GRADIENT DIRECTION
690
+
691
+ Gradient direction should support the visual composition.
692
+
693
+ ---
694
+
695
+ # 53. GRADIENT COMPLEXITY
696
+
697
+ Avoid excessive multi-color gradients that compete with content.
698
+
699
+ ---
700
+
701
+ # 54. TEXT OVER GRADIENT
702
+
703
+ Text over gradients requires careful contrast evaluation.
704
+
705
+ ---
706
+
707
+ # 55. IMAGE + COLOR
708
+
709
+ Images may be used as visual surfaces.
710
+
711
+ The agent should ensure text remains readable over variable imagery.
712
+
713
+ ---
714
+
715
+ # 56. IMAGE OVERLAYS
716
+
717
+ Potential techniques:
718
+
719
+ ```text id="q8m3v5"
720
+ Scrim
721
+ Gradient
722
+ Blur
723
+ Surface
724
+ ```
725
+
726
+ ---
727
+
728
+ # 57. SCRIMS
729
+
730
+ A subtle overlay can improve text readability over images without destroying
731
+ the image itself.
732
+
733
+ ---
734
+
735
+ # 58. ELEVATION
736
+
737
+ Elevation communicates hierarchy.
738
+
739
+ Conceptually:
740
+
741
+ ```text id="p4x8n2"
742
+ Base
743
+ ↓
744
+ Surface
745
+ ↓
746
+ Raised
747
+ ↓
748
+ Floating
749
+ ↓
750
+ Modal
751
+ ```
752
+
753
+ ---
754
+
755
+ # 59. SHADOWS
756
+
757
+ Shadows can communicate elevation.
758
+
759
+ Use them consistently.
760
+
761
+ ---
762
+
763
+ # 60. SHADOW RESTRAINT
764
+
765
+ Avoid giving every card a large shadow.
766
+
767
+ Too much shadow makes interfaces look cluttered.
768
+
769
+ ---
770
+
771
+ # 61. BORDERS
772
+
773
+ Borders can provide separation when shadows are inappropriate.
774
+
775
+ ---
776
+
777
+ # 62. BORDER HIERARCHY
778
+
779
+ Potential roles:
780
+
781
+ ```text id="m7c3x5"
782
+ Subtle
783
+ Standard
784
+ Strong
785
+ Focus
786
+ Error
787
+ ```
788
+
789
+ ---
790
+
791
+ # 63. BORDER + DARK MODE
792
+
793
+ Borders can become especially useful in dark interfaces where shadows may be
794
+ less visible.
795
+
796
+ ---
797
+
798
+ # 64. FOCUS COLORS
799
+
800
+ Keyboard/pointer interfaces require clear focus treatment.
801
+
802
+ ---
803
+
804
+ # 65. FOCUS INDICATOR
805
+
806
+ Focus should not rely only on a subtle color change.
807
+
808
+ Use a visible focus treatment where appropriate.
809
+
810
+ ---
811
+
812
+ # 66. SELECTION COLOR
813
+
814
+ Selection should be distinct from:
815
+
816
+ ```text id="x8m4q3"
817
+ Hover
818
+ Focus
819
+ Pressed
820
+ Disabled
821
+ ```
822
+
823
+ ---
824
+
825
+ # 67. HOVER COLOR
826
+
827
+ Hover should usually be subtle.
828
+
829
+ It should not look like an active selection.
830
+
831
+ ---
832
+
833
+ # 68. PRESSED COLOR
834
+
835
+ Pressed feedback can use:
836
+
837
+ ```text id="q5n8m2"
838
+ Tint
839
+ Opacity
840
+ Surface change
841
+ Scale
842
+ ```
843
+
844
+ ---
845
+
846
+ # 69. DISABLED COLOR
847
+
848
+ Disabled state should communicate unavailable interaction without destroying
849
+ legibility.
850
+
851
+ ---
852
+
853
+ # 70. COLOR TRANSITIONS
854
+
855
+ State changes may animate color subtly:
856
+
857
+ ```text id="v3c7x8"
858
+ Default
859
+ →
860
+ Pressed
861
+ →
862
+ Selected
863
+ ```
864
+
865
+ ---
866
+
867
+ # 71. COLOR ANIMATION RESTRAINT
868
+
869
+ Do not animate every color change.
870
+
871
+ Important state changes deserve motion; routine state changes can remain
872
+ instantaneous.
873
+
874
+ ---
875
+
876
+ # 72. BACKGROUND ANIMATION
877
+
878
+ Animated backgrounds should not reduce readability.
879
+
880
+ ---
881
+
882
+ # 73. AMBIENT COLOR
883
+
884
+ Media applications may derive ambient color from artwork.
885
+
886
+ This can create immersive experiences.
887
+
888
+ However, generated colors should remain subordinate to functional UI colors.
889
+
890
+ ---
891
+
892
+ # 74. DYNAMIC ACCENTS
893
+
894
+ Dynamic accent systems should have constraints.
895
+
896
+ Example:
897
+
898
+ ```text id="m2x7c5"
899
+ Artwork
900
+ ↓
901
+ Extract dominant tones
902
+ ↓
903
+ Validate contrast
904
+ ↓
905
+ Generate usable accent
906
+ ↓
907
+ Apply semantic mapping
908
+ ```
909
+
910
+ ---
911
+
912
+ # 75. DYNAMIC COLOR SAFETY
913
+
914
+ Never directly use arbitrary extracted colors for text without contrast
915
+ validation.
916
+
917
+ ---
918
+
919
+ # 76. COLOR TOKENS + COMPONENTS
920
+
921
+ Components should reference semantic tokens.
922
+
923
+ Example:
924
+
925
+ ```text id="p8m4v2"
926
+ Button
927
+ → primaryBackground
928
+ → primaryForeground
929
+ → primaryPressed
930
+ → primaryDisabled
931
+ ```
932
+
933
+ ---
934
+
935
+ # 77. COLOR TOKENS + STATES
936
+
937
+ Each interactive component should define relevant states.
938
+
939
+ ```text id="x3c7m8"
940
+ Default
941
+ Pressed
942
+ Focused
943
+ Selected
944
+ Disabled
945
+ Loading
946
+ Error
947
+ ```
948
+
949
+ ---
950
+
951
+ # 78. SURFACE TOKENS
952
+
953
+ Centralize surface hierarchy.
954
+
955
+ Example:
956
+
957
+ ```text id="n5v2q7"
958
+ surfaceBase
959
+ surfaceSecondary
960
+ surfaceElevated
961
+ surfaceOverlay
962
+ surfaceModal
963
+ ```
964
+
965
+ ---
966
+
967
+ # 79. BORDER TOKENS
968
+
969
+ Centralize border hierarchy.
970
+
971
+ ---
972
+
973
+ # 80. SHADOW TOKENS
974
+
975
+ Centralize elevation levels.
976
+
977
+ Example:
978
+
979
+ ```text id="m7x4c8"
980
+ elevationNone
981
+ elevationLow
982
+ elevationMedium
983
+ elevationHigh
984
+ ```
985
+
986
+ ---
987
+
988
+ # 81. MATERIAL TOKENS
989
+
990
+ Where supported:
991
+
992
+ ```text id="q2n8v5"
993
+ materialThin
994
+ materialRegular
995
+ materialThick
996
+ ```
997
+
998
+ can provide consistent material behavior.
999
+
1000
+ ---
1001
+
1002
+ # 82. COLOR + TYPOGRAPHY
1003
+
1004
+ Color and typography should reinforce the same hierarchy.
1005
+
1006
+ Example:
1007
+
1008
+ ```text id="x6m3p8"
1009
+ Title
1010
+ → Strong type + strong text color
1011
+
1012
+ Metadata
1013
+ → Smaller type + quieter color
1014
+ ```
1015
+
1016
+ ---
1017
+
1018
+ # 83. COLOR + SPACING
1019
+
1020
+ Visual hierarchy should not rely on color alone.
1021
+
1022
+ Spacing should reinforce grouping.
1023
+
1024
+ ---
1025
+
1026
+ # 84. COLOR + MOTION
1027
+
1028
+ Motion can reinforce color state transitions.
1029
+
1030
+ Example:
1031
+
1032
+ ```text id="v5c8m2"
1033
+ Favorite
1034
+ →
1035
+ Color change + icon transition
1036
+ ```
1037
+
1038
+ ---
1039
+
1040
+ # 85. VISUAL DEPTH
1041
+
1042
+ Depth should have a defined model.
1043
+
1044
+ Ask:
1045
+
1046
+ ```text id="n3x7p4"
1047
+ What is behind?
1048
+
1049
+ What is in front?
1050
+
1051
+ What is interactive?
1052
+
1053
+ What is temporary?
1054
+
1055
+ What is modal?
1056
+ ```
1057
+
1058
+ ---
1059
+
1060
+ # 86. DEPTH CONSISTENCY
1061
+
1062
+ A floating panel should not appear visually flatter than a background card if
1063
+ the hierarchy says otherwise.
1064
+
1065
+ ---
1066
+
1067
+ # 87. OVERLAY HIERARCHY
1068
+
1069
+ Overlays should visually dominate the content they temporarily cover without
1070
+ becoming visually overwhelming.
1071
+
1072
+ ---
1073
+
1074
+ # 88. MODAL SURFACES
1075
+
1076
+ Modal surfaces should feel separate from the underlying application.
1077
+
1078
+ ---
1079
+
1080
+ # 89. SHEET SURFACES
1081
+
1082
+ Sheets can retain some connection to the underlying context.
1083
+
1084
+ ---
1085
+
1086
+ # 90. FLOATING CONTROLS
1087
+
1088
+ Floating controls should appear elevated without becoming visually detached
1089
+ from the application.
1090
+
1091
+ ---
1092
+
1093
+ # 91. VISUAL NOISE
1094
+
1095
+ The agent should detect excessive:
1096
+
1097
+ ```text id="p7m3x8"
1098
+ Colors
1099
+ Borders
1100
+ Shadows
1101
+ Gradients
1102
+ Blur
1103
+ Glow
1104
+ Transparency
1105
+ ```
1106
+
1107
+ and simplify where necessary.
1108
+
1109
+ ---
1110
+
1111
+ # 92. COLOR RESTRAINT
1112
+
1113
+ A premium interface often has:
1114
+
1115
+ ```text id="x4c8m2"
1116
+ 1 primary accent
1117
+ +
1118
+ semantic states
1119
+ +
1120
+ neutral surfaces
1121
+ ```
1122
+
1123
+ rather than many competing accents.
1124
+
1125
+ ---
1126
+
1127
+ # 93. ACCENT SATURATION
1128
+
1129
+ Highly saturated colors should generally be reserved for emphasis.
1130
+
1131
+ ---
1132
+
1133
+ # 94. NEUTRAL SYSTEM
1134
+
1135
+ Neutral colors form the foundation of the interface.
1136
+
1137
+ A strong neutral system should support:
1138
+
1139
+ ```text id="m5x7p3"
1140
+ Background
1141
+ Surface
1142
+ Text
1143
+ Borders
1144
+ Disabled
1145
+ ```
1146
+
1147
+ without looking visually flat.
1148
+
1149
+ ---
1150
+
1151
+ # 95. LIGHT/DARK NEUTRALS
1152
+
1153
+ Do not simply invert the light theme to create the dark theme.
1154
+
1155
+ Construct an intentional dark neutral hierarchy.
1156
+
1157
+ ---
1158
+
1159
+ # 96. COLOR TEMPERATURE
1160
+
1161
+ Warm/cool neutrals can influence visual personality.
1162
+
1163
+ Use consistently.
1164
+
1165
+ ---
1166
+
1167
+ # 97. BRAND PERSONALITY
1168
+
1169
+ Color can establish:
1170
+
1171
+ ```text id="q3m8v5"
1172
+ Calm
1173
+ Technical
1174
+ Luxury
1175
+ Playful
1176
+ Professional
1177
+ Futuristic
1178
+ Minimal
1179
+ ```
1180
+
1181
+ but personality should not compromise usability.
1182
+
1183
+ ---
1184
+
1185
+ # 98. THEME PERSONALITY
1186
+
1187
+ A theme can alter visual personality while preserving semantic roles.
1188
+
1189
+ ---
1190
+
1191
+ # 99. USER CUSTOMIZATION
1192
+
1193
+ If users can customize themes:
1194
+
1195
+ ```text id="x7c4m2"
1196
+ Preserve readability
1197
+ Preserve state distinction
1198
+ Preserve accessibility
1199
+ ```
1200
+
1201
+ Do not allow arbitrary colors to destroy usability.
1202
+
1203
+ ---
1204
+
1205
+ # 100. COLOR SYSTEM QUALITY GATE
1206
+
1207
+ ```text id="n8m3v5"
1208
+ [ ] Semantic color tokens exist
1209
+ [ ] Brand colors are separated from system states
1210
+ [ ] Primary/secondary/tertiary hierarchy exists
1211
+ [ ] Background hierarchy exists
1212
+ [ ] Surface hierarchy exists
1213
+ [ ] Text hierarchy exists
1214
+ [ ] Success/warning/error/info colors exist
1215
+ [ ] Important states do not rely on color alone
1216
+ [ ] Contrast is validated
1217
+ [ ] Color blindness is considered
1218
+ [ ] Dark mode is intentionally designed
1219
+ [ ] Light mode is intentionally designed
1220
+ [ ] System theme is supported where appropriate
1221
+ [ ] Custom themes preserve semantics
1222
+ [ ] Materials have defined purposes
1223
+ [ ] Glass effects are restrained
1224
+ [ ] Blur is used selectively
1225
+ [ ] Gradients have a purpose
1226
+ [ ] Image overlays preserve readability
1227
+ [ ] Elevation is consistent
1228
+ [ ] Shadows are restrained
1229
+ [ ] Borders are meaningful
1230
+ [ ] Focus states are visible
1231
+ [ ] Selection differs from hover/focus
1232
+ [ ] Dynamic colors are contrast-checked
1233
+ [ ] Color system is centralized
1234
+ [ ] Components use semantic tokens
1235
+ [ ] Visual depth is consistent
1236
+ [ ] Color complexity is controlled
1237
+ ```
1238
+
1239
+ ---
1240
+
1241
+ # 101. AGENT COLOR WORKFLOW
1242
+
1243
+ The agent should follow:
1244
+
1245
+ ```text id="m4x8c7"
1246
+ 1. Identify brand identity
1247
+ ↓
1248
+ 2. Define neutral palette
1249
+ ↓
1250
+ 3. Define semantic colors
1251
+ ↓
1252
+ 4. Define text colors
1253
+ ↓
1254
+ 5. Define surfaces
1255
+ ↓
1256
+ 6. Define borders
1257
+ ↓
1258
+ 7. Define elevation
1259
+ ↓
1260
+ 8. Define materials
1261
+ ↓
1262
+ 9. Define dark mode
1263
+ ↓
1264
+ 10. Define light mode
1265
+ ↓
1266
+ 11. Define theme mappings
1267
+ ↓
1268
+ 12. Define interaction states
1269
+ ↓
1270
+ 13. Validate contrast
1271
+ ↓
1272
+ 14. Test accessibility
1273
+ ↓
1274
+ 15. Test color-blind scenarios
1275
+ ↓
1276
+ 16. Test images/gradients
1277
+ ↓
1278
+ 17. Test dynamic themes
1279
+ ↓
1280
+ 18. Audit visual depth
1281
+ ```
1282
+
1283
+ ---
1284
+
1285
+ # 102. AGENT DECISION RULE
1286
+
1287
+ Before adding a new color, ask:
1288
+
1289
+ ```text id="p7x3m8"
1290
+ What semantic role does it have?
1291
+
1292
+ Does an existing token already represent this role?
1293
+
1294
+ Does it improve hierarchy?
1295
+
1296
+ Does it remain accessible?
1297
+
1298
+ Does it work in light mode?
1299
+
1300
+ Does it work in dark mode?
1301
+
1302
+ Does it work with accessibility settings?
1303
+
1304
+ Does it create unnecessary visual noise?
1305
+ ```
1306
+
1307
+ If it has no clear semantic role, do not add it.
1308
+
1309
+ ---
1310
+
1311
+ # 103. FINAL PRINCIPLE
1312
+
1313
+ The goal is not to make an application colorful.
1314
+
1315
+ The goal is to make the interface **visually intelligible**.
1316
+
1317
+ A strong visual system creates:
1318
+
1319
+ ```text id="x5m8c2"
1320
+ Neutral foundation
1321
+ ↓
1322
+ Semantic color
1323
+ ↓
1324
+ Surface hierarchy
1325
+ ↓
1326
+ Material/depth
1327
+ ↓
1328
+ Interaction state
1329
+ ↓
1330
+ Brand personality
1331
+ ```
1332
+
1333
+ The best interfaces make users understand:
1334
+
1335
+ > what is background,
1336
+
1337
+ > what is content,
1338
+
1339
+ > what is interactive,
1340
+
1341
+ > what is selected,
1342
+
1343
+ > what requires attention,
1344
+
1345
+ > and what is temporary—
1346
+
1347
+ without consciously analyzing the visual system.
1348
+
1349
+ That is the purpose of color and materials:
1350
+
1351
+ **not decoration, but visual language.**