css-in-js icon indicating copy to clipboard operation
css-in-js copied to clipboard

Handle units when converting between CSS and JS object

Open satya164 opened this issue 7 years ago • 2 comments

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.

satya164 avatar Oct 07 '18 18:10 satya164

Can we merge this @ansumanshah? This is a really useful feature since many people prefer object styles over template strings.

xndyz avatar Feb 09 '19 22:02 xndyz

I would love this feature! Maybe make it an optional setting? Please merge!

omasback avatar Oct 25 '19 05:10 omasback