How to fix markdown rendering with ShadCN/ Tailwind

Hi, I am trying to render markdown from my DB but in darkmode specifically, some of my H tags arent taking the color from the tailwind class. Here is the code below
Solution:
Ok, after some rereading the tailwind docs, I have found this which worked for me https://tailwindcss.com/docs/typography-plugin#adding-custom-color-themes...
@tailwindcss/typography - Tailwind CSS
Beautiful typographic defaults for HTML you don't control.
Jump to solution
3 Replies
tropic
tropic9mo ago
I have tried to use the paragraph tag and applying the class directly, using React Markdown Library instead of using Remark to convert the markdown to HTML
Solution
tropic
tropic9mo ago
Ok, after some rereading the tailwind docs, I have found this which worked for me https://tailwindcss.com/docs/typography-plugin#adding-custom-color-themes
@tailwindcss/typography - Tailwind CSS
Beautiful typographic defaults for HTML you don't control.
Want results from more Discord servers?
Add your server