Skip to content

jynxio/modern-css-reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Description

Eric Meyer's CSS Reset is great but outdated, we need a more modern CSS Reset, and this is my solution!

Code

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html, body {
    height: 100%;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    text-rendering: optimizeSpeed;       /* Optional */
    -webkit-font-smoothing: antialiased; /* Optional */
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    hyphens: auto;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

#root {
    isolation: isolate;
}

Thanks

License

MIT

About

Let's use the modern css reset solution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published