Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Are CSS variables supported by mobile browsers / Android / IOS?

I am writing a React APP primarily intended for mobile usage. I heavily rely on CSS variables to change the color themes etc.

Will this be supported in mobile browsers, Android, and IOS?

for example:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel



:root {
  --dark-main-color: #0d1117;
  --light-main-color: #fefefa;

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

>Solution :

I have ran into the same problem, and I found this website very useful.

LINK: https://caniuse.com/css-variables

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading