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

215
Views
Tailwind is working partially (React + Tailwind)

Really, I can't find the problem because for the same div some classes are working and some are not. I tried to find some clues but most users didn't have paths in the tailwind config file.

My code:

enter image description here

fixed is working fine, but bottom-2 and right-4 aren't. Actually, I don't know if w-[405px] is working.

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Add mode: 'jit', to your tailwind.config.js in order w-[405px] works. I think other classes is working you just didn't noticed it or maybe conflict on other styles in your div.

about 4 years ago · Juan Pablo Isaza Report

0

We use tailwind at work, not something I'm super in love with but if we're adding tailwind classes that haven't been used in the document yet we have to do it locally for the compiler to add the new classes to your document.

Unsure if this is the only way to do it as its fairly new to us, but if you bring your project to a local environment and use the command

npm run watch

it will signal to tailwind to watch your class names and add the new ones to the compiled list. so if your making custom ones using [] its likely that tailwind hasn't addded those instances to the minified version of their css

about 4 years ago · Juan Pablo Isaza Report

0

For real I dont find how to resolve it. But in my case I just added the same classes to component and after it tailwind started to see it. If someone knows why exact its happening Im still waiting for any ideas

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!