Link to this headingCSS

https://modern-css.com/

https://thecascade.dev/article/least-amount-of-css/

Basic CSS:

html { max-width: 70ch; padding: 3em 1em; margin: auto; line-height: 1.75; font-size: 1.25em; } h1,h2,h3,h4,h5,h6 { margin: 3em 0 1em; } p,ul,ol { margin-bottom: 2em; color: #1d1d1d; font-family: sans-serif; }

CSS Reset:

/* 1. Use a more-intuitive box-sizing model */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } /* 3. Enable keyword animations */ @media (prefers-reduced-motion: no-preference) { html { interpolate-size: allow-keywords; } } body { /* 4. Add accessible line-height */ line-height: 1.5; /* 5. Improve text rendering */ -webkit-font-smoothing: antialiased; } /* 6. Improve media defaults */ img, picture, video, canvas, svg { display: block; max-width: 100%; } /* 7. Inherit fonts for form controls */ input, button, textarea, select { font: inherit; } /* 8. Avoid text overflows */ p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; } /* 9. Improve line wrapping */ p { text-wrap: pretty; } h1, h2, h3, h4, h5, h6 { text-wrap: balance; } /* 10. Create a root stacking context */ #root, #__next { isolation: isolate; }

OPensource UI elements
Cheat Sheet for CSS Selectors

Better UI:

  • 60-100 Characters per line. Use the ch unit
  • line high 1.4
  • padding 15px
  • Text size 16px
  • limit to 2-3 typefaces
    • Main body font (serif)
    • Code font (monospaced)
    • Headers Font (sans serif)
  • Limit to 2-3 main colors

Link to this headingFlexbox

https://www.joshwcomeau.com/css/interactive-guide-to-flexbox/

Link to this headingCenter Div

div { display: flex justify-content: center align-items: center }
div { display: grid place-items: center }

Link to this headingCSS Frameworks

Easy CSS with transitions
https://picocss.com/

Link to this headingFonts

Scale font with screensize

Link to this headingAnimations

Link to this headingCool CSS Stuff

advanced CSS to give the illusion of shiny Pokemon Cards
https://www.4rknova.com/blog/2025/08/30/foil-sticker

Link to this headingProperties

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/text-box-trim