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

166
Views
In react, can you consume css variables inside of root?
:root {
  --dark-main-color: #0d1117;
  --light-main-color: #fefefa;

  // defaulting to dark theme 
  --main-color: var(--dark-main-color);
}

I am defining css variables and then consuming those variables both in :root.

Can this cause problems?

I am trying to solve this problem:

makeStyles does not respond to dynamic CSS variables

It might be related.

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!