Skip to contents

Include this function in your UI to load all necessary Designsystemet CSS and JavaScript dependencies.

Usage

use_designsystemet(color_scheme = "light")

Arguments

color_scheme

Color scheme to apply to the page. One of "light" or "dark". Sets the data-color-scheme attribute on <html>, which activates Designsystemet's CSS custom property tokens.

Value

A tagList containing the dependencies

Examples

ui <- bslib::page_fluid(
  use_designsystemet(),
  ds_button("Click me", inputId = "btn")
)