font: Font Function

View source: R/font.R

fontR Documentation

Font Function

Description

This function adds rge nta fonts to the app. See https://design-system.service.gov.uk/styles/typography/ for when they are allowed.

Usage

font()

Value

no value returned. This loads the font css file

Examples

if (interactive()) {

  ui <- fluidPage(
    font(),
    shinyGovstyle::header(
      main_text = "Example",
      secondary_text = "User Examples",
      logo="shinyGovstyle/images/moj_logo.png")
  )

  server <- function(input, output, session) {}

  shinyApp(ui = ui, server = server)
}

shinyGovstyle documentation built on Sept. 12, 2024, 5:07 p.m.