adaptive_color: Adaptive colors colors for hrbragg themes

Description Usage Arguments Value Examples

View source: R/theme-colors.R

Description

Explicit foreground/background theme color functions are provided along with the primary adaptive color switcher function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
adaptive_color(mode = c("light", "dark", "rstudio"), light, dark)

theme_background_color(
  mode = c("light", "dark", "rstudio"),
  light = "white",
  dark = "#121212"
)

theme_foreground_color(
  mode = c("light", "dark", "rstudio"),
  light = "#262626",
  dark = "#e1e1e1"
)

Arguments

mode

dark, light, or rstudio to base it on RStudio's active theme

light, dark

light and dark colors to auto-select from

dark

dark color to use

Value

length 1 character vector that represents a valid color

Examples

1

hrbrmstr/hrbragg documentation built on Feb. 3, 2022, 1:39 a.m.