Created
October 26, 2022 06:12
-
-
Save grantjenks/cd922cb1f56935375eb7cadba1c02449 to your computer and use it in GitHub Desktop.
Basic CSS styling for HTML webpages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mostly stolen from https://news.ycombinator.com/item?id=32972768