N
Nuxt2mo ago
abd

nuxt/content styling

Hello, I am using "@nuxt/content": "^2.12.1", in a nuxt project with taildwindcss. When I use markdown syntax like : # Title none of the typical styling is presented in page. Is this because of tailwind stripping default styling? How does one get styling for markdown in the content module if using tailwind?
2 Replies
Wouter
Wouter4w ago
this can be done with the @tailwindcss/typography and the "prose" class to the content section https://nuxt-tailwind-typography.vercel.app/
Nuxt Content with TailwindCSS Typography
Demonstration of a NuxtJS application with Content module and TailwindCSS Typography plugin.
Wouter
Wouter4w ago
You can see an example in the content-wind template: https://github.com/atinux/content-wind/
GitHub
GitHub - atinux/content-wind: A lightweight Nuxt theme to build a M...
A lightweight Nuxt theme to build a Markdown driven website. Powered by Nuxt Content, TailwindCSS and Iconify. - atinux/content-wind
Want results from more Discord servers?
Add your server