Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
5 replies
tropic

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
Beautiful typographic defaults for HTML you don't control.
@tailwindcss/typography - Tailwind CSS
Was this page helpful?