Skip to content

Commit 6473c03

Browse files
committed
added package.json keywords and JS example
1 parent 5af863f commit 6473c03

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,21 @@ Example webpack configuration:
2626
{ test: /\.js$/, loader: 'babel' },
2727
],
2828
}
29+
```
30+
31+
Now you can write CSS in JS:
32+
33+
```js
34+
import { minWidth } from './utils/media';
35+
import { lap } from './breakpoints';
36+
37+
export default {
38+
'.root': {
39+
background: 'blue',
40+
41+
[minWidth(lap)]: {
42+
background: 'red',
43+
},
44+
},
45+
};
2946
```

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
"postcss-js": "^0.1.1",
1010
"webpack": "^1.12.9"
1111
},
12+
"keywords": [
13+
"webpack",
14+
"css",
15+
"js",
16+
"postcss",
17+
"css in js"
18+
],
1219
"repository": {
1320
"type": "git",
1421
"url": "git+ssh://git@github.com/nthtran/css-in-js-loader.git"

0 commit comments

Comments
 (0)