diff --git a/R/theme.R b/R/theme.R index f575bb5..0b3dbeb 100644 --- a/R/theme.R +++ b/R/theme.R @@ -13,7 +13,7 @@ #' automatically via [showtext] when the package is attached. Call #' [civilytics_load_fonts()] to reload them if needed. #' -#' @param font_size Numeric. Base font size in points. Default `16`. +#' @param font_size Numeric. Base font size in points. Default `14`. #' @param font_family Character. Font family for body/axis text. Default #' `"Inter"` (loaded via showtext). #' @param title_family Character. Font family for plot titles and strip labels. @@ -47,14 +47,14 @@ #' #' | Element | Scale factor | Default size | #' |:--------|:-------------|:-------------| -#' | Plot title | `rel_large` (1.43x) | ~23 pt | -#' | Subtitle | 1.0x | 16 pt | -#' | Axis text (tick labels) | `rel_small` (0.86x) | ~14 pt | -#' | Axis titles | `rel_small` (0.86x) | ~14 pt | -#' | Legend text | `rel_small` (0.86x) | ~14 pt | -#' | Caption | `rel_tiny` (0.79x) | ~13 pt | -#' | Legend title | `rel_tiny` (0.79x) | ~13 pt | -#' | Strip text (facets) | `rel_small` (0.86x) | ~14 pt | +#' | Plot title | `rel_large` (1.43x) | ~20 pt | +#' | Subtitle | 1.0x | 14 pt | +#' | Axis text (tick labels) | `rel_small` (0.86x) | ~12 pt | +#' | Axis titles | `rel_small` (0.86x) | ~12 pt | +#' | Legend text | `rel_small` (0.86x) | ~12 pt | +#' | Caption | `rel_tiny` (0.79x) | ~11 pt | +#' | Legend title | `rel_tiny` (0.79x) | ~11 pt | +#' | Strip text (facets) | `rel_small` (0.86x) | ~12 pt | #' #' To uniformly scale all text, change `font_size`. To adjust only the title #' prominence, change `rel_large`. When using [civilytics_logo()] to add a @@ -90,7 +90,7 @@ #' theme_civilytics(font_size = 18) #' } theme_civilytics <- function( - font_size = 16, + font_size = 14, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, @@ -327,7 +327,7 @@ theme_civilytics <- function( #' theme_civilytics_dark() #' } theme_civilytics_dark <- function( - font_size = 16, + font_size = 14, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, diff --git a/man/figures/README-logo-mark-1.png b/man/figures/README-logo-mark-1.png index 2bf3208..326c081 100644 Binary files a/man/figures/README-logo-mark-1.png and b/man/figures/README-logo-mark-1.png differ diff --git a/man/figures/README-logo-multi-1.png b/man/figures/README-logo-multi-1.png index bb8ccf5..8410e96 100644 Binary files a/man/figures/README-logo-multi-1.png and b/man/figures/README-logo-multi-1.png differ diff --git a/man/figures/README-logo-wordmark-1.png b/man/figures/README-logo-wordmark-1.png index e9090c2..1265206 100644 Binary files a/man/figures/README-logo-wordmark-1.png and b/man/figures/README-logo-wordmark-1.png differ diff --git a/man/figures/README-palette-usage-1.png b/man/figures/README-palette-usage-1.png index f473378..d99bca3 100644 Binary files a/man/figures/README-palette-usage-1.png and b/man/figures/README-palette-usage-1.png differ diff --git a/man/figures/README-palette-usage-2.png b/man/figures/README-palette-usage-2.png index 0988ba2..28325cf 100644 Binary files a/man/figures/README-palette-usage-2.png and b/man/figures/README-palette-usage-2.png differ diff --git a/man/figures/README-quickstart-1.png b/man/figures/README-quickstart-1.png index df909df..289cb53 100644 Binary files a/man/figures/README-quickstart-1.png and b/man/figures/README-quickstart-1.png differ diff --git a/man/figures/README-theme-dark-1.png b/man/figures/README-theme-dark-1.png index 43ef951..fdcd350 100644 Binary files a/man/figures/README-theme-dark-1.png and b/man/figures/README-theme-dark-1.png differ diff --git a/man/figures/README-theme-editorial-1.png b/man/figures/README-theme-editorial-1.png index f2d6c0f..4f9f1b7 100644 Binary files a/man/figures/README-theme-editorial-1.png and b/man/figures/README-theme-editorial-1.png differ diff --git a/man/figures/README-theme-facets-1.png b/man/figures/README-theme-facets-1.png index 3178389..1d96042 100644 Binary files a/man/figures/README-theme-facets-1.png and b/man/figures/README-theme-facets-1.png differ diff --git a/man/figures/README-theme-grids-1.png b/man/figures/README-theme-grids-1.png index 1beb5ec..69f3cbc 100644 Binary files a/man/figures/README-theme-grids-1.png and b/man/figures/README-theme-grids-1.png differ diff --git a/man/theme_civilytics.Rd b/man/theme_civilytics.Rd index b3acd47..c7dfeb4 100644 --- a/man/theme_civilytics.Rd +++ b/man/theme_civilytics.Rd @@ -5,7 +5,7 @@ \title{Civilytics ggplot2 theme} \usage{ theme_civilytics( - font_size = 16, + font_size = 14, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, @@ -21,7 +21,7 @@ theme_civilytics( ) } \arguments{ -\item{font_size}{Numeric. Base font size in points. Default `16`.} +\item{font_size}{Numeric. Base font size in points. Default `14`.} \item{font_family}{Character. Font family for body/axis text. Default `"Inter"` (loaded via showtext).} @@ -86,14 +86,14 @@ At the default `font_size = 14`: | Element | Scale factor | Default size | |:--------|:-------------|:-------------| -| Plot title | `rel_large` (1.43x) | ~23 pt | -| Subtitle | 1.0x | 16 pt | -| Axis text (tick labels) | `rel_small` (0.86x) | ~14 pt | -| Axis titles | `rel_small` (0.86x) | ~14 pt | -| Legend text | `rel_small` (0.86x) | ~14 pt | -| Caption | `rel_tiny` (0.79x) | ~13 pt | -| Legend title | `rel_tiny` (0.79x) | ~13 pt | -| Strip text (facets) | `rel_small` (0.86x) | ~14 pt | +| Plot title | `rel_large` (1.43x) | ~20 pt | +| Subtitle | 1.0x | 14 pt | +| Axis text (tick labels) | `rel_small` (0.86x) | ~12 pt | +| Axis titles | `rel_small` (0.86x) | ~12 pt | +| Legend text | `rel_small` (0.86x) | ~12 pt | +| Caption | `rel_tiny` (0.79x) | ~11 pt | +| Legend title | `rel_tiny` (0.79x) | ~11 pt | +| Strip text (facets) | `rel_small` (0.86x) | ~12 pt | To uniformly scale all text, change `font_size`. To adjust only the title prominence, change `rel_large`. When using [civilytics_logo()] to add a diff --git a/man/theme_civilytics_dark.Rd b/man/theme_civilytics_dark.Rd index 2a8aa91..97dd6b8 100644 --- a/man/theme_civilytics_dark.Rd +++ b/man/theme_civilytics_dark.Rd @@ -5,7 +5,7 @@ \title{Dark variant of the Civilytics ggplot2 theme} \usage{ theme_civilytics_dark( - font_size = 16, + font_size = 14, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, @@ -21,7 +21,7 @@ theme_civilytics_dark( ) } \arguments{ -\item{font_size}{Numeric. Base font size in points. Default `16`.} +\item{font_size}{Numeric. Base font size in points. Default `14`.} \item{font_family}{Character. Font family for body/axis text. Default `"Inter"` (loaded via showtext).} diff --git a/man/theme_civilytics_slide.Rd b/man/theme_civilytics_slide.Rd index 8427617..4cff8c9 100644 --- a/man/theme_civilytics_slide.Rd +++ b/man/theme_civilytics_slide.Rd @@ -21,7 +21,7 @@ theme_civilytics_slide( ) } \arguments{ -\item{font_size}{Numeric. Base font size in points. Default `16`.} +\item{font_size}{Numeric. Base font size in points. Default `14`.} \item{font_family}{Character. Font family for body/axis text. Default `"Inter"` (loaded via showtext).}