Arguments
- color
A
character
vector indicating the name of colors present in thecolor
section of the_brand.yml
file.- alpha
(Optional) A number between
0
and1
, indicating the transparency of the colors (Default:NULL
).
Value
A character
vector with
hexadecimal color codes.
See also
Other utility functions:
get_brand_color_mix()
,
get_brand_color_tint()
,
get_brand_font()
Examples
get_brand_color("primary")
#> [1] "#DA4E3C"
#> [1] "#DA4E3C" # Expected
get_brand_color("secondary")
#> [1] "#390963"
#> [1] "#390963" # Expected
get_brand_color("tertiary")
#> [1] "#FB9706"
#> [1] "#FB9706" # Expected
get_brand_color("tertiary", alpha = 0.5)
#> [1] "#FB970680"
#> [1] "#FB970680" # Expected
get_brand_color(c("primary", "secondary"))
#> [1] "#DA4E3C" "#390963"
#> [1] "#DA4E3C" "#390963" # Expected
get_brand_color(c("red", "purple", "orange"))
#> [1] "#DA4E3C" "#390963" "#F06F20"
#> [1] "#DA4E3C" "#390963" "#F06F20" # Expected