mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: static font files without depency on google to allow more consistent UI.
This commit is contained in:
parent
16e3e5eb28
commit
41e40b770c
1 changed files with 15 additions and 3 deletions
18
R/theme.R
18
R/theme.R
|
|
@ -9,9 +9,21 @@ custom_theme <- function(...,
|
|||
primary = FreesearchR_colors("primary"),
|
||||
secondary = FreesearchR_colors("secondary"),
|
||||
bootswatch = "united",
|
||||
base_font = bslib::font_google("Montserrat"),
|
||||
heading_font = bslib::font_google("Public Sans", wght = "700"),
|
||||
code_font = bslib::font_google("Open Sans"),
|
||||
# base_font = bslib::font_google("Montserrat"),
|
||||
base_font = bslib::font_face(
|
||||
family = "Montserrat",
|
||||
src = "url('/fonts/Montserrat-Regular.ttf') format('truetype')"
|
||||
),
|
||||
# heading_font = bslib::font_google("Public Sans", wght = "700"),
|
||||
heading_font = bslib::font_face(
|
||||
family = "PublicSans",
|
||||
src = "url('/fonts/PublicSans-Bold.ttf') format('truetype')"
|
||||
),
|
||||
# code_font = bslib::font_google("Open Sans"),
|
||||
code_font = bslib::font_face(
|
||||
family = "OpenSans",
|
||||
src = "url('/fonts/OpenSans-Regular.ttf') format('truetype')"
|
||||
),
|
||||
success = FreesearchR_colors("success"),
|
||||
info = FreesearchR_colors("info"),
|
||||
warning = FreesearchR_colors("warning"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue