Metropolitan-Council / councilR

A curated collection of commonly used templates, color palettes, functions, and more!
Other
6 stars 1 forks source link

Relative font sizes #13

Closed eroten closed 2 years ago

eroten commented 4 years ago

In council_theme(), we have each font size as its own parameter. I'd like to modify the function so that you can use specific sizes OR use a base font size and generate font sizes using a relative multiplier

For example

# current setup
size_header <- 22
size_axis_title <- 14

# new setup

base_size <- 12
size_header <- round(base_size *  1.8, digits = 0)
size_axis_title <- round(base_size * 1.1,  digits = 0)

We will need to establish what multiplier to use for each element and have some sort of limit on the font size (nothing smaller than 8). There is likely some general rule for text hierarchy in graphic design to be found out there.

eroten commented 2 years ago

Duplicate of #23