@jaimevalasek/aioson 1.30.0 → 1.30.2

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 (93) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/docs/design-previews/cognitive-core-ui-auth.html +95 -0
  3. package/docs/design-previews/cognitive-core-ui-kanban.html +231 -0
  4. package/docs/design-previews/cognitive-core-ui-list-detail.html +174 -0
  5. package/docs/design-previews/cognitive-core-ui-preview.css +1315 -0
  6. package/docs/design-previews/cognitive-core-ui-settings.html +142 -0
  7. package/docs/design-previews/cognitive-core-ui-website.html +190 -1009
  8. package/docs/design-previews/cognitive-core-ui.html +281 -463
  9. package/docs/design-previews/index.html +83 -31
  10. package/package.json +1 -1
  11. package/src/constants.js +578 -514
  12. package/template/.aioson/docs/integrations/dashboard-app-form-publish-mapping.md +183 -0
  13. package/template/.aioson/docs/play/README.md +74 -0
  14. package/template/.aioson/docs/play/agent-usage-guide.md +112 -0
  15. package/template/.aioson/docs/play/app-compatibility-guide.md +117 -0
  16. package/template/.aioson/docs/play/auth-services-and-testing.md +235 -0
  17. package/template/.aioson/docs/play/llm-data-and-bindings.md +238 -0
  18. package/template/.aioson/docs/play/manifest-and-runtime.md +267 -0
  19. package/template/.aioson/docs/play/source-map.md +104 -0
  20. package/template/.aioson/skills/design/aurora-command-ui/SKILL.md +266 -243
  21. package/template/.aioson/skills/design/aurora-command-ui/references/art-direction.md +293 -293
  22. package/template/.aioson/skills/design/aurora-command-ui/references/components.md +827 -827
  23. package/template/.aioson/skills/design/aurora-command-ui/references/dashboards.md +250 -250
  24. package/template/.aioson/skills/design/aurora-command-ui/references/design-tokens.md +585 -585
  25. package/template/.aioson/skills/design/aurora-command-ui/references/motion.md +365 -365
  26. package/template/.aioson/skills/design/aurora-command-ui/references/patterns.md +485 -482
  27. package/template/.aioson/skills/design/aurora-command-ui/references/websites.md +386 -387
  28. package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +228 -205
  29. package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -338
  30. package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -977
  31. package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -218
  32. package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -326
  33. package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -461
  34. package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -293
  35. package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -352
  36. package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +233 -210
  37. package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -319
  38. package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -365
  39. package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -196
  40. package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -244
  41. package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -235
  42. package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -215
  43. package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -295
  44. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +239 -203
  45. package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -339
  46. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +417 -407
  47. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +289 -272
  48. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +525 -524
  49. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +279 -279
  50. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +355 -289
  51. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +443 -437
  52. package/template/.aioson/skills/design/glassmorphism-ui/SKILL.md +245 -222
  53. package/template/.aioson/skills/design/glassmorphism-ui/references/art-direction.md +159 -159
  54. package/template/.aioson/skills/design/glassmorphism-ui/references/components.md +498 -498
  55. package/template/.aioson/skills/design/glassmorphism-ui/references/dashboards.md +236 -236
  56. package/template/.aioson/skills/design/glassmorphism-ui/references/design-tokens.md +274 -274
  57. package/template/.aioson/skills/design/glassmorphism-ui/references/motion.md +355 -355
  58. package/template/.aioson/skills/design/glassmorphism-ui/references/patterns.md +198 -198
  59. package/template/.aioson/skills/design/glassmorphism-ui/references/websites.md +307 -307
  60. package/template/.aioson/skills/design/interface-design/SKILL.md +68 -47
  61. package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -105
  62. package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -101
  63. package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +92 -71
  64. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -74
  65. package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -173
  66. package/template/.aioson/skills/design/neo-brutalist-ui/SKILL.md +236 -213
  67. package/template/.aioson/skills/design/neo-brutalist-ui/references/art-direction.md +228 -228
  68. package/template/.aioson/skills/design/neo-brutalist-ui/references/components.md +855 -855
  69. package/template/.aioson/skills/design/neo-brutalist-ui/references/dashboards.md +334 -334
  70. package/template/.aioson/skills/design/neo-brutalist-ui/references/design-tokens.md +342 -342
  71. package/template/.aioson/skills/design/neo-brutalist-ui/references/motion.md +286 -286
  72. package/template/.aioson/skills/design/neo-brutalist-ui/references/patterns.md +458 -458
  73. package/template/.aioson/skills/design/neo-brutalist-ui/references/websites.md +723 -723
  74. package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +83 -62
  75. package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -74
  76. package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -116
  77. package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -47
  78. package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -215
  79. package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -31
  80. package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +94 -66
  81. package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +366 -366
  82. package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -150
  83. package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -270
  84. package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -189
  85. package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +161 -161
  86. package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +232 -209
  87. package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -324
  88. package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -508
  89. package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -223
  90. package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -374
  91. package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -356
  92. package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -288
  93. package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -289
@@ -1,365 +1,365 @@
1
- # Motion — Aurora Command UI
2
-
3
- Animation system combining glass blur transitions with command center operational feedback.
4
-
5
- All animations are CSS-first and stack-agnostic. Add JS (GSAP, Framer Motion, etc.) only when CSS can't achieve the required timing or sequencing.
6
-
7
- ---
8
-
9
- ## Timing philosophy
10
-
11
- - **Glass transitions**: smooth, unhurried — depth changes feel physical, not instant
12
- - **Data transitions**: fast, precise — numbers and status updates feel live, not laggy
13
- - **Aurora atmosphere**: very slow, almost imperceptible — the background breathes, never distracts
14
- - **Reduced motion**: always provide fallbacks — operational tools are used under pressure
15
-
16
- ---
17
-
18
- ## Core easing functions
19
-
20
- ```css
21
- :root {
22
- /* Glass physics */
23
- --ease-glass: cubic-bezier(0.16, 1, 0.3, 1); /* spring-like entrance */
24
- --ease-glass-out: cubic-bezier(0.4, 0, 0.2, 1); /* glass panel exit */
25
- --ease-data: cubic-bezier(0.25, 0.1, 0.25, 1); /* data refresh, counters */
26
- --ease-command: cubic-bezier(0.4, 0, 0.6, 1); /* command strip, alerts */
27
- }
28
- ```
29
-
30
- ---
31
-
32
- ## 1. Glass entrance — blur-in
33
-
34
- The standard entrance animation for glass panels, cards, and modals. Combines fade + Y-translate + blur reveal.
35
-
36
- ```css
37
- @keyframes glass-entrance {
38
- from {
39
- opacity: 0;
40
- transform: translateY(12px);
41
- filter: blur(4px);
42
- }
43
- to {
44
- opacity: 1;
45
- transform: translateY(0);
46
- filter: blur(0);
47
- }
48
- }
49
-
50
- .glass-panel {
51
- animation: glass-entrance 400ms var(--ease-glass) both;
52
- }
53
-
54
- /* Staggered entrance for card grids */
55
- .card-grid .glass-panel:nth-child(1) { animation-delay: 0ms; }
56
- .card-grid .glass-panel:nth-child(2) { animation-delay: 60ms; }
57
- .card-grid .glass-panel:nth-child(3) { animation-delay: 120ms; }
58
- .card-grid .glass-panel:nth-child(4) { animation-delay: 180ms; }
59
- ```
60
-
61
- ---
62
-
63
- ## 2. Glass hover transition
64
-
65
- The standard hover state for glass cards — depth increase + glow reveal.
66
-
67
- ```css
68
- .glass-panel {
69
- transition:
70
- background var(--transition-glass),
71
- box-shadow var(--transition-base),
72
- border-color var(--transition-base),
73
- transform 200ms var(--ease-glass);
74
- }
75
-
76
- .glass-panel:hover {
77
- background: var(--glass-elevated);
78
- box-shadow: var(--shadow-glow);
79
- transform: translateY(-1px);
80
- }
81
- ```
82
-
83
- ---
84
-
85
- ## 3. Aurora pulse (background atmosphere)
86
-
87
- A very slow, barely perceptible oscillation in the aurora gradient. Creates the sense that the background is alive.
88
-
89
- ```css
90
- @keyframes aurora-pulse {
91
- 0% { opacity: 1; }
92
- 50% { opacity: 0.85; }
93
- 100% { opacity: 1; }
94
- }
95
-
96
- @keyframes aurora-drift {
97
- 0% { transform: translate(0, 0) scale(1); }
98
- 33% { transform: translate(-20px, 10px) scale(1.02); }
99
- 66% { transform: translate(10px, -15px) scale(0.98); }
100
- 100% { transform: translate(0, 0) scale(1); }
101
- }
102
-
103
- /* Apply to decorative aurora orbs only */
104
- .aurora-orb {
105
- animation: aurora-drift 20s ease-in-out infinite;
106
- }
107
-
108
- .aurora-orb-2 {
109
- animation: aurora-drift 26s ease-in-out infinite reverse;
110
- }
111
- ```
112
-
113
- **Rule**: aurora-pulse/drift applies **only** to decorative orbs and background elements. Never animate the page background directly — it causes repaint on every frame.
114
-
115
- ---
116
-
117
- ## 4. Command strip live indicator
118
-
119
- The pulsing dot on live status items.
120
-
121
- ```css
122
- @keyframes live-pulse {
123
- 0%, 100% {
124
- box-shadow: 0 0 0 0 rgba(0, 200, 232, 0.5);
125
- opacity: 1;
126
- }
127
- 50% {
128
- box-shadow: 0 0 0 6px rgba(0, 200, 232, 0);
129
- opacity: 0.8;
130
- }
131
- }
132
-
133
- .live-dot {
134
- width: 6px;
135
- height: 6px;
136
- border-radius: 50%;
137
- background: var(--accent-primary);
138
- animation: live-pulse 2s ease-in-out infinite;
139
- }
140
-
141
- .live-dot.alert {
142
- background: var(--semantic-amber);
143
- animation-name: live-pulse-amber;
144
- }
145
-
146
- @keyframes live-pulse-amber {
147
- 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 169, 29, 0.5); }
148
- 50% { box-shadow: 0 0 0 6px rgba(244, 169, 29, 0); }
149
- }
150
- ```
151
-
152
- ---
153
-
154
- ## 5. Stat counter (number tick-up)
155
-
156
- For stat cards and hero metrics. Numbers count up from 0 on page load.
157
-
158
- ```css
159
- /* CSS-only approach: use a clip animation for the number reveal */
160
- @keyframes number-reveal {
161
- from {
162
- opacity: 0;
163
- transform: translateY(8px);
164
- }
165
- to {
166
- opacity: 1;
167
- transform: translateY(0);
168
- }
169
- }
170
-
171
- .stat-number {
172
- animation: number-reveal 600ms var(--ease-glass) 200ms both;
173
- }
174
-
175
- /* For JS counter: use this transition on the element */
176
- .stat-number-counting {
177
- transition: color 200ms ease;
178
- font-variant-numeric: tabular-nums;
179
- }
180
- ```
181
-
182
- JS counter snippet (vanilla):
183
- ```js
184
- function countUp(el, target, duration = 1200) {
185
- const start = performance.now();
186
- const startVal = 0;
187
- function update(now) {
188
- const elapsed = now - start;
189
- const progress = Math.min(elapsed / duration, 1);
190
- const ease = 1 - Math.pow(1 - progress, 4); // ease-out quartic
191
- el.textContent = Math.floor(startVal + (target - startVal) * ease).toLocaleString();
192
- if (progress < 1) requestAnimationFrame(update);
193
- else el.textContent = target.toLocaleString();
194
- }
195
- requestAnimationFrame(update);
196
- }
197
- ```
198
-
199
- ---
200
-
201
- ## 6. Glass panel depth transition (theme switch)
202
-
203
- When toggling between dark and light themes, glass surfaces transition smoothly.
204
-
205
- ```css
206
- [data-theme] * {
207
- transition:
208
- background-color 250ms ease,
209
- color 250ms ease,
210
- border-color 250ms ease,
211
- box-shadow 250ms ease,
212
- backdrop-filter 250ms ease;
213
- }
214
- ```
215
-
216
- **Warning**: `transition: all` is dangerous for performance in blur-heavy interfaces. Explicitly list only the properties above.
217
-
218
- ---
219
-
220
- ## 7. Modal entrance + exit
221
-
222
- Glass modal entrance combines scale + blur-in. Exit is the reverse, faster.
223
-
224
- ```css
225
- @keyframes modal-in {
226
- from {
227
- opacity: 0;
228
- transform: scale(0.96) translateY(8px);
229
- filter: blur(2px);
230
- }
231
- to {
232
- opacity: 1;
233
- transform: scale(1) translateY(0);
234
- filter: blur(0);
235
- }
236
- }
237
-
238
- @keyframes modal-out {
239
- from { opacity: 1; transform: scale(1); }
240
- to { opacity: 0; transform: scale(0.97); }
241
- }
242
-
243
- .modal { animation: modal-in 300ms var(--ease-glass) both; }
244
- .modal.closing { animation: modal-out 180ms var(--ease-glass-out) both; }
245
-
246
- /* Overlay */
247
- @keyframes overlay-in {
248
- from { opacity: 0; backdrop-filter: blur(0); }
249
- to { opacity: 1; backdrop-filter: blur(4px); }
250
- }
251
-
252
- .modal-overlay { animation: overlay-in 300ms ease both; }
253
- ```
254
-
255
- ---
256
-
257
- ## 8. Data stream (live activity feed)
258
-
259
- For live alert tapes, activity feeds, and command strip updates. New items push in from top.
260
-
261
- ```css
262
- @keyframes feed-item-enter {
263
- from {
264
- opacity: 0;
265
- transform: translateY(-12px);
266
- max-height: 0;
267
- }
268
- to {
269
- opacity: 1;
270
- transform: translateY(0);
271
- max-height: 80px;
272
- }
273
- }
274
-
275
- .feed-item {
276
- animation: feed-item-enter 280ms var(--ease-glass) both;
277
- overflow: hidden;
278
- }
279
- ```
280
-
281
- ---
282
-
283
- ## 9. Sidebar navigation active state
284
-
285
- When navigating between sidebar items, the active indicator slides between items.
286
-
287
- ```css
288
- .sidebar-item {
289
- transition:
290
- background var(--transition-base),
291
- color var(--transition-base),
292
- border-color var(--transition-base);
293
- }
294
-
295
- /* The accent left border slides in on activation */
296
- .sidebar-item.active {
297
- border-left: 3px solid var(--accent-primary);
298
- background: var(--glass-elevated);
299
- color: var(--text-heading);
300
- }
301
-
302
- /* Transition the indicator width from 0 to 3px */
303
- .sidebar-item {
304
- border-left: 3px solid transparent;
305
- }
306
- ```
307
-
308
- ---
309
-
310
- ## 10. Chart area fill reveal
311
-
312
- For chart area fills — the fill height grows from 0 to full on load.
313
-
314
- ```css
315
- @keyframes chart-fill-reveal {
316
- from { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
317
- to { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
318
- }
319
-
320
- .chart-area-fill {
321
- animation: chart-fill-reveal 600ms var(--ease-glass) 400ms both;
322
- }
323
- ```
324
-
325
- ---
326
-
327
- ## Reduced motion
328
-
329
- All animations must be disabled or simplified for users with `prefers-reduced-motion: reduce`.
330
-
331
- ```css
332
- @media (prefers-reduced-motion: reduce) {
333
- *, *::before, *::after {
334
- animation-duration: 0.01ms !important;
335
- animation-iteration-count: 1 !important;
336
- transition-duration: 0.01ms !important;
337
- }
338
-
339
- /* Keep only instantaneous opacity transitions — no blur, no movement */
340
- .glass-panel {
341
- animation: none;
342
- opacity: 1;
343
- transform: none;
344
- filter: none;
345
- }
346
-
347
- .aurora-orb {
348
- animation: none;
349
- }
350
-
351
- .live-dot {
352
- animation: none;
353
- }
354
- }
355
- ```
356
-
357
- ---
358
-
359
- ## Performance rules
360
-
361
- 1. **Limit simultaneous blur elements** — more than 8-10 `backdrop-filter` composites on screen simultaneously can drop frame rate on lower-end hardware. Use `blur-sm` for cards in grids, `blur-md` for sidebars and top bars.
362
- 2. **Use `will-change: transform`** sparingly — only on elements that animate frequently (live dots, feed items).
363
- 3. **Aurora orbs must use `filter: blur()`**, not `backdrop-filter`. They are decorative, not interactive.
364
- 4. **Do not animate `backdrop-filter` blur intensity** — only animate opacity, transform, and box-shadow on glass elements. Animating blur level is expensive.
365
- 5. **Frame rate target**: 60fps on modern hardware. Test on an actual mobile device if the product targets mobile users.
1
+ # Motion — Aurora Command UI
2
+
3
+ Animation system combining glass blur transitions with command center operational feedback.
4
+
5
+ All animations are CSS-first and stack-agnostic. Add JS (GSAP, Framer Motion, etc.) only when CSS can't achieve the required timing or sequencing.
6
+
7
+ ---
8
+
9
+ ## Timing philosophy
10
+
11
+ - **Glass transitions**: smooth, unhurried — depth changes feel physical, not instant
12
+ - **Data transitions**: fast, precise — numbers and status updates feel live, not laggy
13
+ - **Aurora atmosphere**: very slow, almost imperceptible — the background breathes, never distracts
14
+ - **Reduced motion**: always provide fallbacks — operational tools are used under pressure
15
+
16
+ ---
17
+
18
+ ## Core easing functions
19
+
20
+ ```css
21
+ :root {
22
+ /* Glass physics */
23
+ --ease-glass: cubic-bezier(0.16, 1, 0.3, 1); /* spring-like entrance */
24
+ --ease-glass-out: cubic-bezier(0.4, 0, 0.2, 1); /* glass panel exit */
25
+ --ease-data: cubic-bezier(0.25, 0.1, 0.25, 1); /* data refresh, counters */
26
+ --ease-command: cubic-bezier(0.4, 0, 0.6, 1); /* command strip, alerts */
27
+ }
28
+ ```
29
+
30
+ ---
31
+
32
+ ## 1. Glass entrance — blur-in
33
+
34
+ The standard entrance animation for glass panels, cards, and modals. Combines fade + Y-translate + blur reveal.
35
+
36
+ ```css
37
+ @keyframes glass-entrance {
38
+ from {
39
+ opacity: 0;
40
+ transform: translateY(12px);
41
+ filter: blur(4px);
42
+ }
43
+ to {
44
+ opacity: 1;
45
+ transform: translateY(0);
46
+ filter: blur(0);
47
+ }
48
+ }
49
+
50
+ .glass-panel {
51
+ animation: glass-entrance 400ms var(--ease-glass) both;
52
+ }
53
+
54
+ /* Staggered entrance for card grids */
55
+ .card-grid .glass-panel:nth-child(1) { animation-delay: 0ms; }
56
+ .card-grid .glass-panel:nth-child(2) { animation-delay: 60ms; }
57
+ .card-grid .glass-panel:nth-child(3) { animation-delay: 120ms; }
58
+ .card-grid .glass-panel:nth-child(4) { animation-delay: 180ms; }
59
+ ```
60
+
61
+ ---
62
+
63
+ ## 2. Glass hover transition
64
+
65
+ The standard hover state for glass cards — depth increase + glow reveal.
66
+
67
+ ```css
68
+ .glass-panel {
69
+ transition:
70
+ background var(--transition-glass),
71
+ box-shadow var(--transition-base),
72
+ border-color var(--transition-base),
73
+ transform 200ms var(--ease-glass);
74
+ }
75
+
76
+ .glass-panel:hover {
77
+ background: var(--glass-elevated);
78
+ box-shadow: var(--shadow-glow);
79
+ transform: translateY(-1px);
80
+ }
81
+ ```
82
+
83
+ ---
84
+
85
+ ## 3. Aurora pulse (background atmosphere)
86
+
87
+ A very slow, barely perceptible oscillation in the aurora gradient. Creates the sense that the background is alive.
88
+
89
+ ```css
90
+ @keyframes aurora-pulse {
91
+ 0% { opacity: 1; }
92
+ 50% { opacity: 0.85; }
93
+ 100% { opacity: 1; }
94
+ }
95
+
96
+ @keyframes aurora-drift {
97
+ 0% { transform: translate(0, 0) scale(1); }
98
+ 33% { transform: translate(-20px, 10px) scale(1.02); }
99
+ 66% { transform: translate(10px, -15px) scale(0.98); }
100
+ 100% { transform: translate(0, 0) scale(1); }
101
+ }
102
+
103
+ /* Apply only to ambient background field layers */
104
+ .aurora-field-layer {
105
+ animation: aurora-drift 20s ease-in-out infinite;
106
+ }
107
+
108
+ .aurora-field-layer-alt {
109
+ animation: aurora-drift 26s ease-in-out infinite reverse;
110
+ }
111
+ ```
112
+
113
+ **Rule**: aurora-pulse/drift applies only to ambient background field layers. Never animate the page background directly — it causes repaint on every frame.
114
+
115
+ ---
116
+
117
+ ## 4. Command strip live indicator
118
+
119
+ The pulsing dot on live status items.
120
+
121
+ ```css
122
+ @keyframes live-pulse {
123
+ 0%, 100% {
124
+ box-shadow: 0 0 0 0 rgba(0, 200, 232, 0.5);
125
+ opacity: 1;
126
+ }
127
+ 50% {
128
+ box-shadow: 0 0 0 6px rgba(0, 200, 232, 0);
129
+ opacity: 0.8;
130
+ }
131
+ }
132
+
133
+ .live-dot {
134
+ width: 6px;
135
+ height: 6px;
136
+ border-radius: 50%;
137
+ background: var(--accent-primary);
138
+ animation: live-pulse 2s ease-in-out infinite;
139
+ }
140
+
141
+ .live-dot.alert {
142
+ background: var(--semantic-amber);
143
+ animation-name: live-pulse-amber;
144
+ }
145
+
146
+ @keyframes live-pulse-amber {
147
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 169, 29, 0.5); }
148
+ 50% { box-shadow: 0 0 0 6px rgba(244, 169, 29, 0); }
149
+ }
150
+ ```
151
+
152
+ ---
153
+
154
+ ## 5. Stat counter (number tick-up)
155
+
156
+ For stat cards and hero metrics. Numbers count up from 0 on page load.
157
+
158
+ ```css
159
+ /* CSS-only approach: use a clip animation for the number reveal */
160
+ @keyframes number-reveal {
161
+ from {
162
+ opacity: 0;
163
+ transform: translateY(8px);
164
+ }
165
+ to {
166
+ opacity: 1;
167
+ transform: translateY(0);
168
+ }
169
+ }
170
+
171
+ .stat-number {
172
+ animation: number-reveal 600ms var(--ease-glass) 200ms both;
173
+ }
174
+
175
+ /* For JS counter: use this transition on the element */
176
+ .stat-number-counting {
177
+ transition: color 200ms ease;
178
+ font-variant-numeric: tabular-nums;
179
+ }
180
+ ```
181
+
182
+ JS counter snippet (vanilla):
183
+ ```js
184
+ function countUp(el, target, duration = 1200) {
185
+ const start = performance.now();
186
+ const startVal = 0;
187
+ function update(now) {
188
+ const elapsed = now - start;
189
+ const progress = Math.min(elapsed / duration, 1);
190
+ const ease = 1 - Math.pow(1 - progress, 4); // ease-out quartic
191
+ el.textContent = Math.floor(startVal + (target - startVal) * ease).toLocaleString();
192
+ if (progress < 1) requestAnimationFrame(update);
193
+ else el.textContent = target.toLocaleString();
194
+ }
195
+ requestAnimationFrame(update);
196
+ }
197
+ ```
198
+
199
+ ---
200
+
201
+ ## 6. Glass panel depth transition (theme switch)
202
+
203
+ When toggling between dark and light themes, glass surfaces transition smoothly.
204
+
205
+ ```css
206
+ [data-theme] * {
207
+ transition:
208
+ background-color 250ms ease,
209
+ color 250ms ease,
210
+ border-color 250ms ease,
211
+ box-shadow 250ms ease,
212
+ backdrop-filter 250ms ease;
213
+ }
214
+ ```
215
+
216
+ **Warning**: `transition: all` is dangerous for performance in blur-heavy interfaces. Explicitly list only the properties above.
217
+
218
+ ---
219
+
220
+ ## 7. Modal entrance + exit
221
+
222
+ Glass modal entrance combines scale + blur-in. Exit is the reverse, faster.
223
+
224
+ ```css
225
+ @keyframes modal-in {
226
+ from {
227
+ opacity: 0;
228
+ transform: scale(0.96) translateY(8px);
229
+ filter: blur(2px);
230
+ }
231
+ to {
232
+ opacity: 1;
233
+ transform: scale(1) translateY(0);
234
+ filter: blur(0);
235
+ }
236
+ }
237
+
238
+ @keyframes modal-out {
239
+ from { opacity: 1; transform: scale(1); }
240
+ to { opacity: 0; transform: scale(0.97); }
241
+ }
242
+
243
+ .modal { animation: modal-in 300ms var(--ease-glass) both; }
244
+ .modal.closing { animation: modal-out 180ms var(--ease-glass-out) both; }
245
+
246
+ /* Overlay */
247
+ @keyframes overlay-in {
248
+ from { opacity: 0; backdrop-filter: blur(0); }
249
+ to { opacity: 1; backdrop-filter: blur(4px); }
250
+ }
251
+
252
+ .modal-overlay { animation: overlay-in 300ms ease both; }
253
+ ```
254
+
255
+ ---
256
+
257
+ ## 8. Data stream (live activity feed)
258
+
259
+ For live alert tapes, activity feeds, and command strip updates. New items push in from top.
260
+
261
+ ```css
262
+ @keyframes feed-item-enter {
263
+ from {
264
+ opacity: 0;
265
+ transform: translateY(-12px);
266
+ max-height: 0;
267
+ }
268
+ to {
269
+ opacity: 1;
270
+ transform: translateY(0);
271
+ max-height: 80px;
272
+ }
273
+ }
274
+
275
+ .feed-item {
276
+ animation: feed-item-enter 280ms var(--ease-glass) both;
277
+ overflow: hidden;
278
+ }
279
+ ```
280
+
281
+ ---
282
+
283
+ ## 9. Sidebar navigation active state
284
+
285
+ When navigating between sidebar items, the active indicator slides between items.
286
+
287
+ ```css
288
+ .sidebar-item {
289
+ transition:
290
+ background var(--transition-base),
291
+ color var(--transition-base),
292
+ border-color var(--transition-base);
293
+ }
294
+
295
+ /* The accent left border slides in on activation */
296
+ .sidebar-item.active {
297
+ border-left: 3px solid var(--accent-primary);
298
+ background: var(--glass-elevated);
299
+ color: var(--text-heading);
300
+ }
301
+
302
+ /* Transition the indicator width from 0 to 3px */
303
+ .sidebar-item {
304
+ border-left: 3px solid transparent;
305
+ }
306
+ ```
307
+
308
+ ---
309
+
310
+ ## 10. Chart area fill reveal
311
+
312
+ For chart area fills — the fill height grows from 0 to full on load.
313
+
314
+ ```css
315
+ @keyframes chart-fill-reveal {
316
+ from { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
317
+ to { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
318
+ }
319
+
320
+ .chart-area-fill {
321
+ animation: chart-fill-reveal 600ms var(--ease-glass) 400ms both;
322
+ }
323
+ ```
324
+
325
+ ---
326
+
327
+ ## Reduced motion
328
+
329
+ All animations must be disabled or simplified for users with `prefers-reduced-motion: reduce`.
330
+
331
+ ```css
332
+ @media (prefers-reduced-motion: reduce) {
333
+ *, *::before, *::after {
334
+ animation-duration: 0.01ms !important;
335
+ animation-iteration-count: 1 !important;
336
+ transition-duration: 0.01ms !important;
337
+ }
338
+
339
+ /* Keep only instantaneous opacity transitions — no blur, no movement */
340
+ .glass-panel {
341
+ animation: none;
342
+ opacity: 1;
343
+ transform: none;
344
+ filter: none;
345
+ }
346
+
347
+ .aurora-field-layer {
348
+ animation: none;
349
+ }
350
+
351
+ .live-dot {
352
+ animation: none;
353
+ }
354
+ }
355
+ ```
356
+
357
+ ---
358
+
359
+ ## Performance rules
360
+
361
+ 1. **Limit simultaneous blur elements** — more than 8-10 `backdrop-filter` composites on screen simultaneously can drop frame rate on lower-end hardware. Use `blur-sm` for cards in grids, `blur-md` for sidebars and top bars.
362
+ 2. **Use `will-change: transform`** sparingly — only on elements that animate frequently (live dots, feed items).
363
+ 3. **Ambient field layers use background gradients and opacity**, not `backdrop-filter`. They are environmental, not interactive.
364
+ 4. **Do not animate `backdrop-filter` blur intensity** — only animate opacity, transform, and box-shadow on glass elements. Animating blur level is expensive.
365
+ 5. **Frame rate target**: 60fps on modern hardware. Test on an actual mobile device if the product targets mobile users.