corysimmons / reeeset

:rage3: A slightly opinionated CSS reset. 3 e's.
MIT License
36 stars 4 forks source link
css reset

reeeset

A slightly opinionated CSS reset.

Why?

Normalize is made to make browsers consistent. This is cool, but in the real world margins, padding, box-sizing, are all really annoying things. The easiest way to deal with it is to simply reset them all.

Sanitize.css does something similar and is fairly popular. I might assimilate Sanitize over Normalize in the future, but for now Normalize seems a bit more stable.

This is just my personal-preference layer on top of resets.

"But I like building on top of browser defaults"

REEEEEEEEEEEEEE GET OUT NORMIE!!!!

Features

article * + * {
  margin-top: 1rem;
}

Installation

HTTP2:

<link rel="stylesheet" href="https://unpkg.com/reeeset">
<link rel="stylesheet" href="https://github.com/corysimmons/reeeset/blob/master/css/your_styles.css">

HTTP1:

@import 'https://unpkg.com/reeeset';

/* your styles... */

unpkg is legit (well-known OSS contributor backed by a large company), but if you don't trust the longevity of free CDNs on production work (you really shouldn't) just copy/paste the contents of dist/reeeset.min.css to your file-system.