Shadcn/ui is a UI library that uses Tailwind CSS.
Shadcn/ui↗
Run the following commands to install Shadcn/ui.
tailwind-merge is a plugin used by Shadcn/ui.
Tailwind CSS is configured by default when you create the Next.js project.
However, Tailwind CSS resets HTML element styles, so those styles will not be present when rendering Markdown files later.
The prose option addresses this.
The prose option uses the tailwindcss/typography plugin to apply styles to rendered Markdown.
Run the following command to install the tailwindcss/typography plugin.
npm i @tailwindcss/typography
Open tailwind.config.ts and add the plugin as follows.