Nothing
theme_colors <- c(
blue = "blue",
indigo = "indigo",
purple = "purple",
red = "red",
orange = "orange",
yellow = "yellow",
green = "green",
teal = "teal",
cyan = "cyan"
)
background_color_ <- c(
theme_colors,
white = "white",
transparent = "transparent"
)
background_color <- function(color) {
pick(color, from = background_color_)
}
#' Backgrounds
#'
#' The `background()` function adjusts the background color of a tag element.
#'
#' @param x A tag element or [.style] pronoun.
#'
#' @param color One of `r rd_list(names(background_color_))` specifying the
#' background color of the tag element.
#'
#' @includeRmd man/roxygen/background.Rmd
#'
#' @export
#' @examples
#'
#' library(htmltools)
#'
#' div(
#' .style %>%
#' background("white") %>%
#' border("blue") %>%
#' text("white"),
#' "Nunc porta vulputate tellus.",
#' "Suspendisse potenti."
#' )
#'
background <- function(x, color) {
assert_subject(x)
class <- prefix(
background = "bg",
background_color(color)
)
add_class(x, class)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.