Nominating Presidential Muppets
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

styled-reset

1.6.0 • Public • Published

styled-reset

npm version CircleCI

reset.css for styled-components.

Also see styled-normalize from Sergey Sova.


Installation:

npm i styled-reset (use the -S flag if you're on npm 4 or earlier).

Usage:

import * as React from 'react'
import { createGlobalStyle } from 'styled-components'
import reset from 'styled-reset'
 
const GlobalStyle = createGlobalStyle`
  ${reset}
  /* other styles */
`
 
const App = () => (
  <React.Fragment>
    <GlobalStyle />
    <div>Hi, I'm an app!</div>
  </React.Fragment>
}
 
export default App

If you're using Styled Components version 3.x or 2.x, you'll need to use the injectGlobal api instead:

import { injectGlobal } from 'styled-components'
import reset from 'styled-reset'
injectGlobal`
  ${reset}
`

reset is also available as a named export:

import { reset } from 'styled-reset'

Credits

All credit goes to Eric Meyer for reset.css.

reset.css is public domain (unlicensed).

License:

MIT

install

npm i styled-reset

Downloadsweekly downloads

6,675

version

1.6.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability