Normalize file for Emotion CSS-in-JS library.
The original normalize.css
is pulled from necolas/normalize.css, and parsed into emotion ready format.
npm install --save emotion-normalize
// global.js - place in your app where global styles reside
import emotionNormalize from 'emotion-normalize';
import {injectGlobal} from 'emotion';
/* eslint-disable no-unused-expressions */
injectGlobal`
${emotionNormalize}
// You can continue writing global styles, for instance
*, *::after, *::before {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
}
...
`;
/* eslint-enable */
The MIT License
emotion-normalize is maintained and sponsored by Infinum.