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

93
Vistas
No styling from tailwindcss on MUI

I can't get any styling from tailwindcss to go on my MUI button. I am using babel and webpack. And the npm run dev script is "webpack --mode development --watch"

tailwind.css

module.exports = {
  content: ["./src/**/*.{js, jsx, ts, tsx}", "./templates/**/*.{html}"],
  important: '#root',
  theme: {
    extend: {},
  },
  plugins: [],
}

App.css

@tailwind components;
@tailwind utilities;

App.js

import "./App.css"
import { StyledEngineProvider } from '@mui/material/styles'
import CssBaseline from '@mui/material/CssBaseline'

// ...
<StyledEngineProvider injectFirst>
  <CssBaseline />
  <Button>Click me</Button>
</StyledEngineProvider>
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can simply change the following codes in your App.css and it will work.

from this

@tailwind components;

@tailwind utilities;

to this

@import "tailwindcss/components";

@import "tailwindcss/utilities";

Rest of the codes remain same. Only the above needs to be changed and you're good to go. This usually happens in tailwind v3.

Hope this answer helps you.

about 4 years ago · Santiago Trujillo 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