% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/palettes.R
\name{resolve_colors}
\alias{resolve_colors}
\title{Resolve a Colour Vector for n Groups}
\usage{
resolve_colors(n, colors = NULL)
}
\arguments{
\item{n}{Integer. Number of colours required.}

\item{colors}{Character vector, palette name, or \code{NULL}.}
}
\value{
Character vector of exactly length \code{n}.
}
\description{
Returns exactly \code{n} colours. Priority order:
}
\details{
\enumerate{
\item Explicit \code{colors} argument - vector or palette name string.
\item \code{getOption("highdir.colors")} - set via \code{\link[=hd_set_theme]{hd_set_theme()}}.
\item Built-in hdir rules:
\itemize{
\item n == 2  -> \code{"hdir2"} two-colour teal/purple pair
\item n <= 10 -> \code{"hdir"} 10-colour brand palette
\item n > 10  -> viridis continuous scale
}
}
}
\keyword{internal}
