Reset
Modern SCSS, CSS reset.
Install
Install New UI Reset from your terminal via npm.
npm i -D @new-ui/reset
Usage
@use "@new-ui/reset"; // Use `@import` for CSS
The new reset
A thoughtful SCSS, CSS reset that preserves browser defaults while giving you complete design control. New UI reset eliminates cross-browser inconsistencies without being overly opinionated, allowing you to build upon a clean foundation.
// https://cdn.jsdelivr.net/npm/@new-ui/reset@latest/dist/index.css
*, *::before, *::after {
box-sizing: border-box;
}
html {
font-size: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
vertical-align: baseline;
}
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
margin: 0;
padding: 0;
}
ol, ul {
list-style: none;
}
img,
picture {
max-width: 100%;
display: block;
}
input, textarea, button, select {
font-family: inherit;
font-size: 100%;
margin: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}