bs_remove {bslib}R Documentation

Remove or retrieve Sass code from a theme

Description

Remove or retrieve Sass code from a theme

Usage

bs_remove(theme, ids = character(0))

bs_retrieve(theme, ids = character(0), include_unnamed = TRUE)

Arguments

theme

a bs_theme() object.

ids

a character vector of ids

include_unnamed

whether or not to include unnamed sass::sass_layer()s (e.g., Bootstrap Sass variables, functions, and mixins).

Value

a modified bs_theme() object.

Examples


# Remove CSS rules for print and carousels
bs4 <- bs_theme(version = 4)
bs_remove(bs4, c("_print", "_carousel"))

# Remove BS3 compatibility layer
bs_remove(bs4, "bs3compat")


[Package bslib version 0.3.1 Index]