Socket
Socket
Sign inDemoInstall

styled-sanitize.css

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-sanitize.css

Sanitize.css global styles for styled-components


Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

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>
  </>
}

Keywords

FAQs

Package last updated on 09 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc