fetch_bs_color: Get hex code of the current Bootstrap theme color.

View source: R/FilterState-utils.R

fetch_bs_colorR Documentation

Get hex code of the current Bootstrap theme color.

Description

Determines the color specification for the currently active Bootstrap color theme and returns one queried color.

Usage

fetch_bs_color(color, alpha = NULL)

Arguments

color

(character(1)) naming one of the available theme colors

alpha

either a numeric(1) or character(1) specifying transparency in the range of 0-1 or a hexadecimal value 00-ff, respectively; set to NULL to omit adding the alpha channel

Value

Named character(1) containing a hexadecimal color representation.

Examples

fetch_bs_color <- getFromNamespace("fetch_bs_color", "teal.slice")
fetch_bs_color("primary")
fetch_bs_color("danger", 0.35)
fetch_bs_color("danger", "80")


teal.slice documentation built on May 29, 2024, 1:39 a.m.