MDX with NextJS & Tailwind #2568
-
Hey all, I've been trying to get MDX working with NextJS + Tailwind, following this guide. My first issue was that Secondly, I changed my # This is intro
- this
- is
- a
- list But the result looks pretty bad: Any idea what I'm doing wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That is next.js specific, raise this with them
Yep, the tailwind defaults are atrocious. The answer is to use tailwind prose for better defaults https://dev.to/adamof/introduction-to-the-prose-class-that-instantly-beautifies-articles-tailwindcss--bn7 |
Beta Was this translation helpful? Give feedback.
-
Aha - so it seems MDX simply creates your
|
Beta Was this translation helpful? Give feedback.
That is next.js specific, raise this with them
Yep, the tailwind defaults are atrocious.
It's a regular question https://github.com/orgs/mdx-js/discussions?discussions_q=is%3Aopen+tailwind
The answer is to use tailwind prose for better defaults https://dev.to/adamof/introduction-to-the-prose-class-that-instantly-beautifies-articles-tailwindcss--bn7