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:Jump to 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.
3 Replies
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
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.