Dealing with Preflight: Rescuing Markdown Styles in AstroJS

Hey there!
So, let me tell you about this little hiccup I ran into while tinkering with Tailwind, Astrojs, and markdown files. You know, Tailwind has this thing called Preflight that kind of resets all the styles. Well, that ended up making the default markdown style guide lose all its styles, which wasn’t ideal.
I tried adding my own styles, but they just wouldn’t stick. Quite frustrating, right? So I started googling. After some digging, I stumbled upon a lifesaver: adding
!important
to my styles in the global.css file.
Now, here’s the thing. It feels a bit like a tightrope walk. I’m not entirely sure how this might affect my codes down the line. But hey, we’ll cross that bridge when we get there, right?
Now the markdown styles are all working fine again, thanks to that !important tweak. But here’s the thing, I’m curious if there are other genius fixes out there. Got any tricks up your sleeve?
Fingers crossed for smoother coding adventures ahead! Catch you later! 🚀