What I have right now is a page with dark theme in index.html:
<base href="/">
<html>
<head>
<title>XXX</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="assets/dark_room.css">
<my-app>Loading...</my-app>
</body>
</html>
I also have a bright "light_room.css" theme that is required to implement, and user could switch theme base on needs. I am wondering how could I achieve this?
I thought it could be done by having an url parameter so that when user type like ?light_room=True at the end of url, the page will load light_room.css. However I think it can only be done in normal templates but not in index.html.
Does anyone have similar experience in conditionally loading css file in index.html?