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

196
Views
CssBaseline Overriding theme background colour MUI? Reactjs

I am using material ui to make a theme which works fine but when I add <CssBaseline/> to the App.js it turns the background colour white even though I put in the index.css that the background colour should be #1f262a. I tried adding:


  overrides: {
    CssBaseline: {
      "@global": {
        body: {
          backgroundColor: "#1f262a",
        }
      }
    }
  },

To the theme but it did not make a difference. I appreciate any responses.

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

0

you should use MuiCssBaseline instead CssBaseline:

  overrides: {
    MuiCssBaseline: {
      "@global": {
        body: {
          backgroundColor: "#1f262a",
        }
      }
    }
  }
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!