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

68
Views
React library using default MUI theme instead of custom theme injected in parent react app

Current Behavior ๐Ÿ˜ฏ

I have a React library which uses mui theme(custom). It is used in a react app which injects the theme using theme provider but the library is using the default MUI Theme instead of the custom theme.

Expected Behavior ๐Ÿค”

It should use the custom theme provided in the react app instead of the mui default theme.

Steps to Reproduce ๐Ÿ•น

Steps:

  1. Create a library which uses custom theme.
  2. Inject the theme in your react app.
  3. Check if it is using the same theme.

Context ๐Ÿ”ฆ

Trying to build a library which inherits the theme from the parent react app.

My Environment ๐ŸŒŽ

 npx: installed 2 in 9.464s

  System:
    OS: Windows 10 10.0.19043
  Binaries:
    Node: 14.17.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
  Browser:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.84)
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!