style-dictionary icon indicating copy to clipboard operation
style-dictionary copied to clipboard

design tokens spec dimension tokens

Open tkgroot opened this issue 2 months ago • 1 comments

I revisited the design token specification and saw that the spec has changed for dimensions tokens. I was already hacking together some changes for shadow/css/shorthand transformer and maybe more, but before I go and get loose on this, maybe good to know what your take on this is.

do you actually want to implement these spec changes in the first place? since the changes are mostly breaking with existing implementations I was wondering if I should make them backwards-compatible?

https://www.designtokens.org/tr/drafts/format/#dimension

"spacing-stack-0": {
    "$value": {
      "value": 0,
      "unit": "px"
    },
    "$type": "dimension"
}

i'm happy and willing to contribute and help implement these wherever necessary. just would like to align first before creating unnecessary work.

tkgroot avatar Oct 27 '25 09:10 tkgroot

similar mentioning and discussions around this topic within this issue #1398

tkgroot avatar Oct 31 '25 15:10 tkgroot