Skip to content

Latest commit

 

History

History
executable file
·
42 lines (30 loc) · 960 Bytes

README.md

File metadata and controls

executable file
·
42 lines (30 loc) · 960 Bytes

emotion-reset

Reset file for Emotion CSS-in-JS library.

The original reset.css is pulled from shannonmoeller/reset.css, and parsed into emotion ready format.

Usage

npm install --save emotion-reset

JavaScript

// global.js - place in your app where global styles reside
import emotionReset from 'emotion-reset';
import {injectGlobal} from 'emotion';

/* eslint-disable no-unused-expressions */
injectGlobal`
${emotionReset}

// 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 */

License

The MIT License

Credits

This package is heavily inspired/stolen from emotion-normalize.