css-in-js
Autocomplete JS and React Native styles, and converting copied CSS to JS styles and vice versa
This package provides the following services:
Atom Autocomplete for React Native and css-in-js
Now get Autocomplete for CSSinJS libraries using object styles.
Installation
apm install css-in-js
Or go to Settings → Install and search for css-in-js
Usage
const btnA = css({ /* styles */ });
const btnB = glamorous.div({ /* styles */ });
const btnC = StyleSheet.create({ /* styles */ });
Only works for these keywords by default you can edit in settings for more.
glamorous | css | StyleSheet.create
Does not work for general objects
let styles = {
/* styles */
}
This is basically a fork of autocomplete-css
CTRL + ALT + J to convert the css lines to js
Coming Soon
Codemods for easy shifting between css-in-js libraries