How to switch external css file based on user input in rshiny?

I am looking to build a dark mode in my application. I realize we can achieve that using bs_theme(), but my application has many more settings in an external css file that do not get read when I use bs_theme().

I want to have 2 separate CSS files, one for light theme and one for dark theme. Based on the user input, the relevant theme file should be loaded in my Rshiny app. Any suggestion on how this could be done?

Cross posted below. FAQ: Is it OK if I cross-post?

Hi Curtis,
I think the post you are referencing is not the same post. However, I get your point.

Thanks,
Shivam

For anyone, who is still interested in the solution, it was answered here: r - How to switch external css file based on user input in rshiny? - Stack Overflow

Thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.