Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

108
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda