styled-sanitize.css

1.0.1 • Public • Published

styled-sanitize

Sanitize.css for styled-components


Installation:

npm install styled-sanitize.css

or

yarn add styled-sanitize.css

Usage:

import React from "react";
import Sanitize from "styled-sanitize.css";

const App = () => (
  <>
    <Sanitize />
    <h1>Hello world</h1>
  </>
);

You can also use the named export to customize:

import React from 'react';
import { createGlobalStyle } from 'styled-components';
import { sanitize } from 'styled-sanitize.css';

const GlobalStyle = createGlobalStyle`
  ${sanitize}
  /* more styles */
`

const App = () => (
  <>
    <GlobalStyle />
    <h1>Hello world</h1>
  </>
}

Package Sidebar

Install

npm i styled-sanitize.css

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • tylerwolff