FreesearchR/man/custom_theme.Rd

33 lines
990 B
Text
Raw Normal View History

2024-12-19 11:32:32 +01:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theme.R
\name{custom_theme}
\alias{custom_theme}
\title{Custom theme based on unity}
\usage{
custom_theme(
...,
version = 5,
2025-04-28 08:31:23 +02:00
primary = FreesearchR_colors("primary"),
secondary = FreesearchR_colors("secondary"),
2024-12-19 11:32:32 +01:00
bootswatch = "united",
2026-02-28 12:08:01 +01:00
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')"),
2025-04-28 08:31:23 +02:00
success = FreesearchR_colors("success"),
info = FreesearchR_colors("info"),
warning = FreesearchR_colors("warning"),
danger = FreesearchR_colors("danger")
2024-12-19 11:32:32 +01:00
)
}
\arguments{
\item{...}{everything passed on to bslib::bs_theme()}
}
\value{
theme list
}
\description{
Custom theme based on unity
}