Skip to content

Instantly share code, notes, and snippets.

@epreston
Created August 8, 2023 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epreston/fbd950f4074c46c4fd25cf1b928548fe to your computer and use it in GitHub Desktop.
Save epreston/fbd950f4074c46c4fd25cf1b928548fe to your computer and use it in GitHub Desktop.
css - minimal and opinionated css reset from kevin powell
/* makes sizing simpler */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
margin: 0;
padding: 0;
font: inherit;
}
/* dark mode user-agent-styles */
html {
color-scheme: dark light;
}
/* min body height */
body {
min-height: 100vh;
}
/* responsive images/videos */
img,
picture,
svg,
video {
display: block;
max-width: 100%;
}
@epreston
Copy link
Author

epreston commented Aug 8, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment