I'm currently working on a feature that allows the User to customize the application's style.
Index.html
<!DOCTYPE html>
<html>
<head>
<link id="style" rel="stylesheet" type="text/css" href="red-stylesheet.css" />
</head>
</html>
Javascript
function changeStyle(sheet) {
document.getElementById('style').setAttribute('href', sheet);
}
Despite my best efforts, I'm facing an issue with changing styles. By default, the theme is set to red, but when I attempt to switch to blue, all styling disappears and I can't revert back to the red theme.
What steps should I take next?
(PhoneJS/DevExtreme application)
Initial App Appearance
https://i.sstatic.net/hgDSH.png
After Selecting "Blue" Option