Replies: 1 comment
-
|
On your question about system tokens pointing to other system tokens - yes! I believe we do this for typography today (and perhaps depth). It seems like this would be a composite token, where the style is created by combining primitives. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What
We want to add support for "effects" style of motion in Canvas, now that we have our initial base and system tokens in place.
Why
We want to work towards a consistent approach to motion at Workday. Having the beginnings of "batteries-included" motion tooling available for developers will help us get there.
How
We want to add support for an "enter the screen" motion, by adding:
system.motion.effect.enter-fade-up.*, to encourage proper pairing of easing and duration values matching our Canvas motion docs pairings](https://canvas.workday.com/styles/tokens/motion)Effects Tokens
system.motion.effect.enter-fade-up.duration→ expected to point to a base duration token likebase.duration300system.motion.effect.enter-fade-up.easing→ expected to point to a system easing curve likesystem.motion.easing.purposeful.decelerationReact Component
This "enter the screen" motion component will be added as a "labs" component. It will use the web animation API to implement a slide up and fade-in motion. It will include a default distance parameter for the slide motion (using our system gap tokens by default) which will also be configurable.
We'll use the Canvas Kit pattern of a model to allow for overrides of the default motion parameters.
We'll also include built-in support for "prefers reduced motion" in the component.
Pending feedback from users who uptake this component, we may add more motion "effects" components.
Notes
Questions
Beta Was this translation helpful? Give feedback.
All reactions