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

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")
#> [1] "{ \"palette\": { \"primary\": { \"main\": \"#311b92\" }}}"
theme("#311b92", "#0097a7")
#> [1] "{ \"palette\": { \"primary\": { \"main\": \"#311b92\" }, \"secondary\": { \"main\": \"#0097a7\" }}}"
theme("#311b92", "#0097a7", "#f57c00")
#> [1] "{ \"palette\": { \"primary\": { \"main\": \"#311b92\" }, \"secondary\": { \"main\": \"#0097a7\" }, \"tertiary\": { \"main\": \"#f57c00\" }}}"
theme("#311b92", "#0097a7", "#f57c00", "#d50000")
#> [1] "{ \"palette\": { \"primary\": { \"main\": \"#311b92\" }, \"secondary\": { \"main\": \"#0097a7\" }, \"tertiary\": { \"main\": \"#f57c00\" }, \"quaternary\": { \"main\": \"#d50000\" }}}"