npm i styled-reset (use the
-S flag if you're on npm 4 or earlier).
If you're on styled-components 3.x, please
npm i email@example.com.
Styled Components 4.x || 5.x
import * as React from 'react'import Reset from 'styled-reset'const App =<React.Fragment><Reset /><div>Hi an app!</div></React.Fragment>
You can also use the default export or named export (lowercase) in your own global style:
import * as React from 'react'import createGlobalStyle from 'styled-components'import reset from 'styled-reset'const GlobalStyle = createGlobalStyle`/* other styles */`const App =<React.Fragment><GlobalStyle /><div>Hi an app!</div></React.Fragment>}
Styled Components 3.x
If you're using Styled Components version 3.x or 2.x, you'll need to use the
injectGlobal api instead (and install
reset is also available as a named export:
All credit goes to Eric Meyer for reset.css. reset.css is public domain (unlicensed).
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]