

thematic
Theme ggplot2, lattice, and base graphics based on a few simple settings.
The thematic package provides simplified, centralized theming for ggplot2, lattice, and base R graphics. It enables automatic styling of R plots in Shiny apps, R Markdown documents, and RStudio by detecting relevant background, foreground, and accent colors from the environment.
The package automatically adapts plots to match CSS themes in Shiny, RStudio IDE themes, and bslib-powered R Markdown documents without manual configuration. It supports custom fonts including Google Fonts, provides sensible defaults for qualitative and sequential color scales, and allows manual override of any styling through standard plot-specific theming code. This eliminates the need to manually coordinate colors and fonts across different plotting systems.





