Skip to contents

A modified Bootstrap 4 theme based on IWMI branding guidelines.

Usage

bs_themed(
  base_font = "national-web-book",
  heading_font = "dm-serif-text",
  font_size = 16,
  palette = pal,
  elevation = 0,
  rounded = FALSE,
  gradients = FALSE
)

Arguments

base_font

The default typeface.

heading_font

The typeface to be used for heading elements.

font_size

base font size in pixel

palette

color palette (list of Bootstrap colors) (see pal)

elevation

default element shadow depth (see BS4 shadows)

rounded

enable rounded elements (see BS4 borders)

gradients

enable background gradients (see BS4 colors)

Value

Modified Bootstrap 4 theme

Examples

if(interactive()) bs_theme_preview(bs_themed())