add tailwind into this template #14
-
is it possible to add tailwind into this template? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found how to this.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for providing that how-to, but when you create an _app.mdx file, there is no nextra anymore, just a blank page. And when you import the globals.css to your index.mdx, it says: |
Beta Was this translation helpful? Give feedback.
I found how to this.
install tailwind for nextjs like usual from the tailwind docs
add
mdx
andtheme.config.tsx
like this in your tailwind config` content: [
"./app//*.{js,ts,jsx,tsx,mdx}",
"./pages//.{js,ts,jsx,tsx,mdx}",
"./components/**/.{js,ts,jsx,tsx,mdx}",
"./theme.config.tsx",
// Or if using
src
directory:"./src/**/*.{js,ts,jsx,tsx, mdx}",
],`
add the @ tailwindbase etc into a file that you created with name styles.css
import it in _app.mdx, create one if you don't have _app.mdx file
done