@istmx/skills 1.2.0 → 2.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 (111) hide show
  1. package/README.md +38 -20
  2. package/bin/cli.js +50 -24
  3. package/istm-animate/SKILL.md +31 -26
  4. package/istm-animate/core/motion-principles/SKILL.md +284 -0
  5. package/istm-animate/core/motion-principles/references/designers.md +127 -0
  6. package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
  7. package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
  8. package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
  9. package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
  10. package/istm-animate/frameworks/css-native/SKILL.md +319 -0
  11. package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
  12. package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
  13. package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
  14. package/istm-animate/frameworks/gsap/SKILL.md +188 -0
  15. package/istm-animate/frameworks/gsap/references/core.md +218 -0
  16. package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
  17. package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
  18. package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
  19. package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
  20. package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
  21. package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
  22. package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
  23. package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
  24. package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
  25. package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
  26. package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
  27. package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
  28. package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
  29. package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
  30. package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
  31. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
  32. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
  33. package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
  34. package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
  35. package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
  36. package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
  37. package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
  38. package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
  39. package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
  40. package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
  41. package/istm-animate/references/animate.md +199 -0
  42. package/istm-animate/references/audit.md +115 -0
  43. package/istm-animate/references/design-engineering.md +674 -0
  44. package/istm-animate/references/improve.md +101 -0
  45. package/istm-animate/references/opportunities.md +132 -0
  46. package/istm-animate/references/plan-template.md +73 -0
  47. package/istm-animate/references/recipes.md +324 -0
  48. package/istm-animate/references/review.md +112 -0
  49. package/istm-animate/references/standards.md +187 -0
  50. package/istm-animate/references/vocabulary.md +173 -0
  51. package/istm-awwward-designer/SKILL.md +29 -17
  52. package/istm-design/SKILL.md +31 -59
  53. package/istm-design/core/design-audit/SKILL.md +248 -0
  54. package/istm-design/core/desktop-principles/SKILL.md +363 -0
  55. package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
  56. package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
  57. package/istm-design/core/mobile-principles/SKILL.md +289 -0
  58. package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
  59. package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
  60. package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
  61. package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
  62. package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
  63. package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
  64. package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
  65. package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  66. package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
  67. package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
  68. package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
  69. package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
  70. package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
  71. package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  72. package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  73. package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  74. package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  75. package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  76. package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  77. package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  78. package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  79. package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  80. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
  81. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  82. package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  83. package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
  84. package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  85. package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  86. package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  87. package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  88. package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  89. package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  90. package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  91. package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  92. package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  93. package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
  94. package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
  95. package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  96. package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  97. package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
  98. package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
  99. package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
  100. package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
  101. package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
  102. package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
  103. package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
  104. package/istm-design/references/apple-design.md +282 -0
  105. package/istm-design/references/generation-guide.md +209 -0
  106. package/istm-design/references/pick-ui-library.md +77 -0
  107. package/istm-design/references/picker.md +197 -0
  108. package/istm-design/references/prototype.md +90 -0
  109. package/istm-design/references/schema.md +366 -0
  110. package/package.json +1 -1
  111. package/RELEASE_v1.2.0.md +0 -40
@@ -0,0 +1,319 @@
1
+ ---
2
+ name: css-native
3
+ description: "Zero-dependency animations and visual techniques - scroll-driven, View Transitions, @starting-style, modern CSS."
4
+ ---
5
+
6
+ # CSS Native — Zero-Dependency Animations & Visual Techniques
7
+
8
+ ## When to Use CSS Native vs Library
9
+
10
+ | Situation | Decision |
11
+ |---|---|
12
+ | < 3 animations on the page | CSS native |
13
+ | Scroll-driven reveal/parallax | CSS native (`animation-timeline`) |
14
+ | Enter/exit from `display: none` | CSS native (`@starting-style` + `transition-behavior: allow-discrete`) |
15
+ | Tooltip/popover positioning | CSS native (anchor positioning) |
16
+ | Page transitions (MPA or SPA) | CSS native (View Transitions API) |
17
+ | Complex multi-step timeline (5+ tweens) | GSAP |
18
+ | Stagger across dynamic list (unknown count) | GSAP or Framer Motion |
19
+ | Physics-based spring with interruption | Framer Motion |
20
+ | Morph between SVG shapes | GSAP MorphSVG |
21
+
22
+ Rule of thumb: if you can express it in a `@keyframes` + one `animation-timeline`, stay in CSS. The moment you need imperative control, sequence coordination, or runtime values — reach for a library.
23
+
24
+ ---
25
+
26
+ ## Scroll-Driven Animations
27
+
28
+ ### Scroll Progress Timeline
29
+
30
+ Animate based on scroll position of a container.
31
+
32
+ ```css
33
+ .progress-bar {
34
+ animation: grow-width linear both;
35
+ animation-timeline: scroll(root block);
36
+ }
37
+
38
+ @keyframes grow-width {
39
+ from { transform: scaleX(0); }
40
+ to { transform: scaleX(1); }
41
+ }
42
+ ```
43
+
44
+ - `scroll(<scroller> <axis>)` — scroller: `nearest` | `root` | `self`, axis: `block` | `inline` | `x` | `y`
45
+ - Default: `scroll(nearest block)`
46
+
47
+ ### View Progress Timeline
48
+
49
+ Animate as an element enters/exits the scrollport.
50
+
51
+ ```css
52
+ .reveal {
53
+ animation: fade-in linear both;
54
+ animation-timeline: view();
55
+ animation-range: entry 0% entry 100%;
56
+ }
57
+
58
+ @keyframes fade-in {
59
+ from { opacity: 0; transform: translateY(2rem); }
60
+ to { opacity: 1; transform: translateY(0); }
61
+ }
62
+ ```
63
+
64
+ ### animation-range
65
+
66
+ Controls which segment of the timeline drives the animation.
67
+
68
+ ```css
69
+ /* Named ranges: cover | contain | entry | exit | entry-crossing | exit-crossing */
70
+ animation-range: entry 0% entry 100%; /* animate during entry only */
71
+ animation-range: contain 0% contain 100%; /* animate while fully visible */
72
+ animation-range: entry 25% exit 75%; /* custom start/end */
73
+ ```
74
+
75
+ Use the [Scroll-driven Animations tool](https://scroll-driven-animations.style/tools/view-timeline/ranges/) to visualize ranges interactively.
76
+
77
+ ---
78
+
79
+ ## View Transitions API
80
+
81
+ ### Same-Document (SPA)
82
+
83
+ ```js
84
+ document.startViewTransition(() => {
85
+ // Update the DOM synchronously
86
+ updateContent();
87
+ });
88
+ ```
89
+
90
+ ```css
91
+ /* Control the transition animation */
92
+ ::view-transition-old(root) {
93
+ animation: fade-out 200ms ease-out;
94
+ }
95
+ ::view-transition-new(root) {
96
+ animation: fade-in 300ms ease-in;
97
+ }
98
+
99
+ /* Named transitions for specific elements */
100
+ .hero-image { view-transition-name: hero; }
101
+
102
+ ::view-transition-group(hero) {
103
+ animation-duration: 400ms;
104
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
105
+ }
106
+ ```
107
+
108
+ ### Cross-Document (MPA)
109
+
110
+ ```css
111
+ /* Both pages need this */
112
+ @view-transition { navigation: auto; }
113
+
114
+ /* Outgoing page */
115
+ .card { view-transition-name: card-detail; }
116
+
117
+ /* Incoming page */
118
+ .detail-hero { view-transition-name: card-detail; }
119
+ ```
120
+
121
+ ### view-transition-class (group styling)
122
+
123
+ ```css
124
+ .card { view-transition-class: card; }
125
+
126
+ ::view-transition-group(*.card) {
127
+ animation-duration: 350ms;
128
+ animation-timing-function: var(--ease-spring);
129
+ }
130
+ ```
131
+
132
+ ---
133
+
134
+ ## @starting-style
135
+
136
+ Native enter animations from `display: none` — no JS timing hacks.
137
+
138
+ ```css
139
+ .dialog {
140
+ opacity: 1;
141
+ transform: translateY(0);
142
+ transition: opacity 300ms ease, transform 300ms ease,
143
+ display 300ms allow-discrete;
144
+
145
+ @starting-style {
146
+ opacity: 0;
147
+ transform: translateY(-1rem);
148
+ }
149
+ }
150
+
151
+ .dialog[hidden] {
152
+ opacity: 0;
153
+ transform: translateY(-1rem);
154
+ display: none;
155
+ }
156
+ ```
157
+
158
+ Key rules:
159
+ - `transition-behavior: allow-discrete` (or shorthand `allow-discrete` in the transition) enables transitioning `display` and `overlay`
160
+ - `@starting-style` block defines the "from" state when the element first renders
161
+ - Combine with `[popover]` and `<dialog>` for native modals with zero JS animation code
162
+
163
+ ---
164
+
165
+ ## Anchor Positioning
166
+
167
+ CSS-native positioning of tooltips, popovers, and floating UI relative to a trigger.
168
+
169
+ ```css
170
+ .trigger {
171
+ anchor-name: --my-trigger;
172
+ }
173
+
174
+ .tooltip {
175
+ position: fixed;
176
+ position-anchor: --my-trigger;
177
+ position-area: top center;
178
+ margin-bottom: 0.5rem;
179
+
180
+ /* Fallback if no space on top */
181
+ position-try-fallbacks: --bottom;
182
+ }
183
+
184
+ @position-try --bottom {
185
+ position-area: bottom center;
186
+ margin-top: 0.5rem;
187
+ }
188
+ ```
189
+
190
+ Combine with `@starting-style` for animated tooltips:
191
+
192
+ ```css
193
+ .tooltip[popover]:popover-open {
194
+ opacity: 1;
195
+ transform: scale(1);
196
+ transition: opacity 150ms ease, transform 150ms ease,
197
+ display 150ms allow-discrete, overlay 150ms allow-discrete;
198
+
199
+ @starting-style {
200
+ opacity: 0;
201
+ transform: scale(0.96);
202
+ }
203
+ }
204
+ ```
205
+
206
+ ---
207
+
208
+ ## Container Queries + Contextual Animations
209
+
210
+ Adapt animations to the component's container size, not the viewport.
211
+
212
+ ```css
213
+ .card-container {
214
+ container-type: inline-size;
215
+ container-name: card;
216
+ }
217
+
218
+ @container card (min-width: 400px) {
219
+ .card-content {
220
+ animation: slide-in-right 400ms var(--ease-out-expo);
221
+ }
222
+ }
223
+
224
+ @container card (max-width: 399px) {
225
+ .card-content {
226
+ animation: fade-in 300ms ease;
227
+ }
228
+ }
229
+ ```
230
+
231
+ Container-relative units in keyframes:
232
+
233
+ ```css
234
+ @keyframes slide-in-right {
235
+ from { transform: translateX(10cqw); opacity: 0; }
236
+ to { transform: translateX(0); opacity: 1; }
237
+ }
238
+ ```
239
+
240
+ ---
241
+
242
+ ## Advanced Visual Techniques
243
+
244
+ ### clip-path Transitions
245
+
246
+ ```css
247
+ .reveal {
248
+ clip-path: inset(0 100% 0 0);
249
+ transition: clip-path 600ms cubic-bezier(0.77, 0, 0.175, 1);
250
+ }
251
+ .reveal.visible {
252
+ clip-path: inset(0 0 0 0);
253
+ }
254
+ ```
255
+
256
+ Shape morphing: transition between `circle()`, `ellipse()`, `polygon()`, `inset()` — as long as the function type and point count match.
257
+
258
+ ### backdrop-filter
259
+
260
+ ```css
261
+ .glass {
262
+ background: oklch(0.98 0.01 250 / 0.6);
263
+ backdrop-filter: blur(12px) saturate(1.8);
264
+ -webkit-backdrop-filter: blur(12px) saturate(1.8); /* Safari */
265
+ }
266
+ ```
267
+
268
+ ### mix-blend-mode
269
+
270
+ ```css
271
+ .overlay-text {
272
+ mix-blend-mode: difference;
273
+ color: white; /* inverts over any background */
274
+ }
275
+ ```
276
+
277
+ ### Mesh Gradients (approximated)
278
+
279
+ ```css
280
+ .mesh {
281
+ background:
282
+ radial-gradient(at 20% 30%, oklch(0.7 0.2 310) 0%, transparent 50%),
283
+ radial-gradient(at 80% 60%, oklch(0.6 0.18 250) 0%, transparent 50%),
284
+ radial-gradient(at 50% 80%, oklch(0.75 0.15 170) 0%, transparent 50%),
285
+ oklch(0.15 0.02 280);
286
+ }
287
+ ```
288
+
289
+ ### conic-gradient Effects
290
+
291
+ ```css
292
+ .spinner {
293
+ background: conic-gradient(from 0deg, transparent 0%, oklch(0.7 0.15 250) 100%);
294
+ border-radius: 50%;
295
+ mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 4px));
296
+ animation: spin 1s linear infinite;
297
+ }
298
+ ```
299
+
300
+ ---
301
+
302
+ ## Do Not
303
+
304
+ | BAD | GOOD | Why |
305
+ |---|---|---|
306
+ | `transition: all 300ms` | `transition: opacity 300ms, transform 300ms` | `all` triggers transitions on every property change, causes unexpected animations, and prevents browser optimization |
307
+ | Animate `width`, `height`, `top`, `left` | Animate `transform`, `opacity`, `clip-path`, `filter` | Layout-triggering properties force reflow on every frame — composite-only properties run on GPU |
308
+ | Scroll-driven animations without fallback | `@supports (animation-timeline: scroll()) { ... }` | Firefox only added support in v128+, older Safari versions lack support |
309
+ | `@starting-style` without `transition-behavior` | Always pair with `allow-discrete` for display/overlay | Without it, `display: none` transitions are skipped entirely |
310
+ | Anchor positioning without `position-try-fallbacks` | Always define fallback positions | Element clips out of viewport if primary position has no space |
311
+ | `animation-fill-mode: forwards` on scroll-driven | Use `both` for scroll-driven animations | `forwards` can lock the element in its final state even when scrolling back |
312
+
313
+ ---
314
+
315
+ ## Deep dive
316
+
317
+ | Need | Reference |
318
+ |---|---|
319
+ | Browser-support tables, fallback patterns and progressive-enhancement strategies for scroll-driven animations, View Transitions, `@starting-style`, anchor positioning and container queries (plus accessibility and performance notes) | `references/modern-css.md` |