mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
just a bit of additional theming
This commit is contained in:
parent
c378b2570b
commit
7877d95176
9 changed files with 2795 additions and 27 deletions
29
R/theme.R
Normal file
29
R/theme.R
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#' Custom theme based on unity
|
||||
#'
|
||||
#' @param ... everything passed on to bslib::bs_theme()
|
||||
#'
|
||||
#' @returns theme list
|
||||
#' @export
|
||||
custom_theme <- function(...){
|
||||
bslib::bs_theme(
|
||||
...,
|
||||
# preset = "united",
|
||||
version = 5,
|
||||
primary = "#1E4A8F",
|
||||
secondary = "#FF6F61",
|
||||
# success = "#1E4A8F",
|
||||
# info = ,
|
||||
# warning = ,
|
||||
# danger = ,
|
||||
# fg = "#000",
|
||||
# bg="#fff",
|
||||
bootswatch = "united",
|
||||
base_font = bslib::font_google("Montserrat"),
|
||||
# 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"),
|
||||
heading_font = bslib::font_google("Public Sans",wght = "700"),
|
||||
code_font = bslib::font_google("Open Sans")
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue