My CSS reset collected from multiple sources
Find a file
2024-04-19 10:25:39 +02:00
build better build setup and fixed errors 2024-04-19 10:18:13 +02:00
public better build setup and fixed errors 2024-04-19 10:18:13 +02:00
.gitignore fixed gitignore 2024-04-19 10:20:04 +02:00
index.html better build setup and fixed errors 2024-04-19 10:18:13 +02:00
package-lock.json first version 2024-04-17 16:58:44 +02:00
package.json first version 2024-04-17 16:58:44 +02:00
README.md added the minified file in the readme and more sources 2024-04-19 10:25:39 +02:00
reset.css better build setup and fixed errors 2024-04-19 10:18:13 +02:00
vite.config.js better build setup and fixed errors 2024-04-19 10:18:13 +02:00

CSS Reset 2024

A collection of various CSS rules and tips to ensure a clean base for your styling.

Included CSS rules come from the following sources:


Get it here (minified)

For Explanations and Comments see the Unminified Source File

*,*:after,*:before{box-sizing:border-box}*{margin:0;padding:0;font:inherit}html{color-scheme:dark light}body{margin:unset}body{min-height:100vh;min-height:100svh}picture,svg,video,canvas{display:block;max-inline-size:100%;max-width:100%;block-size:auto}img{font-style:italic;background-repeat:no-repeat;background-size:cover;shape-margin:1rem;max-width:100%;height:auto;vertical-align:middle}h1,h2,h3,h4,h5,h6{text-wrap:balance}p{max-width:75ch;text-wrap:pretty}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media (prefers-reduced-motion: no-preference){:has(:target){scroll-behavior:smooth;scroll-padding-top:2rem}}html{hanging-punctuation:first last}

Contributing

If you spot a bug or want to add a new rule, feel free to send me a pull request!