jthomasmock / gtExtras

A Collection of Helper Functions for the gt Package.
https://jthomasmock.github.io/gtExtras/
Other
193 stars 26 forks source link

Increase column labels font size in nytimes theme #27

Closed jesbrz closed 2 years ago

jesbrz commented 2 years ago

Maybe this is not the right place to ask but, is it possible to increase the font size on the column labels? I'm trying with gt_theme_nytimes(column_labels.font.size = 14), but it doesn't work. Any tip? Thanks!

jthomasmock commented 2 years ago

Hi @Jes-Lop - I'm refactoring the themes, once I release the next version you should be able to use code like the below:

mtcars %>% 
  head() %>% 
  gt() %>% 
  gt_theme_nytimes() %>% 
  tab_options(
    column_labels.font.size = 24
  )
jesbrz commented 2 years ago

Thanks @jthomasmock