emotion-reset
Reset file for Emotion CSS-in-JS library.
The original reset.css
is pulled from kossnocorp/reset.css, and parsed into emotion ready format.
Usage
IMPORTANT! For emotion versions older than 10, use emotion-reset v1.0.4 and refer to this README for usage instructions.
npm install --save emotion-reset
JavaScript
import emotionReset from 'emotion-reset';
import {Global, css} from '@emotion/core';
render(
<Global styles={css`
${emotionReset}
*, *::after, *::before {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
}
`} />
);
License
The MIT License
Credits
This package is heavily inspired/stolen from emotion-normalize.