I googled what “classless” meant for this library after another user commented and found the link below if folks are interested in similar libraries.
I googled what “classless” meant for this library after another user commented and found the link below if folks are interested in similar libraries.
I agree with this, but it would also be a nightmare for people trying to make their own styles. Even the current default styles are a bit annoying for this. I've long dreamt of some sort of way to switch between some sort of chrome vs content styles. So for my navbar and embedded visualizations/interactive elements I switch to chrome mode and get minimal default styles (maybe just font size, font family and text colour) but the main content of the article can get the user's preferred styles.
The obvious solution would be a CSS instruction that really reset (like everything to 0, none, etc. — not to default styles) all properties for the selected elements and its children. Something like:
:root { default-style: none; } /* could be "none" for reset, or "default" to apply the user-agent default style */ *, *::before, *::after { all: unset }
?If we replace the default styles, a ton of sites are going to look very different than they were intended. We could do an "opt in" though that should be very easy to declare (similar to new versions of HTML, such as HTML 5) and get you on the new default style. I think that would be great!
Flask + HTMX + AlpineJS + PicoCSS is currently my "All Python and HTML SPA"