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

Time:02-07

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?

CodePudding user response:

I'd create two different result

The same can be done via enter image description here

  •  Tags:  
  • Related