diff --git a/R/theme.R b/R/theme.R index 0b3dbeb..f575bb5 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 `14`. +#' @param font_size Numeric. Base font size in points. Default `16`. #' @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) | ~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 | +#' | 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 | #' #' 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 = 14, + font_size = 16, 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 = 14, + font_size = 16, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, diff --git a/README.Rmd b/README.Rmd index e54068f..acbb820 100644 --- a/README.Rmd +++ b/README.Rmd @@ -7,8 +7,7 @@ knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", - fig.retina = 2, - dpi = 150, + dpi = 96, out.width = "100%" ) ``` diff --git a/man/figures/README-logo-mark-1.png b/man/figures/README-logo-mark-1.png index b523593..2bf3208 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 a99e581..bb8ccf5 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 76c272c..e9090c2 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-gallery-1.png b/man/figures/README-palette-gallery-1.png index f63a316..e8e9e0a 100644 Binary files a/man/figures/README-palette-gallery-1.png and b/man/figures/README-palette-gallery-1.png differ diff --git a/man/figures/README-palette-usage-1.png b/man/figures/README-palette-usage-1.png index 17e8c6d..f473378 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 0b92476..0988ba2 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 f342c40..df909df 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 c4c2abe..43ef951 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 92c3157..f2d6c0f 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 944c90e..3178389 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 40731db..1beb5ec 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/figures/README-theme-slide-1.png b/man/figures/README-theme-slide-1.png index a9e3d34..7d07e94 100644 Binary files a/man/figures/README-theme-slide-1.png and b/man/figures/README-theme-slide-1.png differ diff --git a/man/theme_civilytics.Rd b/man/theme_civilytics.Rd index c7dfeb4..b3acd47 100644 --- a/man/theme_civilytics.Rd +++ b/man/theme_civilytics.Rd @@ -5,7 +5,7 @@ \title{Civilytics ggplot2 theme} \usage{ theme_civilytics( - font_size = 14, + font_size = 16, 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 `14`.} +\item{font_size}{Numeric. Base font size in points. Default `16`.} \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) | ~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 | +| 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 | 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 97dd6b8..2a8aa91 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 = 14, + font_size = 16, 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 `14`.} +\item{font_size}{Numeric. Base font size in points. Default `16`.} \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 4cff8c9..8427617 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 `14`.} +\item{font_size}{Numeric. Base font size in points. Default `16`.} \item{font_family}{Character. Font family for body/axis text. Default `"Inter"` (loaded via showtext).}