styled-minireset.css
v1.0.2
Published
Jeremy Thomas's minireset.css for styled-components.
Downloads
2
Maintainers
Readme
styled-miniresetcss
Jeremy Thomas's minireset.css for styled-components
Installation:
npm i styled-minireset.css
(use the -S
flag if you're on npm 4 or earlier).
Usage:
Styled Components 4.x
import * as React from "react";
import { MiniReset } from "styled-minireset.css";
const App = () => (
<React.Fragment>
<Reset />
<div>Hi, I'm 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-minireset.css'
const GlobalStyle = createGlobalStyle`
${reset}
/* other styles */
`
const App = () => (
<React.Fragment>
<GlobalStyle />
<div>Hi, I'm an app!</div>
</React.Fragment>
}
export default App