How I'm Writing CSS in 2024
Briefly

Stylesheets should load as fast as possible (small file sizes) Stylesheets should not re-download unless changed (proper caching headers) The page content should have minimal or no layout shift Fonts should load as fast as possible and minimize layout shift
Prune unused styles, minify, and compress CSS for smaller file sizes Generate hashed file names to enable safe, immutable caching Bundle CSS files together to make fewer network requests Prevent naming collisions to avoid visual regressions
Read at Leerob
[
add
]
[
|
|
]