elad2412/the-new-css-reset
소개
새롭고 간단하며 더 가벼운 CSS 리셋
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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+ ✔ |
관련 프로젝트 살펴보기
불러오는 중…





