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

322
Views
Problema al usar el tema oscuro en MUI y conduce a un diseño que no está claro

Actualmente estoy usando modal para algún uso en mi formulario de autenticación. Sin embargo, tengo problemas con el css.

ingrese la descripción de la imagen aquí

Actualmente, el modal se encuentra en un proveedor de temas:

 <ThemeProvider theme={theme}> ... <Modal open={open} onClose={handleClose} aria-labelledby="modal-modal-title" aria-describedby="modal-modal-description" > <Box sx={{ width: 400 }} style={{ position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", width: 400, border: "2px solid #000", boxShadow: 24, p: 4, }} > <Typography id="modal-modal-title" variant="h6" component="h2"> Verification </Typography> <p>Please enter the verification code sent to your email.</p> <TextField label="Standard" variant="standard" onChange={(e) => setVerifyCode(e.target.value)} ></TextField> <Button variant="outlined" onClick={() => handleVerify(verifyCode)}> Verify </Button> </Box> </Modal> </ThemeProvider>

donde escribo el tema personalizado:

 const theme = createTheme({ palette: { mode: "dark", primary: { main: "#bda06a", }, secondary: { main: "#f5f200", }, }, typography: { fontFamily: "Cormorant", //fontFamily: "Castellar", }, modal: { bgcolor: "#ffffff", //even if i write this it doen not work. }, });

Sin embargo, como se muestra en la imagen, el fondo semitransparente estropea todo. Me preguntaba cómo cambiar el estilo (y dónde) para que el modal muestre su contenido muy claramente. ¡Apreciaría mucho si alguien pudiera ayudar!

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!