Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

94
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda