Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

infinum/emotion-normalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

import { Global, css } from "@emotion/react";
import emotionNormalize from 'emotion-normalize';

// ...

<Global
  styles={css`
    ${emotionNormalize}
    html,
    body {
      padding: 0;
      margin: 0;
      background: white;
      min-height: 100%;
      font-family: Helvetica, Arial, sans-serif;
    }
  `}
/>

License

The MIT License

Credits

emotion-normalize is maintained and sponsored by Infinum.