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

Combination token with padding overwrites itemspacing token

Open bewarai opened this issue 3 years ago • 2 comments

I have 2 tokens. One has only paddings assigned to it. The other spacing. Either one overwrites the other. It should be possible to have an auto-layout with 2 combo tokens.

bewarai avatar Jul 22 '22 15:07 bewarai

+1.

It seems like there can only be one active token per token slot at once, but it sure would be great if we could have multiple composition tokens active at once.

tylerhellner avatar Jul 22 '22 21:07 tylerhellner

Makes me wonder, if both combo tokens have both padding assigned which one will overwrite the other? Maybe an !important could be helpfull. That case I could have a card token with spacing and RLTB padding and another combo token with bottom and top set to another value which could overwrite the values of the first! Just like css

bewarai avatar Jul 25 '22 11:07 bewarai

note: this will be part of Composition Token improvements

rbosker avatar Dec 08 '22 08:12 rbosker

Closing this in favor of https://github.com/tokens-studio/figma-plugin/issues/1218

six7 avatar Mar 03 '23 19:03 six7