amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.93k stars 557 forks source link

Platform config props transformed resulting in confusing format platform argument #1172

Open jorenbroekema opened 6 months ago

jorenbroekema commented 6 months ago

image

Okay seems this doesn't work in the way I was personally expecting, but I'll raise an issue for this and probably refactor this a bit to make platform.transforms in formatter args just be the array of strings (transform names), because this is a bit confusing for users if they want to make use of the platform config inside a formatter

Originally posted by @jorenbroekema in https://github.com/amzn/style-dictionary/issues/1171#issuecomment-2081229778