A legal way of doing inline css
npm install css-atoms
CSS Atoms
=========
A legal way of doing inline css
A low-level, configurable CSS toolkit.
---
Default support is last 2 versions of each browser. However, you can compile atoms yourself and extend browser support.
* Sass
* Less
* Stylus
A simple set of configurable via atoms config css classes that repeats most of the css properties.
CSS Atoms can be useful when you need to apply a simple css rule on a single element without inline css and without creating dedicated css file.
Using atoms are good because:
* DRY Rule. When you reuse CSS class created once you don't create duplicated code.
* Quicker to style/prototype. Instead of creating separate anchor class/id for an element and style it you can simply apply class on your element without going into styles at all.
* No more inline styles. Instead of doing inline CSS you can apply class.
* Easy to override and change. Atoms have flat structure which allows easily overwrite them.
Sass (in your styles.scss)
``scss
// use original
@import '
// or create your config
@import '
@import '
`
Less (in your styles.less)
`less
// use original
@import '
// or create your config
@import '
@import '
`
Stylus (in your styles.styl)
`stylus
// use original
@import '
// or create your config
@import '
@import '
`
In your index.html
`html`
html
User Name

Simple layout
Hello world!
`$3
`html
User Name

Simple layout
Hello world!
`
How to contribute
1. Install all dependencies
npm install2. To run in dev mode
npm start3. To update dist file
npm run build`- If you have something preprocessor specific, then use one of the preprocessors branches (sass/less/stylus).
- For each new atom create new branch.
- Please, try to add new atoms for each preprocessor (sass, less, stylus)
- Pull request changes and new atoms, never work on master.
- If you can't fix issue or can't add new atom, then create an issue on github.