We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af863f commit 6473c03Copy full SHA for 6473c03
README.md
@@ -26,4 +26,21 @@ Example webpack configuration:
26
{ test: /\.js$/, loader: 'babel' },
27
],
28
}
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
+};
46
```
package.json
@@ -9,6 +9,13 @@
9
"postcss-js": "^0.1.1",
10
"webpack": "^1.12.9"
11
},
12
+ "keywords": [
13
+ "webpack",
14
+ "css",
15
+ "js",
16
+ "postcss",
17
+ "css in js"
18
+ ],
19
"repository": {
20
"type": "git",
21
"url": "git+ssh://git@github.com/nthtran/css-in-js-loader.git"
0 commit comments