always bet on CSS.
Also posted to Bluesky.
15 replies
...in JS
go straight to javascript jail; do not collect $200B investment; do not rewrite in go (or rust)
@zachleat what’s the over/under
@danleatherman 300KB extra HTML or 2MB extra JavaScript
I'm in the middle of writing a blog post that feels very relevant to this... (Shadcn and Radix UI recreate radio buttons with JS instead of using CSS to style and it is... a lot.)
@zachleat You bet…you win!!!
@zachleat Who will come back from the future to save humanity? I bet you it’s CSS.
@mahryekuh you bet
@zachleat I don't do over €5
@zachleat especially now that it has been ‘fixed’ by ‘foundational web infrastructure’
@hdv critical hit!
@zachleat Li css–s to print money. (En dash)
Build tools come and go. CSS? It's the bedrock. It was here before the SPA, and it'll be here after. It always wins 🙏