Skip to content

Commit

Permalink
finish template consistency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherkenny committed Mar 19, 2024
1 parent 5d1801f commit cb3b2bc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions inst/theme_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ XXXX_theme_colors <- c(
text = '#F0F0F0',
panel = '#0B0C07',
border = '#81CF47',
strip_text = '#000000',
lighter = '#CAF6A7',
light = '#ACF570',
medium = '#76D52F',
Expand Down Expand Up @@ -80,19 +81,19 @@ theme_XXXX <- function(XXXX_font = TRUE, ...) {

# CUSTOM THEME:
ggplot2::theme(
plot.background = element_rect(fill = background_color_XXXX),
text = element_text(color = text_color_XXXX, family = font_family),
plot.background = element_rect(fill = XXXX_theme_colors["background"]),
text = element_text(color = XXXX_theme_colors["text"], family = font_family),
title = element_text(size = 20),
panel.grid.minor = element_blank(),
panel.grid.major = element_blank(),
panel.background = element_rect(fill = panel_fill_XXXX, color = panel_color_XXXX),
panel.border = element_rect(fill = NA, color = border_color_XXXX, linewidth = 1.2),
panel.background = element_rect(fill = XXXX_theme_colors["panel"], color = XXXX_theme_colors["medium"]),
panel.border = element_rect(fill = NA, color = XXXX_theme_colors["border"], linewidth = 1.2),
axis.title = element_text(size = 17),
axis.text = element_text(size = 13, color = text_color_XXXX),
axis.ticks = element_line(color = border_color_XXXX, linewidth = 1),
legend.background = element_rect(fill = panel_fill_XXXX, color = NA),
strip.background = element_rect(fill = lighter_color_XXXX, colour = border_color_XXXX),
strip.text = element_text(colour = strip_text_XXXX, size = 10)
axis.text = element_text(size = 13, color = XXXX_theme_colors["text"]),
axis.ticks = element_line(color = XXXX_theme_colors["border"], linewidth = 1),
legend.background = element_rect(fill = XXXX_theme_colors["panel"], color = NA),
strip.background = element_rect(fill = XXXX_theme_colors["lighter"], colour = XXXX_theme_colors["border"]),
strip.text = element_text(colour = XXXX_theme_colors["strip_text"], size = 10)
)
}

Expand Down

0 comments on commit cb3b2bc

Please sign in to comment.