eha_flex_dashboard_light: EcoHealth Alliance Flex Dashboard Theme - Light

View source: R/eha_flexdashboard_light.R

eha_flex_dashboard_lightR Documentation

EcoHealth Alliance Flex Dashboard Theme - Light

Description

Function to create a custom flexdashboard theme for EHA.

Usage

eha_flex_dashboard_light(
  orientation = "rows",
  bg = "#f7fdff",
  fg = "#5EB9D6",
  primary = "#97C83E",
  secondary = "#B0A28A",
  version = 4,
  fontUrl = "https://font-avenir.s3.us-east-2.amazonaws.com/AvenirLTW04-85Heavy.woff2",
  family = "Avenir",
  style = "normal",
  weight = "500",
  ...
)

Arguments

orientation

Determines whether level 2 headings are treated as dashboard rows or dashboard columns.

bg

Background color for bs_theme

fg

Foreground color for bs_theme

primary

Primary color for bs_theme

secondary

Secondary color for code bs_theme

version

Bootstrap version to use with bs_theme

fontUrl

URL where font is hosted

family

String. Name of font family when using fontURL

style

String. Name of font style. Choose from normal, italic,oblique, initial, or inherit

weight

String. Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold. Can also use normal, bold, bolder, or lighter

...

Additional arguments to be passed to flex_dashboard

Value

function

CSS Font Properties

See W3 description of font property for additional details about customizing fonts.

See Also

flexdashboard::flex_dashboard() bslib::bs_theme()


ecohealthalliance/ehastyle documentation built on Jan. 28, 2023, 12:14 a.m.