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

339
Views
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 answers
Answer question

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 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!