File tree 1 file changed +17
-17
lines changed
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -13,24 +13,24 @@ npm install --save emotion-normalize
13
13
### JavaScript
14
14
15
15
``` js
16
- // global.js - place in your app where global styles reside
16
+ import { Global , css } from " @emotion/core " ;
17
17
import emotionNormalize from ' emotion-normalize' ;
18
- import { injectGlobal } from ' emotion ' ;
19
-
20
- /* eslint-disable no-unused-expressions */
21
- injectGlobal `
22
- ${ emotionNormalize }
23
-
24
- // You can continue writing global styles, for instance
25
- *, *::after, *::before {
26
- box-sizing: border-box ;
27
- -moz-osx-font-smoothing: grayscale ;
28
- -webkit-font-smoothing: antialiased ;
29
- font-smoothing: antialiased ;
30
- }
31
- ...
32
- ` ;
33
- /* eslint-enable */
18
+
19
+ // ...
20
+
21
+ < Global
22
+ styles = {css `
23
+ ${ emotionNormalize }
24
+ html,
25
+ body {
26
+ padding: 0 ;
27
+ margin: 0 ;
28
+ background: white ;
29
+ min-height: 100% ;
30
+ font-family: Helvetica, Arial, sans-serif;
31
+ }
32
+ ` }
33
+ / >
34
34
```
35
35
36
36
## License
You can’t perform that action at this time.
0 commit comments