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

212
Views
No puedo hacer que funcione el tema personalizado de Material UI

Estoy tratando de crear un tema personalizado para mi aplicación usando Material UI. Mirando cómo hacerlo, descubrí que tenía que usar createTheme y ThemeProvider. Sin embargo, por alguna razón, mi tema no anula el tema predeterminado. En el siguiente código, podrá ver que trato de anular el color primario con un color marrón, pero el azul predeterminado aún persiste.

 import {Button} from "@material-ui/core"; import {createTheme, ThemeProvider} from "@material-ui/core" import {makeStyles} from "@material-ui/core"; const theme = createTheme({ pallete: { primary: { main: '#923223' } } }) const App = () => { return ( <ThemeProvider theme={theme}> <div style={{backgroundColor: '#f8f8f8', height: '100%'}}> <Button variant="contained" color="primary">algo</Button> </div> </ThemeProvider> ); } export default App;

Prestar:

Botón todavía en azul

¿Alguna pista de lo que está pasando?

about 4 years ago · Juan Pablo Isaza
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!