Bolt ui

Tailwind CSS Classes Not Applying - Styles Ignored

Tailwind CSS classes aren't being applied to elements. You add classes like 'bg-blue-500' but the element stays unstyled.

Sometimes works in some components but not others. Manual styles work fine.

Error Messages You Might See

Tailwind CSS not found Styles not applying Class text-blue-500 not recognized PostCSS plugin error
Tailwind CSS not foundStyles not applyingClass text-blue-500 not recognizedPostCSS plugin error

Common Causes

  1. Tailwind not configured in tailwind.config.js or config missing CSS input path
  2. CSS file not imported in main layout or root component
  3. Dynamic class names (string templates) not scanned by Tailwind content config
  4. CSS Autoprefixer or PostCSS not configured properly
  5. Purged classes - content config doesn't include template files with classes

How to Fix It

Verify tailwind.config.js content includes all template paths: content: ['./src/**/*.{js,jsx,ts,tsx}']

Ensure CSS imported in root: import 'tailwindcss/tailwind.css'

Avoid dynamic class names: const className = `text-${color}` won't work. Use full class names or Tailwind merge utility

Check PostCSS config has Tailwind plugin

Rebuild after config changes: npm run dev

Real developers can help you.

Krishna Sai Kuncha Krishna Sai Kuncha Experienced Professional Full stack Developer with 8+ years of experience across react, python, js, ts, golang and react-native. Developed inhouse websearch tooling for AI before websearch was solved : ) Milan Surelia Milan Surelia Milan Surelia is a Mobile App Developer with 5+ years of experience crafting scalable, cross-platform apps at 7Span and Meticha. At 7Span, he engineers feature-rich Flutter apps with smooth performance and modern UI. As the Co-Founder of Meticha, he builds open-source tools and developer-focused products that solve real-world problems. Expertise: šŸ’” Developing cross-platform apps using Flutter, Dart, and Jetpack Compose for Android, iOS, and Web. šŸ–‹ļø Sharing insights through technical writing, blogging, and open-source contributions. šŸ¤ Collaborating closely with designers, PMs, and developers to build seamless mobile experiences. Notable Achievements: šŸŽÆ Revamped the Vepaar app into Vepaar Store & CRM with a 2x performance boost and smoother UX. šŸš€ Launched Compose101 — a Jetpack Compose starter kit to speed up Android development. 🌟 Open source contributions on Github & StackOverflow for Flutter & Dart šŸŽ–ļø Worked on improving app performance and user experience with smart solutions. Milan is always happy to connect, work on new ideas, and explore the latest in technology. Jaime Orts-Caroff Jaime Orts-Caroff I'm a Senior Android developer, open to work in various fields Rudra Bhikadiya Rudra Bhikadiya I build and fix web apps across Next.js, Node.js, and DBs. Comfortable jumping into messy code, broken APIs, and mysterious bugs. If your project works in theory but not in reality, I help close that gap. Omar Faruk Omar Faruk As a Product Engineer at Klasio, I contributed to end-to-end product development, focusing on scalability, performance, and user experience. My work spanned building and refining core features, developing dynamic website templates, integrating secure and reliable payment gateways, and optimizing the overall system architecture. I played a key role in creating a scalable and maintainable platform to support educators and learners globally. I'm enthusiastic about embracing new challenges and making meaningful contributions. Caio Rodrigues Caio Rodrigues I'm a full-stack developer focused on building practical and scalable web applications. My main experience is with **React, TypeScript, and modern frontend architectures**, where I prioritize clean code, component reusability, and maintainable project structures. I have strong experience working with **dynamic forms, state management (Redux / React Hook Form), and complex data-driven interfaces**. I enjoy solving real-world problems by turning ideas into reliable software that companies can actually use in their daily operations. Beyond coding, I care about **software quality and architecture**, following best practices for componentization, code organization, and performance optimization. I'm also comfortable working across the stack when needed, integrating APIs, handling business logic, and helping transform prototypes into production-ready systems. My goal is always to deliver solutions that are **simple, efficient, and genuinely useful for the people using them.** Victor Denisov Victor Denisov Developer Costea Adrian Costea Adrian Embedded Engineer specilizing in perception systems. Latest project was a adas camera calibration system. Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. Simon A. Simon A. I'm a backend developer building APIs, emulators, and interactive game systems. Professionally, I've developed Java/Spring reporting solutions, managed relational and NoSQL databases, and implemented CI/CD workflows.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

Why don't dynamic Tailwind classes work?

Tailwind uses static analysis. text-${color} is a template and Tailwind can't scan it. Use full class names or mapping

How do I use arbitrary values instead?

Use bracket syntax: bg-[#1234567] for custom colors, or configure in tailwind.config.js

Should I use CSS modules with Tailwind?

Tailwind works best without CSS modules. Use utility-first directly in JSX

Related Bolt Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help