css-in-js
css-in-js copied to clipboard
Handle units when converting between CSS and JS object
Most CSS-in-JS libraries supporting object format support writing values without unit and assume pixel. For example, 'width: 200px' can be written as 'width: 200'.
Right now I have to manually do it after using the editor plugin. This commit will automate it.
Can we merge this @ansumanshah? This is a really useful feature since many people prefer object styles over template strings.
I would love this feature! Maybe make it an optional setting? Please merge!