Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

109
Visualizações
Tailwind not loaded with nextjs

I'm tring to crete an app using tailwindcss and next.js

I sterted creating the nextjs app, then I runned these commands:

npm install -D tailwindcss postcss autoprefixer

npx tailwindcss init -p

After that I updated the tailwind.config.js like:

module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

And, then I created and populated the ./syles/globals.css with:

@tailwind base;
@tailwind components;
@tailwind utilities;

all this step by step is on the website:https://tailwindcss.com/docs/guides/nextjs but still any attempt at customization doesn't work, is there any way to know if tailwind has been loaded? Was there something missing to be done?

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Firstly import globals.css into _app.js

import '../styles/globals.css'

Also instead of @tailwind do below to add tailwind into globals.css

/* @tailwind base;
@tailwind components;
@tailwind utilities; */

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda