That is insane! (O_o)
It doesn't work well on my phone either.
Maybe it was a ReactJS issue.
Maybe next time i'll probably use a ready-made engine.
Weird, in mine works nice. Did you use a library? Because some libs or frameworks, like Vite or Tailwind, have built-in themes that can change colors based on the system’s light or dark mode settings. Also, using generic color names like grey instead of the values (rgba, hsl, hex) can be inconsistent. Sometimes for safari you need to use -webkit- but idk if there is one for colors