Skip to contents

Set a color theme for a Trelliscope display

Usage

set_theme(
  trdf,
  primary = "#448aff",
  dark = "#2e60b1",
  light = "#4dabf5",
  light_text_on_dark = TRUE,
  dark_text = "#000000",
  light_text = "#ffffff",
  header_background = "#fefefe",
  header_text = NULL,
  logo = NULL
)

Arguments

trdf

A trelliscope data frame created with as_trelliscope_df()

primary

Primary color to use.

dark

Dark color to use.

light

Light color to use.

light_text_on_dark

Should light text be used on backgrounds. using the dark color?

dark_text

Dark text color to use.

light_text

Light text color to use.

header_background

Color to use for the header background.

header_text

Color to use for the header text.

logo

URL (relative or absolute) to a logo image to include in the header.