Eric Meyer's Reset CSS for styled-components
npm install styled-resetEric Meyer's Reset CSS for styled-components
Also see styled-normalize from Sergey Sova.
--------
npm i styled-reset
``jsx
import * as React from 'react'
import { Reset } from 'styled-reset'
const App = () => (
Hi, I'm an app!
)
`
You can also use the default export or named export (lowercase) in your own
global style:
`jsx
import * as React from 'react'
import { createGlobalStyle } from 'styled-components'
import reset from 'styled-reset'
const GlobalStyle = createGlobalStyle
${reset}
/ other styles /
const App = () => (
Hi, I'm an app!
)
export default App
`
If you're using Styled Components version 3.x or 2.x, you'll need to use the
injectGlobal api instead (and install styled-reset@1.7.1):
`javascript
import { injectGlobal } from 'styled-components'
import reset from 'styled-reset'
injectGlobal
${reset}`
reset is also available as a named export:
`javascript``
import { reset } from 'styled-reset'
All credit goes to Eric Meyer for reset.css. reset.css is public domain (unlicensed).