elad2412/the-new-css-reset
elad2412/the-new-css-reset has 2,334 GitHub stars and 214 forks. GitHot measured -1 stars in 24 hours. Last checked 2026-11-08 20:58 UTC. Last push 2024-08-24.
The New Simple and Lighter CSS Reset
Measured star growth
- in 24h
- -1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original⏪ The New CSS Reset
A package that resets some of the default, user agent based, styles.
It doesn't affect the display property and special HTML elements like iframe, canvas, img, svg and video.
This package is using the new CSS features:
- The global CSS reset keywords,
unsetandrevertkeywords. - The new property of
allwhich can reset all properties combined. - The
:where()pseudo-class to remove specificity. - The
:not()pseudo-class with multi arguments.
Motivation
This package is built with the understanding that we don’t want to use default styles we are getting from the browsers, except for the display property.
How to get started?
Run npm i the-new-css-reset OR Download the Latest Version.
Once installed, you can use it in two different ways:
- Import
/css/reset.cssbefore the regular styles of the project. - Include the following snippet in one of the JavaScript/TypeScript entry files:
import "the-new-css-reset/css/reset.css";
Want to exclude some of the resets?
You can revert to the default styles of the browser!
For example:
input[type="checkbox"],
input[type="radio"] {
all: revert;
}
or all input elements:
input,
textarea,
select {
all: revert;
}
Accessibility Recommendation
To keep your website accessible, don't forget to take care of the :focus states.
:focus { /* focus styles */ }
/* or/and */
:focus-visible { /* keyboard only focus styles */ }
Browser Support
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|---|---|
| 88+ ✔ | 88+ ✔ | 84+ ✔ | 14+ ✔ | 75+ ✔ | 15+ ✔ |
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,232 starspublic-apis/public-apis
A collective list of free APIs
497,482 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
445,616 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,229 stars




