sakuraTheme: Add Sakura Theme to UI

View source: R/sakura.R

sakuraThemeR Documentation

Add Sakura Theme to UI

Description

Creates the dependency required for Sakura to be included in the HTML of a page.

Usage

sakuraTheme(
  theme = NULL,
  sass_options = sass::sass_options_get(output_style = "compressed"),
  cache = sass::sass_cache_get()
)

Arguments

theme

One of the following:

  • NULL (the default), which implies a "stock" build of Sakura

  • One of the themes available in listSakuraThemes()

  • A character string pointing to an alternative Sakura stylesheet (normally a scss file within the www directory, e.g. www/sakura.scss)

sass_options

A sass_options() object.

cache

This can be a directory to use for the cache, a FileCache object created by sass_file_cache(), or FALSE or NULL for no caching.

Value

An htmlDependency to the relevant Sakura style file

Examples

library(htmltools)
library(classless)

ui <- tags$html()
ui <- htmltools::attachDependencies(
  ui,
  sakuraTheme()
)


ashbaldry/classless documentation built on June 2, 2022, 12:55 a.m.