Skip to contents

Color palette extracted from the active Bootstrap theme. By default colors are read from an external _brand.yaml configuration file (or uses this package built-in brand).

Usage

pal(x = NULL, named = TRUE)

Arguments

x

Color index or name(s), if missing returns the entire color palette

named

keep color names (default: TRUE)

Value

A vector of (named) hex color codes extracted from Bootstrap branding

References

brand.yml

Examples

scales::show_col(pal())
#> Error : thematic doesn't (yet) support the 'agg_record_1603830782' graphics device. Please report this error to https://github.com/rstudio/thematic/issues/new

scales::show_col(pal(c("orange", "red")))
#> Error : thematic doesn't (yet) support the 'agg_record_1603830782' graphics device. Please report this error to https://github.com/rstudio/thematic/issues/new