Skip to contents

Text colours are designed for plotting text over an on-brand fill colour. Each NSW Design System colour has a corresponding text colour available via text_colours().

Usage

text_colours(...)

Arguments

...

Colour name(s). May be supplied as a character vector or as individual arguments.

Value

secondary_colours() returns the hex value of an appropriate text colour for each on-brand colour name supplied in its arguments.

Examples

text_colours("red-02", "blue-01", "blue-04")
#> <palettes_colour[3]>
#>  #FFFFFF
#>  #FFFFFF
#>  #000000