% Generated by roxygen2: do not edit by hand % Please edit documentation in R/colors.R \name{civilytics_pal} \alias{civilytics_pal} \title{Civilytics brand color palette} \usage{ civilytics_pal(name = "main", n = NULL) } \arguments{ \item{name}{Character. Palette name: `"main"`, `"sequential"`, or `"diverging"`. Defaults to `"main"`.} \item{n}{Integer or `NULL`. Number of colors to return. If `NULL`, returns all colors in the palette. If `n` exceeds the number of defined stops, colors are interpolated via [grDevices::colorRampPalette()].} } \value{ A character vector of hex color codes. } \description{ Returns a character vector of hex codes from a named Civilytics palette. Available palettes: `"main"` (qualitative, up to 6), `"sequential"` (light to dark navy), `"diverging"` (orange–neutral–navy). } \examples{ civilytics_pal() # all 6 qualitative colors civilytics_pal("sequential", n = 3) civilytics_pal("diverging", n = 5) }