Giter Site home page Giter Site logo

iiroj / react-style-reset Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 1.11 MB

An object-style CSS Reset for React

Home Page: https://www.npmjs.com/package/react-style-reset

License: MIT License

HTML 1.93% TypeScript 91.64% JavaScript 6.43%
css emotion normalize react reset style styled-components

react-style-reset's Introduction

react-style-reset

GitHub Actions version code size dependencies devDependencies

An object-style CSS Reset for React.

Features

This module includes Eric Meyer's Reset CSS 2.0 written as "object styles", to be easily used with styled-component and emotion. Also included is a template literal version.

Also included is the popular Normalize.css, a modern HTML5-ready alternative to CSS resets, in both object and template literal versions.

Usage

Reset.css

With object styles:

import reset from 'react-style-reset';
import { injectGlobal } from 'emotion';

injectGlobal(reset, {
  ...
});

With template literal styles:

import reset from 'react-style-reset/string';
import { createGlobalStyle } from 'styled-components';

const GlobalStyles = createGlobalStyle`
  ${reset};

  ...
`;

Normalize.css

With object styles:

import { normalize } from 'react-style-reset';
import { injectGlobal } from 'emotion';

injectGlobal(normalize, {
  ...
});

With template literal styles:

import { normalize } from 'react-style-reset/string';
import { createGlobalStyle } from 'styled-components';

const GlobalStyles = createGlobalStyle`
  ${normalize};

  ...
`;

Credits

Eric Meyer http://meyerweb.com/eric/tools/css/reset/ License: none (public domain)

normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css

License

MIT โ€” see LICENCE

react-style-reset's People

Contributors

iiroj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

split

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.