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

350
Views
How to change Checkbox image style in Material UI. React.js

I need to change my little black icon in checkbox to another color!

This is my code.

Material ui theme:

export const colors: IAppColors = {
   darkTheme: {
      primary: {
         placeholder: "#607589",
         bright: "#37AFE2",
         light: "#276899",
         grey: "#242F3D",
         main: "#17212B",
         dark: "#0E1621",
      },

      secondary: {
         grey: "rgba(255,255,255, .08)",
         light: "rgba(255,255,255, .1)",
         main: "#fff",
         dark: "",
      },
   },
};

Mui theme checkbox styles:

      MuiCheckbox: {
         styleOverrides: {
            root: {
               transition: "all .2s ease",

               "&.Mui-checked": {
                  ".MuiSvgIcon-root": {
                     color: colors.darkTheme.primary.bright,
                  },
               },

               ".MuiSvgIcon-root": {
                  fontSize: "2.2rem",
               },

               ".MuiTouchRipple-root": {
                  opacity: "0.3",
               },
            },
         },
      },

Checkbox itself

So, how do i change this little black icon color to white

This little icon color inherits from my mui theme palette main color.

I tried to change my main color in my theme color palette to white, and it worked for me, but, i have a black theme, so i need to change only this little icon color, not an app main color.

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

0

you can change Icon and checkedIcon prop in the Checkbox component

<Checkbox
          color="primary"
          icon={props.disabled ? <CheckboxDisabledIcon /> : <CheckboxIcon />}
          checkedIcon={indeterminate ? <CheckboxIndeterminateIcon /> : <CheckboxActiveIcon />}
        />

like this

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!