getCurrentTheme: Obtain Shiny's Bootstrap Sass theme

View source: R/bootstrap.R

getCurrentThemeR Documentation

Obtain Shiny's Bootstrap Sass theme

Description

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

Usage

getCurrentTheme()

Value

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()


shiny documentation built on Sept. 11, 2024, 7:24 p.m.