• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

css-in-js

Autocomplete JS and React Native styles, and converting copied CSS to JS styles and vice versa
  • #autocomplete
  • #react
  • #react-native
  • #glamourous
  • #glamour
ansumanshah
1.4.0 8,872
13
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Atom Autocomplete for React Native and css-in-js Star on GitHubTweet

PRs Welcome Version MIT License

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

ReactNative

Autocomplete

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

Convert

Coming Soon

Codemods for easy shifting between css-in-js libraries

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by