feat(theme): add motion tokens and popup-scale animation#567
Merged
Conversation
Add curve and duration tokens to primitives/animations/animate.js based on the Motion design tokens (productive/expressive entrance/exit curves and fast/moderate/slow durations). Compose popup-scale-in/out animations from these tokens.
Expose .animate-popup-scale-in and .animate-popup-scale-out utilities with matching popupScaleIn/popupScaleOut keyframes (opacity + scale 0.95 → 1). Support a configurable transform-origin via the --popup-origin CSS variable.
HerbertJulio
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
curveandduration) inpackages/theme/src/tokens/primitives/animations/animate.js, matching the Motion design tokens (productive/expressive entrance & exit curves; fast/moderate/slow durations).popup-scale-in/popup-scale-outanimations from those tokens..animate-popup-scale-inand.animate-popup-scale-outsemantic utilities withpopupScaleIn/popupScaleOutkeyframes (opacity + scale 0.95 → 1), with a configurable--popup-origintransform origin.Tokens
Curves
curve-productive-entrancecubic-bezier(0.39, 0.57, 0.56, 1)curve-productive-exitcubic-bezier(0.55, 0.09, 0.68, 0.53)curve-expressive-entrancecubic-bezier(0.17, 0.84, 0.44, 1)curve-expressive-exitcubic-bezier(0.95, 0.05, 0.8, 0.04)Durations
duration-fast-01duration-fast-02duration-moderate-01duration-moderate-02duration-slow-01duration-slow-02Test plan
pnpm --filter @azion/theme build).animate-popup-scale-in/.animate-popup-scale-outare emitted in the generated CSS--popup-originoverrides the transform origin as expected