Skip to contents

Turns glass_theme() into the htmltools::htmlDependency() list that bslib::bs_theme_dependencies() would attach on a Bootstrap page, and appends glass_react_dependency(). Use this when the page has no theme argument, in particular shinyreact::page_react_html(extra_deps = glass_theme_dependencies(...)).

Usage

glass_theme_dependencies(theme = glass_theme())

Arguments

theme

A glass_theme() (or other bslib::bs_theme()). Defaults to glass_theme().

Value

A list of htmltools::htmlDependency() objects (Bootstrap 5, the compiled glass rules, the preset head script, shiny-glass.js, and shinyglass-react.js).

Details

glass_page_react() is the easier entry for shinyreact::page_react().

Examples

deps <- glass_theme_dependencies(glass_theme(preset = "dark"))