Skip to content

Instantly share code, notes, and snippets.

@grantjenks
Created October 26, 2022 06:12
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 grantjenks/cd922cb1f56935375eb7cadba1c02449 to your computer and use it in GitHub Desktop.
Save grantjenks/cd922cb1f56935375eb7cadba1c02449 to your computer and use it in GitHub Desktop.
Basic CSS styling for HTML webpages.
html {
max-width: 70ch;
padding: calc(1vmin + .5rem);
margin-inline: auto;
font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em);
font-family: system-ui;
}
body {
line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.3;
}
:root {
color-scheme: light dark;
}
/* Beyond these, go with mvp.css */
@grantjenks
Copy link
Author

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