Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kufu/smarthr-normalize-css
https://github.com/kufu/smarthr-normalize-css
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/kufu/smarthr-normalize-css
- Owner: kufu
- License: mit
- Created: 2020-11-05T05:33:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T01:22:01.000Z (15 days ago)
- Last Synced: 2024-10-26T14:41:10.300Z (13 days ago)
- Language: TypeScript
- Size: 590 KB
- Stars: 2
- Watchers: 65
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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](https://www.npmjs.com/package/smarthr-normalize-css).
```sh
// with npm
npm install --save-dev smarthr-normalize-css// with yarn
yarn add --dev smarthr-normalize-css
```## Usage
```jsx
import * as React from 'react'
import { CssBaseLine } from 'smarthr-normalize-css'const App = () => (
Hello World!
)
```You can also use the default export or named export (lowercase) in your own
global style.```jsx
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 = () => (
Hello World!
}
```