Wrap UI in a custom shad_theme() applied only to its descendants.
Arguments
- theme
A
shad_theme()object.- ...
UI to wrap.
- class
Extra CSS classes on the wrapper.
See also
Other shadshiny theming:
shad_chart_colors(),
shad_current_theme(),
shad_theme(),
shad_theme_echarts4r(),
shad_theme_from_registry(),
shad_theme_ggplot2(),
shad_theme_plotly(),
shad_tokens()
Examples
shad_theme_scope(shad_theme(primary = "#16a34a"), shad_button("Go"))
#> <style>.shad-theme-3 {
#> --shad-primary: #16a34a;
#> }</style>
#> <div class="shad-theme-3">
#> <button type="button" class="shad-btn shad-btn--default">Go</button>
#> </div>