View source: R/su_theme_cols.R
su_theme_cols | R Documentation |
This function returns the colours that are used in the Strategy Unit theme as a named vector of RGB values in hexadecimal form.
su_theme_cols(
...,
palette = c(NA, "main", "oranges", "charcoals", "slates", "reds", "blues")
)
... |
individual colours that you wish to get the values of |
palette |
a name of a palette to select the colours of |
If no arguments are passed to the function, then all of the colours are returned. If only specific colours are required, then the names of the colours that are required can be passed as strings to the function, and only those colours will be returned.
If a "pallete" is selected then no arguments should be passed to ...
Only one palete can be selected at a time.
a named vector of RGB colours in hexadecimal form
# show all of the colours
su_theme_cols()
# or, just show some colours
su_theme_cols("orange", "red", "grey")
# or, select a single palette
su_theme_cols(palette = "slates")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.