Learn R Programming

bootstraplib (version 0.1.0.9000)

bs_theme_preview: Preview the currently set theme

Description

Launches an example shiny app via run_with_themer() and bootstrap(). Useful for getting a quick preview of the current theme setting as well as an interactive GUI for tweaking some of the main theme settings.

Usage

bs_theme_preview(..., with_themer = TRUE)

Arguments

...

passed along to shiny::runApp()

with_themer

whether or not to run the app with run_with_themer().

Details

The app that this launches is subject to change.

See Also

run_with_themer()

Examples

Run this code
# NOT RUN {
bs_theme_new()
bs_theme_add_variables(
  "body-bg" = "#6c757d",
  "body-color" = "white"
)
if (interactive()) {
  bs_theme_preview()
}

# }

Run the code above in your browser using DataLab