Skip to content

Commit cf8610c

Browse files
author
Ivica Batinic
committedJan 19, 2019
Update readme
1 parent e71fd6d commit cf8610c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
 

‎README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ npm install --save emotion-normalize
1313
### JavaScript
1414

1515
```js
16-
// global.js - place in your app where global styles reside
16+
import { Global, css } from "@emotion/core";
1717
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+
/>
3434
```
3535

3636
## License

0 commit comments

Comments
 (0)