Sent on Jun 1, 2023

Overcoming styling frustrations caused by Astro islands and slots

I hope you’re having a good week so far!

It was a little rough on my side over the past two week because I’m overhauling the way I code — how I’m writing HTML, CSS, JavaScript, everything!

Right now, I’m deep down the rabbit hole, trying to create a component bank that works for every project. When I succeed at this, I’ll never have to rebuild any component I use, I just have to use what I already built :)

The good part about doing this, is that I never have to use publicly created libraries, be forced to adopt their UI styles, and have to fight their styles when I code. (This is a huge energy saver in my opinion, but it will take some time before I get here).

I’ll share more information about this when I’m ready to.

For today, I want to turn your attention to styling with Astro!

I’ve been building many projects with Astro recently and I noticed a consistent problem whenever I use Astro — sometimes my styles would just go out of whack for some reason that I couldn’t understand.

It was, honestly, frustrating and irritating.

One day, I decided to stop being irritated about it and dove in to figure out why these styling problems existed in the first place.

And voila, I got a workable solution out of it.

This will be an interesting and important article to read if you’re learning CSS and if you’re using Astro.

Here’s the article.

Have fun with it and let me know what you think!

Stay awesome,
Zell