JSPM

styled-modern-css-reset

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14077
  • Score
    100M100P100Q150496F
  • License MIT

A styled-components wrapper for modern-css-reset

Package Exports

  • styled-modern-css-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-modern-css-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-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...
`;

Hugs

Andy Bellmodern-css-reset