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

    styled-resetpublic

    styled-reset

    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:

    // base-styles.js
    import { injectGlobal } from 'styled-components'
    import reset from 'styled-reset'
     
    const baseStyles = () => injectGlobal`
      ${reset}
      /* other styles */
    `
     
    export default baseStyles
     
    // app.js
    import baseStyles from './base-styles'
     
    const App = () => {
      baseStyles()
      return (
        <div>Hi!</div>
      )
    }
     
    export default App

    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

    Downloadslast 7 days

    1,982

    version

    1.3.3

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar