Skip to contents

Returns the organisation's accent colours set by use_brand() (or the brand_colors option), ready for manual scales or direct use. Without a brand, it falls back to pal_sequential_blue so it always returns something usable.

Usage

pal_brand(n = NULL)

Arguments

n

Number of colours wanted. NULL (default) returns the full accent vector as-is; when n exceeds the available colours the palette is interpolated with grDevices::colorRampPalette().

Value

A character vector of hex colours.

Details

Only the categorical brand accents live here. The semantic palettes (pal_rating, pal_nps) keep their red-amber-green vocabulary regardless of brand – recolouring "bad to good" with corporate accents would destroy the meaning the colours carry.

Examples

pal_brand()      # sequential blue until a brand is set
#> [1] "#8FE2FF" "#43CEFF" "#00B0F0" "#0070C0"
pal_brand(2)
#> [1] "#8FE2FF" "#43CEFF"