threepointone / glamor

inline css for react et al
MIT License
3.66k stars 200 forks source link

Generate inline style attribute text. #394

Open ccorcos opened 4 years ago

ccorcos commented 4 years ago

I'm looking to use glamor for a very simple use-case: generating inline style attribute text.

glamor.inline({backgroundColor: blue, borderRadius: 12}) => "background-color:blue;border-radius:12px"
netojose commented 2 years ago

@ccorcos , if you want write inline css, you can use just react for this:

<p style={{backgroundColor: blue, borderRadius: 12}}}>Hi</p>

ccorcos commented 2 years ago

I am not using React in this context

netojose commented 2 years ago

I am not using React in this context

So, in this case, I suppose this package can't help you. According to implementation specification, this tool go to another direction.

And, I think this tool is not maintained. The last version is from 8 years ago, and the last commit to this repository, was 7 years ago.