🔥 CSS hot take: I'm beginning to think any design system that defines style values via anything other than CSS variables — ex: Sass, JavaScript, TypeScript — is essentially doing it wrong.
I am of the opinion that publishing a standalone file with all the CSS variables used in a project is probably the most widely compatible future-facing approach.
Introducing a new major feature for StreetPass: Hiding profiles!
Now you can hide and unhide profiles in your StreetPass list to keep things organized. If you wanna go full Inbox Zero mode, there's also an option to automatically hide profiles when clicked! (ty @prenagha for the great feature suggestion)
The #web has always had "Events"; like clicks and keydowns, but you couldn't create your own at first. So #webDev did what it does and invented hundreds of ways to create custom events; #Angular bindings, #Signals, #Observables, #Rx Streams, etc.
ReactJS "Hooks" are just another form of this; they are just callbacks that are executed at certain times in a component lifecycle.
Thing is; we have #CustomEvent now! It's well supported since IE11 is gone.
"The state of the art is no longer in finding more sophisticated ways to build JavaScript or CSS. It's not to build at all. To lean on HTTP/2 and the now universal support for import maps to avoid bundling."
One thing I will say: Rust on the web is overkill. I know, it's tempting to have something like leptos and have a single language on both frontend and backend.
What you should be doing is using the web platform. Most work should be done on the server anyways, your front end code should only be used for progressive enhancement. The user shouldn't have to run JavaScript in order to use your site. Plain and simple.
Spent bit of time today replacing a React + Emotion ProgressBar <div> party with a #html <progress> element. #CSS for these is still a little tricky, definitely doable, but documentation seems somewhat lacking. My simple example.
This was used inside of a table cells for a large many row MUI DataGrid so just getting the Emotion styles out of the cell render was a noticeable performance bump, but reducing nodes also helped probably.