% Generated by roxygen2: do not edit by hand % Please edit documentation in R/theme.R \name{theme_civilytics_dark} \alias{theme_civilytics_dark} \title{Dark variant of the Civilytics ggplot2 theme} \usage{ theme_civilytics_dark( font_size = 14, font_family = CV_FONT_SANS, title_family = CV_FONT_DISPLAY, line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14, ink = unname(civilytics_colors["paper"]), paper = unname(civilytics_colors["navy_dark"]), accent = unname(civilytics_colors["accent_dark"]), strip_color = unname(civilytics_colors["navy"]) ) } \arguments{ \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).} \item{title_family}{Character. Font family for plot titles and strip labels. Default `"Libre Franklin"` (loaded via showtext).} \item{line_size}{Numeric. Base line width. Default `0.5`.} \item{rel_small}{Numeric. Scale factor for small text relative to `font_size`. Default `12/14`.} \item{rel_tiny}{Numeric. Scale factor for tiny text relative to `font_size`. Default `11/14`.} \item{rel_large}{Numeric. Scale factor for large text (titles) relative to `font_size`. Default `16/14`.} \item{ink}{Character. Hex code for foreground/text color. Defaults to [civilytics_colors]`["ink"]` (`#0E1A2B`).} \item{paper}{Character. Hex code for background color. Defaults to [civilytics_colors]`["paper"]` (`#FAF7F2`).} \item{accent}{Character. Hex code for accent/highlight color. Defaults to [civilytics_colors]`["accent"]` (`#C25311`).} \item{strip_color}{Character. Hex code for facet strip background. Defaults to [civilytics_colors]`["paper_2"]` (`#F2EDE4`).} } \value{ A complete ggplot2 [ggplot2::theme()] object. } \description{ A convenience wrapper around [theme_civilytics()] with dark-background defaults: navy (`#1A2E4A`) background, warm off-white (`#FAF7F2`) text, and a lighter orange accent (`#E07840`) suitable for dark backgrounds. Pair with `make_logo_grob(variant = "dark")` to use the white logo. } \details{ All parameters from [theme_civilytics()] are accepted and override the dark defaults. } \examples{ library(ggplot2) ggplot(mpg, aes(displ, hwy)) + geom_point() + theme_civilytics_dark() ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() + scale_color_civilytics() + theme_civilytics_dark() }