fix: address review round 4 for #7

This commit is contained in:
2026-06-21 05:53:58 +00:00
parent e256b73053
commit 1739ed601a
6 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
#'
#' @section Themes:
#' \itemize{
#' \item [theme_civilytics()] -- editorial theme with warm paper background
#' \item [theme_civilytics()] -- editorial theme with transparent background (opt-in cream)
#' \item [theme_civilytics_dark()] -- navy background variant
#' \item [theme_civilytics_slide()] -- transparent background, larger text
#' }
+2 -2
View File
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
Brand themes, color palettes, and utility functions for
[Civilytics Consulting](https://www.civilytics.com). The package provides a
complete ggplot2 theme system drawn from the Civilytics design system ---
warm paper backgrounds, civic-navy ink, and editorial typography --- along
transparent backgrounds (opt-in cream), civic-navy ink, and editorial typography --- along
with 10 curated color palettes, logo composition helpers, and data-wrangling
utilities for public-sector analysis.
@@ -114,7 +114,7 @@ same typographic structure and accept `grid` and `paper_bg` parameters.
### Editorial (default)
The default theme uses a warm paper background with horizontal gridlines ---
The default theme uses a transparent background with horizontal gridlines ---
an editorial, Pew-style layout.
```{r theme-editorial, fig.height = 4, fig.width = 7}
+1 -1
View File
@@ -82,7 +82,7 @@ parameters.
### Editorial (default)
The default theme uses a warm paper background with horizontal gridlines
The default theme uses a transparent background with horizontal gridlines
— an editorial, Pew-style layout.
``` r
+1 -1
View File
@@ -14,7 +14,7 @@ public-sector analysis.
\section{Themes}{
\itemize{
\item [theme_civilytics()] -- editorial theme with warm paper background
\item [theme_civilytics()] -- editorial theme with transparent background (opt-in cream)
\item [theme_civilytics_dark()] -- navy background variant
\item [theme_civilytics_slide()] -- transparent background, larger text
}
+1 -1
View File
@@ -17,7 +17,7 @@ theme_civilytics(
accent = unname(civilytics_colors["ember_600"]),
strip_color = unname(civilytics_colors["paper_2"]),
grid = c("y", "x", "both", "none"),
paper_bg = FALSE
paper_bg = FALSE
)
}
\arguments{
+3 -4
View File
@@ -56,10 +56,9 @@ to [civilytics_colors]`["paper_2"]` (`#F2EDE4`).}
\item{grid}{Character. Which major gridlines to draw: `"y"` (default,
horizontal only), `"x"` (vertical only), `"both"`, or `"none"`.}
\item{paper_bg}{Logical. If `TRUE` (default), fill the plot and panel
backgrounds with the warm `paper` color. Set to `FALSE` for a
transparent background (useful for slides or overlay on colored
surfaces).}
\item{paper_bg}{Logical. If `FALSE` (default), the plot and panel
backgrounds are transparent (`fill = NA`). Set to `TRUE` to fill them
with the warm `paper` color for a branded cream canvas.}
}
\value{
A complete ggplot2 [ggplot2::theme()] object.