threepointone / glamor

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

Support whitespace in addition to "white-space" #355

Closed JoshuaKGoldberg closed 1 year ago

JoshuaKGoldberg commented 6 years ago

CSS defines it as "white-space". That means we have to use "white-space" as our object keys.

const styles = css({
    "white-space": "pre",
})

It'd be nice to say whitespace without the quotes instead.

const styles = css({
    whitespace: "pre"
})