Open aaronw22 opened 5 months ago
Generate lighter shades of base colours using grDevices::colorRampPalette instead of manually listing them.
grDevices::colorRampPalette
Useful for any future tweaking to the base colour shades.
Copy how Grattan does it here: https://github.com/grattan/grattantheme/blob/5108c87d7cbb95461c900c616d4740c9c2d0d3c6/R/create_grattan_colours.R
Generate lighter shades of base colours using
grDevices::colorRampPalette
instead of manually listing them.Useful for any future tweaking to the base colour shades.
Copy how Grattan does it here: https://github.com/grattan/grattantheme/blob/5108c87d7cbb95461c900c616d4740c9c2d0d3c6/R/create_grattan_colours.R