Package Exports
- styled-reset
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (styled-reset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
styled-reset
reset.css for styled-components.
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
Credits
All credit goes to Eric Meyer for reset.css.
reset.css is public domain (unlicensed).