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

344
Vistas
In MUI how can i add color to something inside of CardHeader?

I would like to change the colors of each title={note.title} subheader={note.category} I have tried

const theme = createTheme ({
    palette: {
        category: {
            color: blue
        }
    }
})

But that hasn't worked I have also tried inline sx={{fontSize: 16,color: '#000000'}} again no luck.

How can I go about editing the color for those 2 sections?

 <div>
            <Card elevation={10} className={classes.test}>
                <CardHeader 
                    action={ // 200
                        <IconButton onClick={() => handleDelete(note.id)}> 
                            <DeleteOutlined />
                        </IconButton>
                    }
                    title={note.title}
                    subheader={note.category}
                />
                <CardContent>
                    <FormGroup>
                    <FormControlLabel sx={{fontSize: 16,color: '#000000'}} control={<Checkbox />} label={note.details} />
                    <FormControlLabel sx={{fontSize: 16,color: '#555555'}} control={<Checkbox />} label={note.details2} />
                   
                   

                    </FormGroup>
                </CardContent>
            </Card>
        </div>
    )

Full code here : https://github.com/Orelso/Project-notes

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can pass node in the title and subheader -

<CardHeader 
  action={ // 200
    <IconButton onClick={() => handleDelete(note.id)}> 
    <DeleteOutlined />
    </IconButton>
  }
  title={<span style={{fontSize: 16, color: "#000000"}}>{note.title}</span>}
  subheader={<span style={{fontSize: 12, color: "#000000"}}>{note.category}</span>}
/>
about 4 years ago · Juan Pablo Isaza 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