feat: expand color system to 53 colors/10 palettes, add grid/slide themes, and README gallery
R-CMD-check / R CMD check (push) Successful in 3m41s
R-CMD-check / R CMD check (push) Successful in 3m41s
Replace the 16-color / 3-palette system with the full Civilytics design system: 53 named colors (full navy, ember, violet ramps plus teal, plum, moss, brass supporting hues) and 10 visualization palettes (qual, qual_warm, qual_cool, seq_ember, seq_navy, seq_violet, seq_paper_ink, div_navy_ember, div_violet_ember). Enrich theme_civilytics() with grid and paper_bg parameters, add theme_civilytics_slide() for presentations, and load all four brand fonts (Inter, Libre Franklin, Source Serif 4, JetBrains Mono). Add README.Rmd with rendered gallery showing all palettes, theme variants, grid options, dark/slide modes, facets, and scale usage.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/colors.R
|
||||
\docType{data}
|
||||
\name{civilytics_palettes}
|
||||
\alias{civilytics_palettes}
|
||||
\title{Civilytics visualization palettes}
|
||||
\format{
|
||||
A named list of character vectors of hex color codes.
|
||||
}
|
||||
\usage{
|
||||
civilytics_palettes
|
||||
}
|
||||
\description{
|
||||
Named list of curated color palettes for data visualization. Qualitative
|
||||
palettes use distinct hues for categorical data; sequential palettes ramp
|
||||
through a single hue for ordered data; diverging palettes fan out from a
|
||||
neutral midpoint.
|
||||
}
|
||||
\section{Qualitative (categorical data)}{
|
||||
|
||||
\describe{
|
||||
\item{`qual`}{7 distinct hues: navy, ember, plum, violet, red, teal, ink-3}
|
||||
\item{`qual_warm`}{Warm-leaning: ember, red, magenta, plum, violet}
|
||||
\item{`qual_cool`}{Cool-leaning: navy, violet, plum, teal}
|
||||
}
|
||||
}
|
||||
|
||||
\section{Sequential (ordered/continuous data)}{
|
||||
|
||||
\describe{
|
||||
\item{`seq_ember`}{Light to dark ember (9 stops)}
|
||||
\item{`seq_navy`}{Light to dark navy (9 stops)}
|
||||
\item{`seq_violet`}{Light to dark violet (9 stops)}
|
||||
\item{`seq_paper_ink`}{Paper through ember/plum to ink (8 stops, good for heatmaps)}
|
||||
}
|
||||
}
|
||||
|
||||
\section{Diverging (data with a meaningful midpoint)}{
|
||||
|
||||
\describe{
|
||||
\item{`div_navy_ember`}{Navy <-> paper <-> ember (9 stops)}
|
||||
\item{`div_violet_ember`}{Violet <-> paper <-> ember (9 stops)}
|
||||
}
|
||||
}
|
||||
|
||||
\examples{
|
||||
names(civilytics_palettes)
|
||||
civilytics_palettes[["qual"]]
|
||||
}
|
||||
\keyword{datasets}
|
||||
Reference in New Issue
Block a user