cascadess_dependencies: Cascadess' CSS dependencies

View source: R/cascadess.R

cascadess_dependenciesR Documentation

Cascadess' CSS dependencies

Description

For CSS styles to be applied, you must include a call to cascadess_dependencies() in your UI or use the bslib package.

Usage

cascadess_dependencies()

Value

An htmltools::htmlDependency().

Examples


## 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)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.