% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/palettes.R
\name{register_palette}
\alias{register_palette}
\title{Register a Named Colour Palette}
\usage{
register_palette(name, colors)
}
\arguments{
\item{name}{Character. Unique palette identifier.}

\item{colors}{Non-empty character vector of CSS/hex colour strings.}
}
\value{
\code{name}, invisibly.
}
\description{
Adds a named palette to the highdir palette registry so it can be
referenced by name wherever colours are accepted
(e.g. \code{hd_opts(colors = "my_palette")}). This function is evaluated
when loading a file in zzz.R file.
}
\details{
Built-in palettes registered at package load time:\tabular{ll}{
   Name \tab Description \cr
   \code{"hdir"} \tab Helsedirektoratet 10-colour brand palette \cr
   \code{"hdir2"} \tab 2-colour teal / purple pair \cr
}
}
\examples{
register_palette("blues", c("#084594", "#2171b5", "#4292c6", "#6baed6"))
get_palette("blues")

}
