1.1.0 • Published 2 years ago

smarthr-normalize-css v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

smarthr-normalize-css

A sharable normalize CSS for SmartHR. This is intended to use at a project for styled-components.

Installation

smarthr-normalize-css is available as an npm package.

// with npm
npm install --save-dev smarthr-normalize-css

// with yarn
yarn add --dev smarthr-normalize-css

Usage

import * as React from 'react'
import { CssBaseLine } from 'smarthr-normalize-css'

const App = () => (
  <React.Fragment>
    <CssBaseLine />
    <div>Hello World!</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 cssBaseLine from 'smarthr-normalize-css'

const GlobalStyle = createGlobalStyle`
  ${cssBaseLine}
  /* other styles */
`

export const App = () => (
  <React.Fragment>
    <GlobalStyle />
    <div>Hello World!</div>
  </React.Fragment>
}
1.1.0

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago