kemiljk / skills
dxe-fluid-design
Design or refine springs, gestures, and interruptible motion when physical continuity or direct manipulation matters.
Install
npx skills add https://github.com/kemiljk/skills --skill dxe-fluid-design- license
- MIT
Fluid Design
Make interfaces feel like continuous physical systems, not discontinuous state flips.
Composition with other skills
- This skill owns how interaction should feel.
dxe-modern-css-htmlowns the most native implementation that can still deliver that feel.- Prefer CSS/HTML when they can express the behaviour.
- Use JavaScript/Motion/SwiftUI when you need interruption, velocity inheritance, gesture continuity, or spring physics CSS cannot express cleanly.
Defaults
- Prefer springs over fixed-duration easings for interactive translation and scale.
- Every user-triggerable animation must be interruptible.
- Prefer direct manipulation over button-only indirection when the object can be grabbed.
- Preserve velocity across gesture boundaries (release → settle/dismiss).
- Keep shared identity across state/route changes when the same object survives.
- Adapt interaction models to input method (mouse, trackpad, touch, keyboard).
- Prefer FLIP, layout animation, or View Transitions for spatial continuity. Use direct layout-property animation only when appropriate to the component and its measured rendering cost.
- Add progressive resistance at edges and rubber-banding at boundaries.
- Sequence choreography: acted object leads, surroundings yield, then settle.
- Provide a reduced-motion path that preserves affordances with safer alternatives.
Prefer / Reject
Tuning starting points
- UI springs: stiffness
200–400, damping20–30, mass0.8–1.2 - Layout reflow: ~
200–350msor a well-damped spring - Gesture dismiss: combine offset threshold + velocity threshold
- Dense hover surfaces: EMA-smoothed velocity with separate engage/disengage thresholds
Input and accessibility
- Desktop + motion: springs, deflection, velocity gating as designed.
- Desktop + reduced motion: keep hierarchy and controls; swap spatial physics for quieter opacity/colour/snap models.
- Touch: prefer drag/scroll metaphors over hover-dependent discovery.
- Keyboard: every interactive surface remains operable without pointer precision.
Review checklist
- Can the user reverse or redirect mid-motion?
- Does travel distance/velocity change the motion response?
- Are only compositor-friendly properties animating for interaction?
- Does reduced motion keep the same tasks possible?
- Do list/grid reflows preserve spatial memory?
- Are hover-dense regions gated against fast pointer sweeps?
- Is JS justified because CSS cannot express the behaviour?
References
- Read Motion recipes [blocked] for a matching gesture or transition implementation.
- Read Principle notes [blocked] when deciding how continuity should behave. Load only the reference needed for the task.