theme: Create a theme for a custom JBrowse 2 view

View source: R/theme.R

themeR Documentation

Create a theme for a custom JBrowse 2 view

Description

Creates the necessary configuration string for a custom theme palette for your browser. Accepts up to four hexadecimal colors. For more information on how JBrowse 2 custom themes work, visit https://jbrowse.org/jb2/docs/config_guide#configuring-the-theme

Usage

theme(primary, secondary = NULL, tertiary = NULL, quaternary = NULL)

Arguments

primary

the primary color of your custom palette

secondary

the secondary color of your custom palette

tertiary

the tertiary color of your custom palette

quaternary

the quaternary color of your custom palette

Value

a character vector of stringified theme JSON configuration to configure a custom color palette for the browser

Examples

theme("#311b92")
theme("#311b92", "#0097a7")
theme("#311b92", "#0097a7", "#f57c00")
theme("#311b92", "#0097a7", "#f57c00", "#d50000")

JBrowseR documentation built on June 8, 2023, 6:41 a.m.