
Sign up to save your podcasts
Or


Since I've tried and failed like 3 times to try and write a blog post on "sector driven design" or "smart components," this post is just gonna try and elaborate on what Miriam Suzanne kids a li'l and says "containers know stuff."
This is huge though, for development and design.
Components/elements/containers whatever, can own all their presentation aspects for nearly any scenario now. They can feel like magic, perfectly adapting to wherever the component author or designer has condoned.
A new one that not enough people talk about is, CSS named container queries. A component can easily know if it's in the sidenav, footer, article area, callout, whatever!
That's amazing.
No more chasing down all the styles and variations that scatter across your application.
Components are aware of it's user, device, variables, layout and more. In an attempt to get y'all stoked too, here's a list of all the "stuff" that components know.
Let's create the ultimate list of all the rad "stuff" that components know:
Let me know in the comments what I missed.
I'll give ya a shout for your recommendation 🤘🏻💀
Stoked for my upcoming talk at Beyond Tellerrand in Berlin next month:
🎶 Midi Meets CSS 🎶
Most folks use WebGL to visualize their audio (and it's awesome) but that's not me, CSS is. I've taken a different approach…
Be there or be aspect-ratio: 1
Ep #215
Robbie and I talk with Naman Goel about the origins and evolution of StyleX, how it integrates with React and other frameworks, the pros and cons of different programming languages like Rust, TypeScript, and Swift, and whatnot.
⤷ whiskey.fm · youtube · spotify · apple
Ep #214
Robbie, Chuck, and I talk about the worst whiskey, Tailwind as a “state management library,” recent security scares in open source, NPM dependency hygiene, developer visa drama, and tech salaries.
⤷ whiskey.fm · youtube · spotify · apple
Quick post on closedBy="any", a declarative way to add light-dismiss to a dialog:
And just like that, tapping or clicking outside the dialog will close it.
Here's the browser support:
Or a bit-o-js to get you started:
You should write one!
I'm writing this because I haven't seen enough folks using it or talking about it. Pretty nifty feature if ya ask me. So I'll make a 10m post.
If you want more
goodness, I wrote a fun post about how to make nice dialogs cuz the defaults are so poopy. Check it out and have a dialog.Also checkout the Dialog Starter notebook!
You can now watch my talk from CascadiaJS 2025 3 weeks ago 🤘🏻💀
Watch on YouTube
Ep #213
Robbie and I chat with Kevin Powell about the quirks and complexities of CSS, Tailwind and Flexbox, AI’s failure to write decent styles, anchor dingles, trim styles, and more.
⤷ whiskey.fm · youtube · spotify · apple
Checkout this episode of PodRocket with Kevin Powell, Paige and I; we chat about… you guessed it, CSS!
Watch or Listen
Ep #212
Robbie and I chat with Dave Rupert about whiskey, web culture, the quirks of building side projects, the shifting landscape of the web, AI-driven development, spec-driven workflows, RSS’s decline, and more.
⤷ whiskey.fm · youtube · spotify · apple
From the publisher's feed