An open API service indexing awesome lists of open source software.

https://github.com/ahabhgk/postcss-atomizer

(WIP) Using atom css without css-in-js
https://github.com/ahabhgk/postcss-atomizer

Last synced: 3 months ago
JSON representation

(WIP) Using atom css without css-in-js

Awesome Lists containing this project

README

        

# (WIP) PostCSS Atomizer

[PostCSS] plugin for using atomic css in css modules.

[PostCSS]: https://github.com/postcss/postcss

```css
.foo {
/* Input example */
}
```

```css
.foo {
/* Output example */
}
```

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-atomizer
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
plugins: [
+ require('postcss-atomizer'),
require('autoprefixer')
]
}
```

[official docs]: https://github.com/postcss/postcss#usage