classlessTheme: Add Classless.css Theme to UI

View source: R/classless.R

classlessThemeR Documentation

Add Classless.css Theme to UI

Description

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

Usage

classlessTheme(theme = NULL, tiny = FALSE, include_tabbox = TRUE)

Arguments

theme

One of the following:

  • NULL (the default), which implies a "stock" build of Classless.css

  • One of the themes available in listClasslessThemes()

  • A **named** character string pointing to an alternative Classless.css stylesheet (normally a css file within the www directory, e.g. c(theme = "www/classless-theme.css"))

tiny

Logical, should only minimal CSS be included? If TRUE this will only include styles for text, tables, figures and code.

include_tabbox

Logical, should the styling for tab boxes be included?

Value

An htmlDependency to the relevant Classless.css style file

Examples

library(htmltools)
library(classless)

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


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