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

113
Views
Cómo usar el tema personalizado correctamente con el componente lib que usa Material UI (no quiero envolver con ellos todos los componentes)

Cómo usar el tema personalizado correctamente con el componente lib que usa Material UI (no quiero envolver con ellos todos los componentes).

import { createMuiTheme } from '@material-ui/core/styles';

 const theme = createMuiTheme({ palette: { primary: { main: '#1976d2' }, success: { main: '#4caf50' } }, typography: { fontSize: 16, h3: { fontWeight: 700, fontSize: '2.2rem' }, h4: { fontWeight: 700, fontSize: '1.75rem' }, h5: { fontWeight: 500 }, h6: { fontWeight: 500 } } }) export default theme;

Solo tengo un archivo de índice donde exportar todos mis componentes como lo hace lib de costumbre. ¿Cómo puedo envolver todos mis componentes con el tema sin hacerlo en todas partes? ¿O hay una mejor manera de personalizar los estilos?

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

0

Puede envolver su archivo App.tsx (o _app.tsx si usa Next.js) en ThemeProvider y proporcionar su tema: https://mui.com/customization/theming/

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!