mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 18:09:39 +02:00
36 lines
1.3 KiB
R
36 lines
1.3 KiB
R
#' Custom theme based on unity
|
|
#'
|
|
#' @param ... everything passed on to bslib::bs_theme()
|
|
#'
|
|
#' @returns theme list
|
|
#' @export
|
|
custom_theme <- function(...,
|
|
version = 5,
|
|
primary = "#1E4A8F",
|
|
secondary = "#FF6F61",
|
|
bootswatch = "united",
|
|
base_font = bslib::font_google("Montserrat"),
|
|
heading_font = bslib::font_google("Public Sans",wght = "700"),
|
|
code_font = bslib::font_google("Open Sans")
|
|
# success = "#1E4A8F",
|
|
# info = ,
|
|
# warning = ,
|
|
# danger = ,
|
|
# fg = "#000",
|
|
# bg="#fff",
|
|
# base_font = bslib::font_google("Alice"),
|
|
# heading_font = bslib::font_google("Jost", wght = "800"),
|
|
# heading_font = bslib::font_google("Noto Serif"),
|
|
# heading_font = bslib::font_google("Alice"),
|
|
){
|
|
bslib::bs_theme(
|
|
...,
|
|
version = version,
|
|
primary = primary,
|
|
secondary = secondary,
|
|
bootswatch = bootswatch,
|
|
base_font = base_font,
|
|
heading_font = heading_font,
|
|
code_font = code_font
|
|
)
|
|
}
|