Closed thomasp85 closed 2 months ago
Is the proposal here to do something like the following?
theme_grey <- function(..., base_family = "", header_family = base_family) {
theme(
text = element_text(family = base_family),
title = element_text(family = header_family),
...
)
}
Yes, exactly. I think subtitle and caption should inherit from the base font and title, axis title and guide title should inherit from the header font
Currently the theme constructors takes a base font argument to set the font for the titles/headers.
This ties into #5833 as we should also keep at least two fonts in the geom defaults inside themes