mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
feat: prepared for local fonts. not really working.
This commit is contained in:
parent
fcc9443cea
commit
fe1609b4f6
39 changed files with 215 additions and 77 deletions
|
|
@ -1,21 +1,18 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/theme.R
|
||||
\name{custom_theme}
|
||||
\alias{custom_theme}
|
||||
\name{FreesearchR_theme}
|
||||
\alias{FreesearchR_theme}
|
||||
\title{Custom theme based on unity}
|
||||
\usage{
|
||||
custom_theme(
|
||||
FreesearchR_theme(
|
||||
...,
|
||||
version = 5,
|
||||
primary = FreesearchR_colors("primary"),
|
||||
secondary = FreesearchR_colors("secondary"),
|
||||
bootswatch = "united",
|
||||
base_font = bslib::font_face(family = "Montserrat", src =
|
||||
"url('/fonts/Montserrat-Regular.ttf') format('truetype')"),
|
||||
heading_font = bslib::font_face(family = "PublicSans", src =
|
||||
"url('/fonts/PublicSans-Bold.ttf') format('truetype')"),
|
||||
code_font = bslib::font_face(family = "OpenSans", src =
|
||||
"url('/fonts/OpenSans-Regular.ttf') format('truetype')"),
|
||||
base_font = bslib::font_google("Montserrat"),
|
||||
heading_font = bslib::font_google("Public Sans", wght = "700"),
|
||||
code_font = bslib::font_google("Open Sans"),
|
||||
success = FreesearchR_colors("success"),
|
||||
info = FreesearchR_colors("info"),
|
||||
warning = FreesearchR_colors("warning"),
|
||||
|
|
@ -31,3 +28,9 @@ theme list
|
|||
\description{
|
||||
Custom theme based on unity
|
||||
}
|
||||
\examples{
|
||||
if (interactive()) {
|
||||
bs_theme_preview(FreesearchR_theme)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue