Giter Club home page Giter Club logo

emotion-reset's Introduction

emotion-reset

npm version npm npm

Reset file for Emotion CSS-in-JS library.

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

Version Compatibility

This table indicates the latest versions of emotion-reset supporting each emotion version.

emotion-reset emotion @emotion/core @emotion/react
1.0.4 <10 -- --
2.0.7 -- >=10 --
>=3.0.0 -- -- >=11

Usage

npm install --save emotion-reset

JavaScript

import emotionReset from 'emotion-reset';
import { Global, css } from '@emotion/react';

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.

emotion-reset's People

Contributors

a-marcel avatar dependabot[bot] avatar flugg avatar jgierer12 avatar sayegh7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

emotion-reset's Issues

@babel/polyfill is deprecated

Describe the bug
You now get this warning while installing emotion-reset.

warning emotion-reset > @babel/polyfill > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

To Reproduce
Steps to reproduce the behavior:

  1. Make a project with emotion-reset.
  2. Install the packages using yarn or npm.
  3. See error

Expected behavior
No warnings should be thrown

Desktop (please complete the following information):

  • OS: Windows 10

Additional context
The official site says not to use it anymore: https://babeljs.io/docs/en/babel-polyfill

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.