This self contained example shows how to use the sass R package to generate CSS for multiple themes and dynamically create colors based off of an original theme color. If a Shiny button is clicked, the javascript event is captured and the theme color is updated within the browser. A Shiny server event is triggered in addition to changing the theme within browser.
Original article and demo by Hugo Giraudel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.