How to setup Tailwind-Elements in NextJs13? #1480
-
Does anyone have instructions for connecting the Tailwind-Elements to NextJs13? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
// Or if using `src` directory:
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
global.css @tailwind base;
@tailwind components;
@tailwind utilities;
I hope this will help you and anyone else. However its right here. NextJS Framework & Tailwind |
Beta Was this translation helpful? Give feedback.
-
I also recomend our own installation guide: https://tailwind-elements.com/docs/standard/integrations/next-integration/ |
Beta Was this translation helpful? Give feedback.
-
Hi - thanks for your reply. I think the trouble I'm having is just a bit of uncertainty about where exactly the snippets from the guide should go in the context of the app as a whole. The guide is great for calling out the significant parts, but I wonder if a link to a repo with a minimal example would give that bit o context that might make all the difference. Specifically I am having trouble getting the components initialised. I have seen various errors along the way as I've tried different things, but I think my biggest uncertainty is the relationship between the Sorry if my question doesn't quite make sense - as I said I realise I'm missing something in my understanding |
Beta Was this translation helpful? Give feedback.
-
I am getting these warnings and unable to deploy. help plz
|
Beta Was this translation helpful? Give feedback.
I also recomend our own installation guide: https://tailwind-elements.com/docs/standard/integrations/next-integration/