styled-modern-css-reset
v1.0.4
Published
A styled-components wrapper for modern-css-reset
Downloads
1,013
Readme
styled-modern-css-reset
A styled-component wrapper for modern-css-reset.
Installation
npm install styled-modern-css-reset
Usage
In the root component:
import Reset from "styled-modern-css-reset";
import React from "react";
export default () => (
<>
<Reset />
<h1>Hello, World!</h1>
</>
);
Alternatively, along with your app's global styles:
import { reset } from "styled-modern-css-reset";
import { createGlobalStyle } from "styled-components";
import React from "react";
const globalStyles = createGlobalStyle`
${reset}
// Other styles...
`;