Skip to contents

Compiles theme against the vendored Bootstrap SASS tree and returns the resulting stylesheet together with Bootstrap's JavaScript bundle. The dependency is named "bootstrap" at the vendored version, so it supersedes the Bootstrap 3 stylesheet Shiny's own page functions attach.

Usage

bootstrap_dep(theme = bootstrict_theme())

Arguments

theme

A bootstrict_theme().

Details

bs_page() and friends call this for you; use it directly when building a page by hand. Compiled stylesheets are cached per theme for the session.

Examples

if (interactive()) {
  bootstrap_dep(bootstrict_theme(primary = "#ff6600"))
}