I would like to generate a custom bs theme object that includes a few additional CSS files. However I am not entirely clear on how to do this.
I tried the following, but the CSS files are not found in the correct location, I am guessing they need to be included as an htmlDependency or similar, just wasn't sure what the best way to do this would be.
my_theme <- function(...) {
style <- system.file("assets", "style.css", package = "mypkg")
theme <- bslib::bs_theme(...)
theme <- bslib::bs_add_rules(theme, sass::sass_file(style))
theme
}