figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

Introduce duration tokens

Open derekluciani opened this issue 4 years ago • 3 comments

Description

Add support for duration tokens. Properties+example: https://second-editors-draft.tr.designtokens.org/format/#duration

Background

type: 'duration',
label: 'Duration',
appliedToken: 'duration',
value: The value MUST be a string containing a number (either integer or floating-point) followed by an "ms" unit

Applying

Applying this token would influence the node.reactions[].action.transition.duration property of all reactions. If there is no reaction on a layer, don't do anything. Links to Figma API: https://www.figma.com/plugin-docs/api/Reaction https://www.figma.com/plugin-docs/api/FrameNode#reaction-prototyping-related-properties https://www.figma.com/plugin-docs/api/Transition

derekluciani avatar Nov 03 '21 12:11 derekluciani

We don't have the duration type yet, but we should definitely add it! I think we can customize the easings of prototype interactions with the plugin now, so this is a perfect case for tokens!

six7 avatar Nov 03 '21 20:11 six7

Do you plan to add both duration and timing/easing tokens?

jamesrdavis avatar May 27 '22 08:05 jamesrdavis

Yes, we do! We plan on adding new token types in the coming months, motion being one of them!

Especially easing will be really powerful as Figma provides no native support for easing Styles.

six7 avatar May 28 '22 06:05 six7

This request has been moved to our new feedback tool. Go check out https://tokensstudio.featurebase.app/ to create a free account. You can upvote and comment on existing posts, make a new request, and subscribe to be notified when requests move into our roadmap.

LukeFinch avatar Apr 12 '24 17:04 LukeFinch

Added to Featurebase Roadmap : 🪙 Expand token types

UdayHyma avatar Apr 15 '24 09:04 UdayHyma