Socket
Socket
Sign inDemoInstall

react-style-reset

Package Overview
Dependencies
0
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-style-reset

An object-style CSS Reset for React


Version published
Weekly downloads
925
decreased by-0.96%
Maintainers
1
Install size
60.7 kB
Created
Weekly downloads
 

Changelog

Source

1.3.2 (2020-08-20)

Bug Fixes

  • use correct border-box instead of borderBox (67fe9b0)

Readme

Source

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

Keywords

FAQs

Last updated on 20 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc