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

99
Views
MUI Custom Variants not inheriting root styles

https://codesandbox.io/s/crimson-glade-tfix6s

I have some custom variants and I would like these to take the colours from the theme which I have defined on palette. enter image description here

I would like my custom variants to have the same styling that is globally set inside the theme to be inherited. However it does not seem to be happening

enter image description here

variants: [
  {
    props: { variant: "icon", size: "large" },
    style: {
      color: "inherit",
      background: "inherit"
    }
  }
]
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!