modern-css-reset/README.md
2023-06-19 18:17:54 -07:00

66 lines
1.4 KiB
Markdown

# A modern CSS reset
![The Uncompressed size of this reset](https://img.badgesize.io/https://unpkg.com/modern-css-reset?label=Uncompressed%20Size)
![The GZIP size of this reset](https://img.badgesize.io/https://unpkg.com/modern-css-reset?compression=gzip&label=GZIP%20Size)
![The Brotli size of this reset](https://img.badgesize.io/https://unpkg.com/modern-css-reset?compression=brotli&label=Brotli%20Size)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
A tiny little reset that you can use as the basis of your CSS projects. You can
read
a [breakdown of it here](https://hankchizljaw.com/wrote/a-modern-css-reset/).
## Installation
NPM:
```console
npm install --save-dev @punkfairie/modern-css-reset
```
Yarn:
```console
yarn add @punkfairie/modern-css-reset
```
Unpkg CDN:
```html
<link rel="stylesheet"
href="https://unpkg.com/@punkfairie/modern-css-reset/dist/reset.min.css"/>
```
jsDelivr CDN:
```html
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@punkfairie/modern-css-reset/dist/reset.min.css"/>
```
### Manual installation
First, let's clone this repository:
```console
git clone https://github.com/punkfairie/modern-css-reset.git
```
Then, go to `modern-css-reset` directory:
```console
cd modern-css-reset
```
And now, you can minify and move the main reset to the `dist` by running:
```console
npm run build
```
That's it! 🎉
## License
MIT