You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dark theme website right now, but when I try and use everything is dark text on my dark background. If I try and add a tailwind class of text-gray-100, then it changes most of the text, but none of the heading or the code blocks. Any way to fix this?
The text was updated successfully, but these errors were encountered:
Here is an example how to change the text color on the default text. You will need to adapt it to add the correct classes based on where you get the theme from:
<!-- $lib/Text.svelte -->
<span><slot /></span>
<style>
span {color: red; /* Use a CSS var or add classes depending on some context instead */ }
</style>
Then configure it in the library:
<script>
importTextfrom'$lib/Text.svelte';
</script>
<SvelteMarkdownsource={"Hello world"}
renderers={{
text: Text
}}
/>
I have a dark theme website right now, but when I try and use everything is dark text on my dark background. If I try and add a tailwind class of text-gray-100, then it changes most of the text, but none of the heading or the
code blocks
. Any way to fix this?The text was updated successfully, but these errors were encountered: