tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.37k stars 197 forks source link

Allow more precision on color alpha values #2262

Closed thomasaull closed 7 months ago

thomasaull commented 1 year ago

Is your feature request related to a problem? Please describe.

I'm trying to define colors with very precise alpha values, e.g. #000 with an alpha of 5.5%. When trying to enter this value in tokens studio it gives me an validation error:

image

When not using the color picker, but putting the desired value in the rgba function I don't get a validation error:

image

However, when this token is applied it applies a rounded value, in this case 5% instead of 5.5%: image

Describe the solution you'd like

six7 commented 1 year ago

Thanks for reporting, I think this might be due to the fact that we currently round to 2 decimals, instead of 3 as in your example (0,055) We should change that to 3 to allow these scenarios of low-opacity.

LukeFinch commented 7 months ago

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.

UdayHyma commented 7 months ago

Added to FeatureBase Roadmap : 🎨 Expand functionality of color modifiers