Which CSS Reset is more reliable in todays era?
CSS Remedy: https://github.com/jensimmons/cssremedy/blob/master/css/remedy.css
or
Normalize CSS: https://github.com/necolas/normalize.css/blob/master/normalize.css
GitHub
cssremedy/css/remedy.css at master · jensimmons/cssremedy
Start your project with a remedy for the technical debt of CSS. - jensimmons/cssremedy
GitHub
normalize.css/normalize.css at master · necolas/normalize.css
A modern alternative to CSS resets. Contribute to necolas/normalize.css development by creating an account on GitHub.
2 Replies
Considering that CSS Remedy isn't exactly a reset, I guess Normalize?
But to actually answer the question and not be pedantic, you'll find the answer in the docs for CSS Remedy:
Normalize and similar projects took a different approach. Rather than removing all styling, they set out to create sensible defaults and eliminate browser bugs. Use one of these and you get a consistent base across all browsers.
CSS Remedy sets CSS properties or values to what they would be if the CSSWG were creating the CSS today, from scratch, and didn't have to worry about backwards compatibility.Normalize sets everything to a predetermined default, assuming that browsers have widly different UA style sheets. CSS Remedy, on the other hand, only changes things that are "wonky" but aren't "wrong". As you can see from your links, Normalize has almost twice as many lines of code. Normalize was important back when it came out, but we're no longer in the era of browsers having widely different default styles, so it's less useful. If you need a "reset", I would suggest taking what you need from CSS Remedy. The file itself is well-documented as to why they did all of what they did, so you can pick-and-choose what you want/need.
I’d recommend Andy bell or josh comeau’s reset
https://andy-bell.co.uk/a-modern-css-reset/
https://www.joshwcomeau.com/css/custom-css-reset/
Andy Bell
A Modern CSS Reset - Andy Bell
I think about and enjoy very boring CSS stuff—probably much more than I should do, to be honest. One thing that I’ve probably spent too much time thinking about over the years, is CSS resets. In this modern era of web development, we don’t really need a heavy-handed reset, or even a reset at all, […]
My Custom CSS Reset
I have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!