Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!