background: Backgrounds

View source: R/design-background.R

backgroundR Documentation

Backgrounds

Description

Use background() to modify the background color of a tag element.

Usage

background(x, color)

Arguments

x

A tag element or .style pronoun.

color

One of "primary", "secondary", "success", "info", "warning", "danger", "light" or "dark" specifying the background color of the tag element, defaults to NULL.

Examples


div() %>% background("primary")
# ->
div() %>% cascadess::background_color("primary")


nteetor/dull documentation built on Nov. 7, 2024, 2:11 p.m.