Apply ASCoR/UvA Theme to Dashboard
theme_ascor.RdReturns a list of styling parameters that apply University of Amsterdam
and ASCoR (Amsterdam School of Communication Research) branding to a dashboard.
Can be used with apply_theme() for piping or unpacked into create_dashboard().
All parameters can be overridden to customize the theme.
Value
A named list of theme parameters that can be unpacked into create_dashboard()
Details
The ASCoR theme includes:
UvA red (#CB0D0D) as primary brand color
Professional Fira Sans font for body text
Fira Code for code blocks
Optimal readability settings
Clean, academic styling
Examples
if (FALSE) { # \dontrun{
# Method 1: Use default ASCoR theme
dashboard <- create_dashboard("my_dashboard", "My Research Dashboard") %>%
apply_theme(theme_ascor()) %>%
add_page("Home", text = "# Welcome", is_landing_page = TRUE)
# Method 2: Override specific parameters
dashboard <- create_dashboard("custom", "Custom ASCoR Dashboard") %>%
apply_theme(theme_ascor(
fontsize = "18px",
max_width = "1400px",
mainfont = "Inter"
))
} # }