Closed JonLangfordUK closed 3 weeks ago
You can choose between two methods.
:global(*)
CSS selectorPlease check the demo: https://stackblitz.com/edit/svelte-exmarkdown-tailwind?file=src%2FApp.svelte&terminal=dev
Fantastic, thank you so much! It worked a treat!
Sorry if this is a dumb question, new to Svelte, Typescript and web dev in general.
But I'm struggling to apply Tailwind styling to the elements svelte-exmarkdown is creating. For example, all heading are the same font size, no matter if they are
#
or#####
.Is it possible to define how the elements generated from the markdown are presented using Taiwind classes? For example, for a
#
I may want to add this to the element =class="text-white font-bold text-4xl mb-8"
I'm loving the response time, and the compatibility with rehype, so I'm hoping I get this working for my portfolio site.
Small example of what I've done so far:
Results in:![image](https://github.com/ssssota/svelte-exmarkdown/assets/7528754/692c92b7-7422-4b7e-89e0-99b2e25eaf6f)