Specifyapp / parsers

Specify helps you unify your brand identity by collecting, storing and distributing design tokens and assets — automatically.
https://specifyapp.com
Other
111 stars 15 forks source link

feat(to-style-dictionary): Add timeAsIntegers #192

Closed KirillSergeevich closed 1 year ago

KirillSergeevich commented 1 year ago

Added formatTokens.timeAsIntegers to support values-only durations without units.

formatTokens.timeAsIntegers === false -> 100ms formatTokens.timeAsIntegers === true -> 100

AMoreaux commented 1 year ago

Hi @KirillSergeevich, thanks a lot for your PR. After some research, we find an error in the duration management with the style dictionary parser. I close this PR in favor of https://github.com/Specifyapp/parsers/pull/193. The new PR automatically converts duration into ms to be compatible with SD.