3 ms·
I wrote my version here last year: https://www.swyx.io/css-100-bytes https://www.swyx.io/css-100-bytes html { max-width: 70ch; padding: 3em 1em
by swyx 4y ago
I wrote my version here last year: https://www.swyx.io/css-100-bytes https://www.swyx.io/css-100-bytes
html {
max-width: 70ch;
padding: 3em 1em;
margin: auto;
line-height: 1.75;
font-size: 1.25em;
}
if you have 100 more to spare:
h1,h2,h3,h4,h5,h6 {
margin: 3em 0 1em;
}
p,ul,ol {
margin-bottom: 2em;
color: #1d1d1d;
font-family: sans-serif;
}
explanation in the blogpost
- curlftpfs 4y agoElement-based selectors, setting the root font-size, mixed units, text color with no background color...I guess the assumption is that you won't add ANY other styling? Big headaches down the road if you do.
- swyx 4y agowell yeah thats the gimmick with these things, ultra minimalist drop in css. its not like its hard to modify later on