tribunal-kit 2.4.6 → 3.1.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 (250) hide show
  1. package/.agent/ARCHITECTURE.md +99 -99
  2. package/.agent/GEMINI.md +52 -52
  3. package/.agent/agents/accessibility-reviewer.md +139 -86
  4. package/.agent/agents/ai-code-reviewer.md +160 -90
  5. package/.agent/agents/backend-specialist.md +164 -127
  6. package/.agent/agents/code-archaeologist.md +115 -73
  7. package/.agent/agents/database-architect.md +130 -110
  8. package/.agent/agents/debugger.md +137 -97
  9. package/.agent/agents/dependency-reviewer.md +78 -30
  10. package/.agent/agents/devops-engineer.md +161 -118
  11. package/.agent/agents/documentation-writer.md +151 -87
  12. package/.agent/agents/explorer-agent.md +117 -99
  13. package/.agent/agents/frontend-reviewer.md +127 -47
  14. package/.agent/agents/frontend-specialist.md +169 -109
  15. package/.agent/agents/game-developer.md +28 -164
  16. package/.agent/agents/logic-reviewer.md +87 -49
  17. package/.agent/agents/mobile-developer.md +151 -103
  18. package/.agent/agents/mobile-reviewer.md +133 -50
  19. package/.agent/agents/orchestrator.md +121 -110
  20. package/.agent/agents/penetration-tester.md +103 -77
  21. package/.agent/agents/performance-optimizer.md +136 -92
  22. package/.agent/agents/performance-reviewer.md +139 -69
  23. package/.agent/agents/product-manager.md +104 -70
  24. package/.agent/agents/product-owner.md +6 -25
  25. package/.agent/agents/project-planner.md +95 -95
  26. package/.agent/agents/qa-automation-engineer.md +174 -87
  27. package/.agent/agents/security-auditor.md +133 -129
  28. package/.agent/agents/seo-specialist.md +160 -99
  29. package/.agent/agents/sql-reviewer.md +132 -44
  30. package/.agent/agents/supervisor-agent.md +137 -109
  31. package/.agent/agents/swarm-worker-contracts.md +17 -17
  32. package/.agent/agents/swarm-worker-registry.md +46 -46
  33. package/.agent/agents/test-coverage-reviewer.md +132 -53
  34. package/.agent/agents/test-engineer.md +0 -21
  35. package/.agent/agents/type-safety-reviewer.md +143 -33
  36. package/.agent/patterns/generator.md +9 -9
  37. package/.agent/patterns/inversion.md +12 -12
  38. package/.agent/patterns/pipeline.md +9 -9
  39. package/.agent/patterns/reviewer.md +13 -13
  40. package/.agent/patterns/tool-wrapper.md +9 -9
  41. package/.agent/rules/GEMINI.md +63 -63
  42. package/.agent/scripts/__pycache__/auto_preview.cpython-311.pyc +0 -0
  43. package/.agent/scripts/__pycache__/bundle_analyzer.cpython-311.pyc +0 -0
  44. package/.agent/scripts/__pycache__/checklist.cpython-311.pyc +0 -0
  45. package/.agent/scripts/__pycache__/dependency_analyzer.cpython-311.pyc +0 -0
  46. package/.agent/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
  47. package/.agent/scripts/__pycache__/session_manager.cpython-311.pyc +0 -0
  48. package/.agent/scripts/__pycache__/skill_integrator.cpython-311.pyc +0 -0
  49. package/.agent/scripts/__pycache__/swarm_dispatcher.cpython-311.pyc +0 -0
  50. package/.agent/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
  51. package/.agent/scripts/__pycache__/verify_all.cpython-311.pyc +0 -0
  52. package/.agent/scripts/compress_skills.py +167 -0
  53. package/.agent/scripts/consolidate_skills.py +173 -0
  54. package/.agent/scripts/deep_compress.py +202 -0
  55. package/.agent/scripts/minify_context.py +80 -0
  56. package/.agent/scripts/security_scan.py +1 -1
  57. package/.agent/scripts/strip_tribunal.py +41 -0
  58. package/.agent/skills/agent-organizer/SKILL.md +60 -100
  59. package/.agent/skills/agentic-patterns/SKILL.md +0 -70
  60. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +108 -53
  61. package/.agent/skills/api-patterns/SKILL.md +197 -257
  62. package/.agent/skills/api-security-auditor/SKILL.md +125 -57
  63. package/.agent/skills/app-builder/SKILL.md +326 -50
  64. package/.agent/skills/app-builder/templates/SKILL.md +13 -15
  65. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +16 -16
  66. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +22 -22
  67. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +18 -18
  68. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +20 -20
  69. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +17 -17
  70. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +18 -18
  71. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +21 -21
  72. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +19 -19
  73. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +26 -26
  74. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +26 -26
  75. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +19 -19
  76. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +18 -18
  77. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +20 -20
  78. package/.agent/skills/appflow-wireframe/SKILL.md +71 -98
  79. package/.agent/skills/architecture/SKILL.md +161 -200
  80. package/.agent/skills/authentication-best-practices/SKILL.md +121 -54
  81. package/.agent/skills/bash-linux/SKILL.md +71 -166
  82. package/.agent/skills/behavioral-modes/SKILL.md +8 -69
  83. package/.agent/skills/brainstorming/SKILL.md +345 -127
  84. package/.agent/skills/building-native-ui/SKILL.md +125 -57
  85. package/.agent/skills/clean-code/SKILL.md +266 -149
  86. package/.agent/skills/code-review-checklist/SKILL.md +0 -62
  87. package/.agent/skills/config-validator/SKILL.md +73 -131
  88. package/.agent/skills/csharp-developer/SKILL.md +434 -73
  89. package/.agent/skills/database-design/SKILL.md +190 -275
  90. package/.agent/skills/deployment-procedures/SKILL.md +81 -158
  91. package/.agent/skills/devops-engineer/SKILL.md +255 -94
  92. package/.agent/skills/devops-incident-responder/SKILL.md +50 -69
  93. package/.agent/skills/doc.md +5 -5
  94. package/.agent/skills/documentation-templates/SKILL.md +19 -63
  95. package/.agent/skills/edge-computing/SKILL.md +75 -165
  96. package/.agent/skills/extract-design-system/SKILL.md +84 -58
  97. package/.agent/skills/framer-motion-expert/SKILL.md +195 -0
  98. package/.agent/skills/frontend-design/SKILL.md +151 -499
  99. package/.agent/skills/game-design-expert/SKILL.md +71 -0
  100. package/.agent/skills/game-engineering-expert/SKILL.md +88 -0
  101. package/.agent/skills/geo-fundamentals/SKILL.md +52 -178
  102. package/.agent/skills/github-operations/SKILL.md +197 -272
  103. package/.agent/skills/gsap-expert/SKILL.md +194 -0
  104. package/.agent/skills/i18n-localization/SKILL.md +60 -172
  105. package/.agent/skills/intelligent-routing/SKILL.md +123 -103
  106. package/.agent/skills/lint-and-validate/SKILL.md +8 -52
  107. package/.agent/skills/llm-engineering/SKILL.md +281 -195
  108. package/.agent/skills/local-first/SKILL.md +76 -159
  109. package/.agent/skills/mcp-builder/SKILL.md +48 -188
  110. package/.agent/skills/mobile-design/SKILL.md +213 -219
  111. package/.agent/skills/motion-engineering/SKILL.md +184 -0
  112. package/.agent/skills/nextjs-react-expert/SKILL.md +184 -203
  113. package/.agent/skills/nodejs-best-practices/SKILL.md +403 -185
  114. package/.agent/skills/observability/SKILL.md +211 -203
  115. package/.agent/skills/parallel-agents/SKILL.md +53 -146
  116. package/.agent/skills/performance-profiling/SKILL.md +171 -151
  117. package/.agent/skills/plan-writing/SKILL.md +49 -153
  118. package/.agent/skills/platform-engineer/SKILL.md +57 -103
  119. package/.agent/skills/playwright-best-practices/SKILL.md +110 -63
  120. package/.agent/skills/powershell-windows/SKILL.md +61 -179
  121. package/.agent/skills/python-patterns/SKILL.md +7 -35
  122. package/.agent/skills/python-pro/SKILL.md +273 -114
  123. package/.agent/skills/react-specialist/SKILL.md +227 -108
  124. package/.agent/skills/readme-builder/SKILL.md +15 -85
  125. package/.agent/skills/realtime-patterns/SKILL.md +216 -243
  126. package/.agent/skills/red-team-tactics/SKILL.md +10 -51
  127. package/.agent/skills/rust-pro/SKILL.md +525 -142
  128. package/.agent/skills/seo-fundamentals/SKILL.md +92 -153
  129. package/.agent/skills/server-management/SKILL.md +110 -166
  130. package/.agent/skills/shadcn-ui-expert/SKILL.md +154 -55
  131. package/.agent/skills/skill-creator/SKILL.md +18 -58
  132. package/.agent/skills/sql-pro/SKILL.md +543 -68
  133. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +28 -68
  134. package/.agent/skills/swiftui-expert/SKILL.md +124 -57
  135. package/.agent/skills/systematic-debugging/SKILL.md +49 -151
  136. package/.agent/skills/tailwind-patterns/SKILL.md +433 -149
  137. package/.agent/skills/tdd-workflow/SKILL.md +63 -169
  138. package/.agent/skills/test-result-analyzer/SKILL.md +33 -73
  139. package/.agent/skills/testing-patterns/SKILL.md +437 -130
  140. package/.agent/skills/trend-researcher/SKILL.md +30 -71
  141. package/.agent/skills/ui-ux-pro-max/SKILL.md +0 -41
  142. package/.agent/skills/ui-ux-researcher/SKILL.md +51 -91
  143. package/.agent/skills/vue-expert/SKILL.md +225 -119
  144. package/.agent/skills/vulnerability-scanner/SKILL.md +264 -226
  145. package/.agent/skills/web-accessibility-auditor/SKILL.md +141 -58
  146. package/.agent/skills/web-design-guidelines/SKILL.md +17 -61
  147. package/.agent/skills/webapp-testing/SKILL.md +71 -196
  148. package/.agent/skills/whimsy-injector/SKILL.md +58 -132
  149. package/.agent/skills/workflow-optimizer/SKILL.md +28 -68
  150. package/.agent/workflows/api-tester.md +96 -224
  151. package/.agent/workflows/audit.md +81 -122
  152. package/.agent/workflows/brainstorm.md +69 -105
  153. package/.agent/workflows/changelog.md +65 -97
  154. package/.agent/workflows/create.md +73 -88
  155. package/.agent/workflows/debug.md +80 -111
  156. package/.agent/workflows/deploy.md +119 -92
  157. package/.agent/workflows/enhance.md +80 -91
  158. package/.agent/workflows/fix.md +68 -97
  159. package/.agent/workflows/generate.md +165 -164
  160. package/.agent/workflows/migrate.md +106 -109
  161. package/.agent/workflows/orchestrate.md +103 -86
  162. package/.agent/workflows/performance-benchmarker.md +77 -268
  163. package/.agent/workflows/plan.md +120 -98
  164. package/.agent/workflows/preview.md +39 -96
  165. package/.agent/workflows/refactor.md +105 -97
  166. package/.agent/workflows/review-ai.md +63 -102
  167. package/.agent/workflows/review.md +71 -110
  168. package/.agent/workflows/session.md +53 -113
  169. package/.agent/workflows/status.md +42 -88
  170. package/.agent/workflows/strengthen-skills.md +90 -51
  171. package/.agent/workflows/swarm.md +114 -129
  172. package/.agent/workflows/test.md +125 -102
  173. package/.agent/workflows/tribunal-backend.md +60 -78
  174. package/.agent/workflows/tribunal-database.md +62 -100
  175. package/.agent/workflows/tribunal-frontend.md +62 -82
  176. package/.agent/workflows/tribunal-full.md +56 -100
  177. package/.agent/workflows/tribunal-mobile.md +65 -94
  178. package/.agent/workflows/tribunal-performance.md +62 -105
  179. package/.agent/workflows/ui-ux-pro-max.md +72 -121
  180. package/README.md +11 -15
  181. package/package.json +1 -1
  182. package/.agent/skills/api-patterns/api-style.md +0 -42
  183. package/.agent/skills/api-patterns/auth.md +0 -24
  184. package/.agent/skills/api-patterns/documentation.md +0 -26
  185. package/.agent/skills/api-patterns/graphql.md +0 -41
  186. package/.agent/skills/api-patterns/rate-limiting.md +0 -31
  187. package/.agent/skills/api-patterns/response.md +0 -37
  188. package/.agent/skills/api-patterns/rest.md +0 -40
  189. package/.agent/skills/api-patterns/security-testing.md +0 -122
  190. package/.agent/skills/api-patterns/trpc.md +0 -41
  191. package/.agent/skills/api-patterns/versioning.md +0 -22
  192. package/.agent/skills/app-builder/agent-coordination.md +0 -71
  193. package/.agent/skills/app-builder/feature-building.md +0 -53
  194. package/.agent/skills/app-builder/project-detection.md +0 -34
  195. package/.agent/skills/app-builder/scaffolding.md +0 -118
  196. package/.agent/skills/app-builder/tech-stack.md +0 -40
  197. package/.agent/skills/architecture/context-discovery.md +0 -43
  198. package/.agent/skills/architecture/examples.md +0 -94
  199. package/.agent/skills/architecture/pattern-selection.md +0 -68
  200. package/.agent/skills/architecture/patterns-reference.md +0 -50
  201. package/.agent/skills/architecture/trade-off-analysis.md +0 -77
  202. package/.agent/skills/brainstorming/dynamic-questioning.md +0 -360
  203. package/.agent/skills/database-design/database-selection.md +0 -43
  204. package/.agent/skills/database-design/indexing.md +0 -39
  205. package/.agent/skills/database-design/migrations.md +0 -48
  206. package/.agent/skills/database-design/optimization.md +0 -36
  207. package/.agent/skills/database-design/orm-selection.md +0 -30
  208. package/.agent/skills/database-design/schema-design.md +0 -56
  209. package/.agent/skills/dotnet-core-expert/SKILL.md +0 -103
  210. package/.agent/skills/framer-motion-animations/SKILL.md +0 -74
  211. package/.agent/skills/frontend-design/animation-guide.md +0 -331
  212. package/.agent/skills/frontend-design/color-system.md +0 -329
  213. package/.agent/skills/frontend-design/decision-trees.md +0 -418
  214. package/.agent/skills/frontend-design/motion-graphics.md +0 -306
  215. package/.agent/skills/frontend-design/typography-system.md +0 -363
  216. package/.agent/skills/frontend-design/ux-psychology.md +0 -1116
  217. package/.agent/skills/frontend-design/visual-effects.md +0 -383
  218. package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
  219. package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
  220. package/.agent/skills/game-development/SKILL.md +0 -236
  221. package/.agent/skills/game-development/game-art/SKILL.md +0 -185
  222. package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
  223. package/.agent/skills/game-development/game-design/SKILL.md +0 -129
  224. package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
  225. package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
  226. package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
  227. package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
  228. package/.agent/skills/game-development/web-games/SKILL.md +0 -150
  229. package/.agent/skills/intelligent-routing/router-manifest.md +0 -65
  230. package/.agent/skills/mobile-design/decision-trees.md +0 -516
  231. package/.agent/skills/mobile-design/mobile-backend.md +0 -491
  232. package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
  233. package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
  234. package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
  235. package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
  236. package/.agent/skills/mobile-design/mobile-performance.md +0 -767
  237. package/.agent/skills/mobile-design/mobile-testing.md +0 -356
  238. package/.agent/skills/mobile-design/mobile-typography.md +0 -433
  239. package/.agent/skills/mobile-design/platform-android.md +0 -666
  240. package/.agent/skills/mobile-design/platform-ios.md +0 -561
  241. package/.agent/skills/mobile-design/touch-psychology.md +0 -537
  242. package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  243. package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  244. package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  245. package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  246. package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  247. package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  248. package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  249. package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  250. package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
@@ -1,306 +0,0 @@
1
- # Motion Graphics Reference
2
-
3
- > Advanced animation techniques for premium web experiences - Lottie, GSAP, SVG, 3D, Particles.
4
- > **Learn the principles, create WOW effects.**
5
-
6
- ---
7
-
8
- ## 1. Lottie Animations
9
-
10
- ### What is Lottie?
11
-
12
- ```
13
- JSON-based vector animations:
14
- ├── Exported from After Effects via Bodymovin
15
- ├── Lightweight (smaller than GIF/video)
16
- ├── Scalable (vector-based, no pixelation)
17
- ├── Interactive (control playback, segments)
18
- └── Cross-platform (web, iOS, Android, React Native)
19
- ```
20
-
21
- ### When to Use Lottie
22
-
23
- | Use Case | Why Lottie? |
24
- |----------|-------------|
25
- | **Loading animations** | Branded, smooth, lightweight |
26
- | **Empty states** | Engaging illustrations |
27
- | **Onboarding flows** | Complex multi-step animations |
28
- | **Success/Error feedback** | Delightful micro-interactions |
29
- | **Animated icons** | Consistent cross-platform |
30
-
31
- ### Principles
32
-
33
- - Keep file size under 100KB for performance
34
- - Use loop sparingly (avoid distraction)
35
- - Provide static fallback for reduced-motion
36
- - Lazy load animation files when possible
37
-
38
- ### Sources
39
-
40
- - LottieFiles.com (free library)
41
- - After Effects + Bodymovin (custom)
42
- - Figma plugins (export from design)
43
-
44
- ---
45
-
46
- ## 2. GSAP (GreenSock)
47
-
48
- ### What Makes GSAP Different
49
-
50
- ```
51
- Professional timeline-based animation:
52
- ├── Precise control over sequences
53
- ├── ScrollTrigger for scroll-driven animations
54
- ├── MorphSVG for shape transitions
55
- ├── Physics-based easing
56
- └── Works with any DOM element
57
- ```
58
-
59
- ### Core Concepts
60
-
61
- | Concept | Purpose |
62
- |---------|---------|
63
- | **Tween** | Single A→B animation |
64
- | **Timeline** | Sequenced/overlapping animations |
65
- | **ScrollTrigger** | Scroll position controls playback |
66
- | **Stagger** | Cascade effect across elements |
67
-
68
- ### When to Use GSAP
69
-
70
- - ✅ Complex sequenced animations
71
- - ✅ Scroll-triggered reveals
72
- - ✅ Precise timing control needed
73
- - ✅ SVG morphing effects
74
- - ❌ Simple hover/focus effects (use CSS)
75
- - ❌ Performance-critical mobile (heavier)
76
-
77
- ### Principles
78
-
79
- - Use timeline for orchestration (not individual tweens)
80
- - Stagger delay: 0.05-0.15s between items
81
- - ScrollTrigger: start at 70-80% viewport entry
82
- - Kill animations on unmount (prevent memory leaks)
83
-
84
- ---
85
-
86
- ## 3. SVG Animations
87
-
88
- ### Types of SVG Animation
89
-
90
- | Type | Technique | Use Case |
91
- |------|-----------|----------|
92
- | **Line Drawing** | stroke-dashoffset | Logo reveals, signatures |
93
- | **Morph** | Path interpolation | Icon transitions |
94
- | **Transform** | rotate, scale, translate | Interactive icons |
95
- | **Color** | fill/stroke transition | State changes |
96
-
97
- ### Line Drawing Principles
98
-
99
- ```
100
- How stroke-dashoffset drawing works:
101
- ├── Set dasharray to path length
102
- ├── Set dashoffset equal to dasharray (hidden)
103
- ├── Animate dashoffset to 0 (revealed)
104
- └── Create "drawing" effect
105
- ```
106
-
107
- ### When to Use SVG Animations
108
-
109
- - ✅ Logo reveals, brand moments
110
- - ✅ Icon state transitions (hamburger ↔ X)
111
- - ✅ Infographics, data visualization
112
- - ✅ Interactive illustrations
113
- - ❌ Photo-realistic content (use video)
114
- - ❌ Very complex scenes (performance)
115
-
116
- ### Principles
117
-
118
- - Get path length dynamically for accuracy
119
- - Duration: 1-3s for full drawings
120
- - Easing: ease-out for natural feel
121
- - Simple fills complement, don't compete
122
-
123
- ---
124
-
125
- ## 4. 3D CSS Transforms
126
-
127
- ### Core Properties
128
-
129
- ```
130
- CSS 3D Space:
131
- ├── perspective: depth of 3D field (500-1500px typical)
132
- ├── transform-style: preserve-3d (enable children 3D)
133
- ├── rotateX/Y/Z: rotation per axis
134
- ├── translateZ: move toward/away from viewer
135
- └── backface-visibility: show/hide back side
136
- ```
137
-
138
- ### Common 3D Patterns
139
-
140
- | Pattern | Use Case |
141
- |---------|----------|
142
- | **Card flip** | Reveals, flashcards, product views |
143
- | **Tilt on hover** | Interactive cards, 3D depth |
144
- | **Parallax layers** | Hero sections, immersive scrolling |
145
- | **3D carousel** | Image galleries, sliders |
146
-
147
- ### Principles
148
-
149
- - Perspective: 800-1200px for subtle, 400-600px for dramatic
150
- - Keep transforms simple (rotate + translate)
151
- - Ensure backface-visibility: hidden for flips
152
- - Test on Safari (different rendering)
153
-
154
- ---
155
-
156
- ## 5. Particle Effects
157
-
158
- ### Types of Particle Systems
159
-
160
- | Type | Feel | Use Case |
161
- |------|------|----------|
162
- | **Geometric** | Tech, network | SaaS, tech sites |
163
- | **Confetti** | Celebration | Success moments |
164
- | **Snow/Rain** | Atmospheric | Seasonal, mood |
165
- | **Dust/Bokeh** | Dreamy | Photography, luxury |
166
- | **Fireflies** | Magical | Games, fantasy |
167
-
168
- ### Libraries
169
-
170
- | Library | Best For |
171
- |---------|----------|
172
- | **tsParticles** | Configurable, lightweight |
173
- | **particles.js** | Simple backgrounds |
174
- | **Canvas API** | Custom, maximum control |
175
- | **Three.js** | Complex 3D particles |
176
-
177
- ### Principles
178
-
179
- - Default: 30-50 particles (not overwhelming)
180
- - Movement: slow, organic (speed 0.5-2)
181
- - Opacity: 0.3-0.6 (don't compete with content)
182
- - Connections: subtle lines for "network" feel
183
- - ⚠️ Disable or reduce on mobile
184
-
185
- ### When to Use
186
-
187
- - ✅ Hero backgrounds (atmospheric)
188
- - ✅ Success celebrations (confetti burst)
189
- - ✅ Tech visualization (connected nodes)
190
- - ❌ Content-heavy pages (distraction)
191
- - ❌ Low-powered devices (battery drain)
192
-
193
- ---
194
-
195
- ## 6. Scroll-Driven Animations
196
-
197
- ### Native CSS (Modern)
198
-
199
- ```
200
- CSS Scroll Timelines:
201
- ├── animation-timeline: scroll() - document scroll
202
- ├── animation-timeline: view() - element in viewport
203
- ├── animation-range: entry/exit thresholds
204
- └── No JavaScript required
205
- ```
206
-
207
- ### Principles
208
-
209
- | Trigger Point | Use Case |
210
- |---------------|----------|
211
- | **Entry 0%** | When element starts entering |
212
- | **Entry 50%** | When half visible |
213
- | **Cover 50%** | When centered in viewport |
214
- | **Exit 100%** | When fully exited |
215
-
216
- ### Best Practices
217
-
218
- - Reveal animations: start at ~25% entry
219
- - Parallax: continuous scroll progress
220
- - Sticky elements: use cover range
221
- - Always test scroll performance
222
-
223
- ---
224
-
225
- ## 7. Performance Principles
226
-
227
- ### GPU vs CPU Animation
228
-
229
- ```
230
- CHEAP (GPU-accelerated):
231
- ├── transform (translate, scale, rotate)
232
- ├── opacity
233
- └── filter (use sparingly)
234
-
235
- EXPENSIVE (triggers reflow):
236
- ├── width, height
237
- ├── top, left, right, bottom
238
- ├── padding, margin
239
- └── complex box-shadow
240
- ```
241
-
242
- ### Optimization Checklist
243
-
244
- - [ ] Animate only transform/opacity
245
- - [ ] Use `will-change` before heavy animations (remove after)
246
- - [ ] Test on low-end devices
247
- - [ ] Implement `prefers-reduced-motion`
248
- - [ ] Lazy load animation libraries
249
- - [ ] Throttle scroll-based calculations
250
-
251
- ---
252
-
253
- ## 8. Motion Graphics Decision Tree
254
-
255
- ```
256
- What animation do you need?
257
-
258
- ├── Complex branded animation?
259
- │ └── Lottie (After Effects export)
260
-
261
- ├── Sequenced scroll-triggered?
262
- │ └── GSAP + ScrollTrigger
263
-
264
- ├── Logo/icon animation?
265
- │ └── SVG animation (stroke or morph)
266
-
267
- ├── Interactive 3D effect?
268
- │ └── CSS 3D Transforms (simple) or Three.js (complex)
269
-
270
- ├── Atmospheric background?
271
- │ └── tsParticles or Canvas
272
-
273
- └── Simple entrance/hover?
274
- └── CSS @keyframes or Framer Motion
275
- ```
276
-
277
- ---
278
-
279
- ## 9. Anti-Patterns
280
-
281
- | ❌ Don't | ✅ Do |
282
- |----------|-------|
283
- | Animate everything at once | Stagger and sequence |
284
- | Use heavy libraries for simple effects | Start with CSS |
285
- | Ignore reduced-motion | Always provide fallback |
286
- | Block main thread | Optimize for 60fps |
287
- | Same particles every project | Match brand/context |
288
- | Complex effects on mobile | Feature detection |
289
-
290
- ---
291
-
292
- ## 10. Quick Reference
293
-
294
- | Effect | Tool | Performance |
295
- |--------|------|-------------|
296
- | Loading spinner | CSS/Lottie | Light |
297
- | Staggered reveal | GSAP/Framer | Medium |
298
- | SVG path draw | CSS stroke | Light |
299
- | 3D card flip | CSS transforms | Light |
300
- | Particle background | tsParticles | Heavy |
301
- | Scroll parallax | GSAP ScrollTrigger | Medium |
302
- | Shape morphing | GSAP MorphSVG | Medium |
303
-
304
- ---
305
-
306
- > **Remember**: Motion graphics should enhance, not distract. Every animation must serve a PURPOSE—feedback, guidance, delight, or storytelling.
@@ -1,363 +0,0 @@
1
- # Typography System Reference
2
-
3
- > Typography principles and decision-making - learn to think, not memorize.
4
- > **No fixed font names or sizes - understand the system.**
5
-
6
- ---
7
-
8
- ## 1. Modular Scale Principles
9
-
10
- ### What is a Modular Scale?
11
-
12
- ```
13
- A mathematical relationship between font sizes:
14
- ├── Pick a BASE size (usually body text)
15
- ├── Pick a RATIO (multiplier)
16
- └── Generate all sizes using: base × ratio^n
17
- ```
18
-
19
- ### Common Ratios and When to Use
20
-
21
- | Ratio | Value | Feeling | Best For |
22
- |-------|-------|---------|----------|
23
- | Minor Second | 1.067 | Very subtle | Dense UI, small screens |
24
- | Major Second | 1.125 | Subtle | Compact interfaces |
25
- | Minor Third | 1.2 | Comfortable | Mobile apps, cards |
26
- | Major Third | 1.25 | Balanced | General web (most common) |
27
- | Perfect Fourth | 1.333 | Noticeable | Editorial, blogs |
28
- | Perfect Fifth | 1.5 | Dramatic | Headlines, marketing |
29
- | Golden Ratio | 1.618 | Maximum impact | Hero sections, display |
30
-
31
- ### Generate Your Scale
32
-
33
- ```
34
- Given: base = YOUR_BASE_SIZE, ratio = YOUR_RATIO
35
-
36
- Scale:
37
- ├── xs: base ÷ ratio²
38
- ├── sm: base ÷ ratio
39
- ├── base: YOUR_BASE_SIZE
40
- ├── lg: base × ratio
41
- ├── xl: base × ratio²
42
- ├── 2xl: base × ratio³
43
- ├── 3xl: base × ratio⁴
44
- └── ... continue as needed
45
- ```
46
-
47
- ### Choosing Base Size
48
-
49
- | Context | Base Size Range | Why |
50
- |---------|-----------------|-----|
51
- | Mobile-first | 16-18px | Readability on small screens |
52
- | Desktop app | 14-16px | Information density |
53
- | Editorial | 18-21px | Long-form reading comfort |
54
- | Accessibility focus | 18px+ | Easier to read |
55
-
56
- ---
57
-
58
- ## 2. Font Pairing Principles
59
-
60
- ### What Makes Fonts Work Together
61
-
62
- ```
63
- Contrast + Harmony:
64
- ├── Different ENOUGH to create hierarchy
65
- ├── Similar ENOUGH to feel cohesive
66
- └── Usually: serif + sans, or display + neutral
67
- ```
68
-
69
- ### Pairing Strategies
70
-
71
- | Strategy | How | Result |
72
- |----------|-----|--------|
73
- | **Contrast** | Serif heading + Sans body | Classic, editorial feel |
74
- | **Same Family** | One variable font, different weights | Cohesive, modern |
75
- | **Same Designer** | Fonts by same foundry | Often harmonious proportions |
76
- | **Era Match** | Fonts from same time period | Historical consistency |
77
-
78
- ### What to Look For
79
-
80
- ```
81
- When pairing, compare:
82
- ├── x-height (height of lowercase letters)
83
- ├── Letter width (narrow vs wide)
84
- ├── Stroke contrast (thin/thick variation)
85
- └── Overall mood (formal vs casual)
86
- ```
87
-
88
- ### Safe Pairing Patterns
89
-
90
- | Heading Style | Body Style | Mood |
91
- |---------------|------------|------|
92
- | Geometric sans | Humanist sans | Modern, friendly |
93
- | Display serif | Clean sans | Editorial, sophisticated |
94
- | Neutral sans | Same sans | Minimal, tech |
95
- | Bold geometric | Light geometric | Contemporary |
96
-
97
- ### Pro Max Pairing: Extreme Contrast
98
-
99
- The highest tier of design deliberately creates aesthetic tension:
100
- ```
101
- Hyper-Traditional + Brutalist: e.g., Garamond (Display) + Inter (Tiny, uppercase tracking)
102
- Ultra-Condensed + Ultra-Wide: Mixing opposite widths for structural brutalism
103
- Variable Font Axis Tuning: Don't just use `font-weight`. Adjust `font-stretch`, `slnt`, or custom axes dynamically based on viewport.
104
- ```
105
-
106
- ### Avoid
107
-
108
- - ❌ Two decorative fonts together
109
- - ❌ Similar fonts that conflict
110
- - ❌ More than 2-3 font families
111
- - ❌ Fonts with very different x-heights
112
-
113
- ---
114
-
115
- ## 3. Line Height Principles
116
-
117
- ### The Relationship
118
-
119
- ```
120
- Line height depends on:
121
- ├── Font size (larger text = less line height needed)
122
- ├── Line length (longer lines = more line height)
123
- ├── Font design (some fonts need more space)
124
- └── Content type (headings vs body)
125
- ```
126
-
127
- ### Guidelines by Context
128
-
129
- | Content Type | Line Height Range | Why |
130
- |--------------|-------------------|-----|
131
- | **Headings** | 1.1 - 1.3 | Short lines, want compact |
132
- | **Body text** | 1.4 - 1.6 | Comfortable reading |
133
- | **Long-form** | 1.6 - 1.8 | Maximum readability |
134
- | **UI elements** | 1.2 - 1.4 | Space efficiency |
135
-
136
- ### Adjustment Factors
137
-
138
- - **Longer line length** → Increase line height
139
- - **Larger font size** → Decrease line height ratio
140
- - **All caps** → May need more line height
141
- - **Tight tracking** → May need more line height
142
-
143
- ---
144
-
145
- ## 4. Line Length Principles
146
-
147
- ### Optimal Reading Width
148
-
149
- ```
150
- The sweet spot: 45-75 characters per line
151
- ├── < 45: Too choppy, breaks flow
152
- ├── 45-75: Comfortable reading
153
- ├── > 75: Eye tracking strain
154
- ```
155
-
156
- ### How to Measure
157
-
158
- ```css
159
- /* Character-based (recommended) */
160
- max-width: 65ch; /* ch = width of "0" character */
161
-
162
- /* This adapts to font size automatically */
163
- ```
164
-
165
- ### Context Adjustments
166
-
167
- | Context | Character Range |
168
- |---------|-----------------|
169
- | Desktop article | 60-75 characters |
170
- | Mobile | 35-50 characters |
171
- | Sidebar text | 30-45 characters |
172
- | Wide monitors | Still cap at ~75ch |
173
-
174
- ---
175
-
176
- ## 5. Responsive Typography Principles
177
-
178
- ### The Problem
179
-
180
- ```
181
- Fixed sizes don't scale well:
182
- ├── Desktop size too big on mobile
183
- ├── Mobile size too small on desktop
184
- └── Breakpoint jumps feel jarring
185
- ```
186
-
187
- ### Fluid Typography (clamp)
188
-
189
- ```css
190
- /* Syntax: clamp(MIN, PREFERRED, MAX) */
191
- font-size: clamp(
192
- MINIMUM_SIZE,
193
- FLUID_CALCULATION,
194
- MAXIMUM_SIZE
195
- );
196
-
197
- /* FLUID_CALCULATION typically:
198
- base + viewport-relative-unit */
199
- ```
200
-
201
- ### Scaling Strategy
202
-
203
- | Element | Scaling Behavior |
204
- |---------|-----------------|
205
- | Body text | Slight scaling (1rem → 1.125rem) |
206
- | Subheadings | Moderate scaling |
207
- | Headings | More dramatic scaling |
208
- | Display text | Most dramatic scaling |
209
-
210
- ---
211
-
212
- ## 6. Weight and Emphasis Principles
213
-
214
- ### Semantic Weight Usage
215
-
216
- | Weight Range | Name | Use For |
217
- |--------------|------|---------|
218
- | 300-400 | Light/Normal | Body text, paragraphs |
219
- | 500 | Medium | Subtle emphasis |
220
- | 600 | Semibold | Subheadings, labels |
221
- | 700 | Bold | Headings, strong emphasis |
222
- | 800-900 | Heavy/Black | Display, hero text |
223
-
224
- ### Creating Contrast
225
-
226
- ```
227
- Good contrast = skip at least 2 weight levels
228
- ├── 400 body + 700 heading = good
229
- ├── 400 body + 500 emphasis = subtle
230
- ├── 600 heading + 700 subheading = too similar
231
- ```
232
-
233
- ### Avoid
234
-
235
- - ❌ Too many weights (max 3-4 per page)
236
- - ❌ Adjacent weights for hierarchy (400/500)
237
- - ❌ Heavy weights for long text
238
-
239
- ---
240
-
241
- ## 7. Letter Spacing (Tracking)
242
-
243
- ### Principles
244
-
245
- ```
246
- Large text (headings): tighter tracking
247
- ├── Letters are big, gaps feel larger
248
- └── Slight negative tracking looks better
249
-
250
- Small text (body): normal or slightly wider
251
- ├── Improves readability at small sizes
252
- └── Never negative for body text
253
-
254
- ALL CAPS: always wider tracking
255
- ├── Uppercase lacks ascenders/descenders
256
- └── Needs more space to feel right
257
- ```
258
-
259
- ### Adjustment Guidelines
260
-
261
- | Context | Tracking Adjustment |
262
- |---------|---------------------|
263
- | Display/Hero | -2% to -4% |
264
- | Headings | -1% to -2% |
265
- | Body text | 0% (normal) |
266
- | Small text | +1% to +2% |
267
- | ALL CAPS | +5% to +10% |
268
-
269
- ---
270
-
271
- ## 8. Hierarchy Principles
272
-
273
- ### Visual Hierarchy Through Type
274
-
275
- ```
276
- Ways to create hierarchy:
277
- ├── SIZE (most obvious)
278
- ├── WEIGHT (bold stands out)
279
- ├── COLOR (contrast levels)
280
- ├── SPACING (margins separate sections)
281
- └── POSITION (top = important)
282
- ```
283
-
284
- ### Typical Hierarchy
285
-
286
- | Level | Characteristics |
287
- |-------|-----------------|
288
- | Primary (H1) | Largest, boldest, most distinct |
289
- | Secondary (H2) | Noticeably smaller but still bold |
290
- | Tertiary (H3) | Medium size, may use weight only |
291
- | Body | Standard size and weight |
292
- | Caption/Meta | Smaller, often lighter color |
293
-
294
- ### Testing Hierarchy
295
-
296
- Ask: "Can I tell what's most important at a glance?"
297
-
298
- If squinting at the page, the hierarchy should still be clear.
299
-
300
- ---
301
-
302
- ## 9. Readability Psychology
303
-
304
- ### F-Pattern Reading
305
-
306
- ```
307
- Users scan in F-pattern:
308
- ├── Across the top (first line)
309
- ├── Down the left side
310
- ├── Across again (subheading)
311
- └── Continue down left
312
- ```
313
-
314
- **Implication**: Key info on left and in headings
315
-
316
- ### Chunking for Comprehension
317
-
318
- - Short paragraphs (3-4 lines max)
319
- - Clear subheadings
320
- - Bullet points for lists
321
- - White space between sections
322
-
323
- ### Cognitive Ease
324
-
325
- - Familiar fonts = easier reading
326
- - High contrast = less strain
327
- - Consistent patterns = predictable
328
-
329
- ### Kinetic Typography (Motion)
330
-
331
- Static type is baseline. Pro Max interfaces animate type:
332
- ```
333
- Split-Text Staggering: Animating words or characters individually on scroll entry
334
- Weight Shifting: Variable fonts shifting smoothly from `wght` 300 to 800 on hover
335
- Masking: Text revealing itself from behind invisible overflow masks
336
- ```
337
-
338
- ---
339
-
340
- ## 10. Typography Selection Checklist
341
-
342
- Before finalizing typography:
343
-
344
- - [ ] **Asked user for font preferences?**
345
- - [ ] **Considered brand/context?**
346
- - [ ] **Selected appropriate scale ratio?**
347
- - [ ] **Limited to 2-3 font families?**
348
- - [ ] **Tested readability at all sizes?**
349
- - [ ] **Checked line length (45-75ch)?**
350
- - [ ] **Verified contrast for accessibility?**
351
- - [ ] **Different from your last project?**
352
-
353
- ### Anti-Patterns
354
-
355
- - ❌ Same fonts every project
356
- - ❌ Too many font families
357
- - ❌ Ignoring readability for style
358
- - ❌ Fixed sizes without responsiveness
359
- - ❌ Decorative fonts for body text
360
-
361
- ---
362
-
363
- > **Remember**: Typography is about communication clarity. Choose based on content needs and audience, not personal preference.