getCurrentTheme function

Obtain Shiny's Bootstrap Sass theme

Obtain Shiny's Bootstrap Sass theme

Intended for use by Shiny developers to create Shiny bindings with intelligent styling based on the bootstrapLib()'s theme value.

getCurrentTheme()

Returns

If called at render-time (i.e., inside a htmltools::tagFunction()), and bootstrapLib()'s theme has been set to a bslib::bs_theme()

object, then this returns the theme. Otherwise, this returns NULL.

See Also

getCurrentOutputInfo(), bootstrapLib(), htmltools::tagFunction()

  • Maintainer: Winston Chang
  • License: GPL-3 | file LICENSE
  • Last published: 2024-12-14