A More Modern CSS Reset (2019)

thunderbong | 71 points

This is nice but it's not what I would call a "reset". It does make arbitrary choices for the value of some properties. It may be very good as "saner defaults", but for examples it doesn't even reset headers' font-size, or the margin above headers for example while it does reset the margin under headers (why?).

It's probably inefficient due to the use of the joker selector, but in modern CSS, I believe an actual reset would be as simple as:

    * { all: unset; }
    head, style, script { display: none; }
p4bl0 | 3 days ago

I don't think CSS resets make developing CSS easier for me... I'd rather have one set of bad defaults to develop on top of, than each project starting with its own set of good defaults that I then have to understand the strengths/weaknesses of every time.

Stuff affected by CSS resets rarely comes up when I'm sticking to the standard set of UI components for the project, and when it does, I need to do just as much debugging with the CSS reset as I would have to do without a reset.

rav | 3 days ago

Nice write up, very targeted at websites with a focus on typography. A more aggressive reset still seems appropriate if you’re building more in web app territory.

wkirby | 3 days ago

I never use CSS resets. Here's why: the

keb_ | 3 days ago

https://github.com/sindresorhus/modern-normalize

  The goal of this project is to make itself obsolete.
m1n7 | 2 days ago
[deleted]
| 3 days ago
[deleted]
| 3 days ago
[deleted]
| 3 days ago
[deleted]
| 3 days ago

Modern CSS reset is Flutter

divan | 3 days ago