You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your ask is for json-to-scss to automatically convert unitless js/JSON numbers to pixel lengths, I'm sorry but I don't think it's going to happen.
While technically, this is do-able, I don't believe that this kind of behavior would work for everyone and/or every numerical values.
For example, what about a possible line height such as lineHeight: 1.5 ?
I, in most if not all cases, would not want the tool to produce something like $lineHeight: 1.5px
Also, and while I understand why some js driven css spec / libraries would consider making certain assumptions for length units, I don't think this would make total sense for json-to-scss.
For these reasons, I won't implement such changes for now.
In case I misunderstood your request, please let me know.
https://github.com/system-ui/theme-ui
https://theme-ui.com/theming
I've been using a lot the above spec and would love to see conversion support in
json-to-scss
for the above spec.I assume things like:
should be converted to SASS list:
I have written regarding this here as well
The text was updated successfully, but these errors were encountered: