Answers for "add tailwind css to next js"

CSS
0

add tailwind to next

// postcss.config.js
module.exports = {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
Posted by: Guest on August-28-2021
0

add tailwind to next

// pages/_app.js
import '../styles/globals.css'

function MyApp({ Component, pageProps }) {
  return <Component {...pageProps} />
}

export default MyApp
Posted by: Guest on August-28-2021

Browse Popular Code Answers by Language