cascadess_dependencies | R Documentation |
For CSS styles to be applied, you must include a call to
cascadess_dependencies()
in your UI or use the bslib package.
cascadess_dependencies()
An htmltools::htmlDependency()
.
## Not run:
library(shiny)
shinyApp(
ui = list(
cascadess_dependencies(),
div(
.style %>%
padding_all(3) %>%
background_color(theme_light()),
"Etiam laoreet quam sed arcu."
)
),
server = function(input, output) {}
)
## End(Not run)
## Not run:
library(shiny)
library(bslib)
shinyApp(
ui = page(
.style %>%
background_color(theme_primary()),
card(
.style %>%
margin_all(3) %>%
background_color(theme_light()),
"Hello, world!"
)
),
server = function(input, output) {}
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.