How can i style the injected elements in an Astro layout using plain css with tailwind.
Minimum Reproducible example:
/src/layouts/PostLayout.astro
<div class="prose text-white">
<slot/>
</div>
/pages/somepage.mdx
---
layout: ../layouts/PostLayout.astro
---
# Header 1
Some text
How can i target the markdown elements that are injected into the slot?
I can easily target any of the defined elements that are in the layout using a style block like this:
<style>
div {
border: 1px solid black;
}
</style>
However any styles applied to elements in the slot are ignored.