renanrboliveira / emotion-normalize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emotion-normalize

Normalize file for Emotion CSS-in-JS library.

The original normalize.css is pulled from necolas/normalize.css, and parsed into emotion ready format.

Usage

npm install --save emotion-normalize

JavaScript

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

License

The MIT License

Credits

emotion-normalize is maintained and sponsored by Infinum.

About

License:MIT License


Languages

Language:JavaScript 100.0%