Add modern CSS reset

This commit is contained in:
Ella Dunbar 2025-10-27 16:56:56 -05:00
parent 8e976118ec
commit e0754f59b7

View file

@ -1,3 +1,67 @@
/* https://www.joshwcomeau.com/css/custom-css-reset/ */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* * { */
/* margin: 0; */
/* } */
@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
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;
hyphens: auto;
}
p {
text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
/* our stuff */
:root { :root {
/* auto light/dark based on user choice */ /* auto light/dark based on user choice */
color-scheme: light dark; color-scheme: light dark;