Also allow NULL or NA for template arguments but change default to NULLtags/v0.3.0
| @@ -24,5 +24,6 @@ Imports: | |||
| purrr, | |||
| tibble, | |||
| glue, | |||
| stringr | |||
| stringr, | |||
| whisker | |||
| VignetteBuilder: knitr | |||
| @@ -7,12 +7,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `secondary_color`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `text_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `secondary_color`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `secondary_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `primary_color`. Modifies the `.inverse` class. | |||
| @@ -20,10 +20,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `primary_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `secondary_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `primary_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(secondary_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -68,12 +68,12 @@ duo <- function( | |||
| text_bold_color = secondary_color, | |||
| text_slide_number_color = text_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = secondary_color, | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = primary_color, | |||
| @@ -81,10 +81,10 @@ duo <- function( | |||
| inverse_header_color = primary_color, | |||
| title_slide_text_color = secondary_color, | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(secondary_color, 0.6), | |||
| @@ -9,12 +9,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `primary_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `choose_dark_or_light(secondary_color, primary_color, secondary_color)`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `secondary_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `choose_dark_or_light(secondary_color, black_color, white_color)`. Modifies the `.inverse` class. | |||
| @@ -22,10 +22,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `choose_dark_or_light(secondary_color, black_color, white_color)`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `choose_dark_or_light(primary_color, black_color, white_color)`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `primary_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(primary_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -72,12 +72,12 @@ duo_accent <- function( | |||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| text_slide_number_color = primary_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| @@ -85,10 +85,10 @@ duo_accent <- function( | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| @@ -9,12 +9,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `choose_dark_or_light(secondary_color, secondary_color, primary_color)`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `primary_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `choose_dark_or_light(secondary_color, secondary_color, primary_color)`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `secondary_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `choose_dark_or_light(secondary_color, black_color, white_color)`. Modifies the `.inverse` class. | |||
| @@ -22,10 +22,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `choose_dark_or_light(secondary_color, black_color, white_color)`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `choose_dark_or_light(primary_color, black_color, white_color)`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `primary_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(primary_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -72,12 +72,12 @@ duo_accent_inverse <- function( | |||
| text_bold_color = choose_dark_or_light(secondary_color, secondary_color, primary_color), | |||
| text_slide_number_color = primary_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, secondary_color, primary_color), | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| @@ -85,10 +85,10 @@ duo_accent_inverse <- function( | |||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||
| title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| @@ -8,12 +8,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `base_color`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `base_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `base_color`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `base_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `white_color`. Modifies the `.inverse` class. | |||
| @@ -21,10 +21,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `white_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(base_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -70,12 +70,12 @@ mono_accent <- function( | |||
| text_bold_color = base_color, | |||
| text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = base_color, | |||
| inverse_text_color = white_color, | |||
| @@ -83,10 +83,10 @@ mono_accent <- function( | |||
| inverse_header_color = white_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| @@ -8,12 +8,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `base_color`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `base_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `base_color`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `base_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `black_color`. Modifies the `.inverse` class. | |||
| @@ -21,10 +21,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `black_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(base_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -70,12 +70,12 @@ mono_accent_inverse <- function( | |||
| text_bold_color = base_color, | |||
| text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = base_color, | |||
| inverse_text_color = black_color, | |||
| @@ -83,10 +83,10 @@ mono_accent_inverse <- function( | |||
| inverse_header_color = black_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| @@ -8,12 +8,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `base_color`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `base_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `base_color`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `base_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `black_color`. Modifies the `.inverse` class. | |||
| @@ -21,10 +21,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `black_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(base_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -70,12 +70,12 @@ mono_dark <- function( | |||
| text_bold_color = base_color, | |||
| text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = base_color, | |||
| inverse_text_color = black_color, | |||
| @@ -83,10 +83,10 @@ mono_dark <- function( | |||
| inverse_header_color = black_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| @@ -8,12 +8,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to `base_color`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `base_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to `base_color`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to `base_color`. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to `white_color`. Modifies the `.inverse` class. | |||
| @@ -21,10 +21,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `white_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to `apply_alpha(base_color, 0.6)`. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -70,12 +70,12 @@ mono_light <- function( | |||
| text_bold_color = base_color, | |||
| text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = base_color, | |||
| inverse_text_color = white_color, | |||
| @@ -83,10 +83,10 @@ mono_light <- function( | |||
| inverse_header_color = white_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| @@ -5,12 +5,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to #d33682. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to #586e75. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to #268bd240. Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to #6c71c4. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to #fdf6e3. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to #002b36. Modifies the `.inverse` class. | |||
| @@ -18,10 +18,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to #586e75. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -64,12 +64,12 @@ solarized_dark <- function( | |||
| text_bold_color = "#d33682", | |||
| text_slide_number_color = "#586e75", | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "#268bd240", | |||
| code_inline_color = "#6c71c4", | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = "#fdf6e3", | |||
| inverse_text_color = "#002b36", | |||
| @@ -77,10 +77,10 @@ solarized_dark <- function( | |||
| inverse_header_color = inverse_text_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#586e75", | |||
| @@ -5,12 +5,12 @@ | |||
| #' @param text_bold_color Bold Text Color. Defaults to #d33682. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to #93a1a1. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to #268bd240. Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to #6c71c4. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to #002b36. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to #fdf6e3. Modifies the `.inverse` class. | |||
| @@ -18,10 +18,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to #93a1a1. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -64,12 +64,12 @@ solarized_light <- function( | |||
| text_bold_color = "#d33682", | |||
| text_slide_number_color = "#93a1a1", | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "#268bd240", | |||
| code_inline_color = "#6c71c4", | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = "#002b36", | |||
| inverse_text_color = "#fdf6e3", | |||
| @@ -77,10 +77,10 @@ solarized_light <- function( | |||
| inverse_header_color = inverse_text_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#93a1a1", | |||
| @@ -4,15 +4,15 @@ template_variables <- tibble::tribble( | |||
| , "header_color", "#000", "h1, h2, h3", "Header Color" | |||
| , "background_color", "#FFF", ".remark-slide-content", "Slide Background Color" | |||
| , "link_color", "rgb(249, 38, 114)", "a, a > code", "Link Color" | |||
| , "text_bold_color", NA_character_, "strong", "Bold Text Color" | |||
| , "text_bold_color", NULL, "strong", "Bold Text Color" | |||
| , "text_slide_number_color", "{inverse_background_color}", ".remark-slide-number", "Slide Number Color" | |||
| , "padding", "1em 4em 1em 4em", ".remark-slide-content", "Slide Padding in `top right [bottom left]` format" | |||
| , "background_image", NA_character_, ".remark-slide-content", "Background image applied to each *and every* slide. Set `title_slide_background_image = \"none\"` to remove the background image from the title slide." | |||
| , "background_size", NA_character_, ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent." | |||
| , "background_position", NA_character_, ".remark-slide-content", "Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`." | |||
| , "background_image", NULL, ".remark-slide-content", "Background image applied to each *and every* slide. Set `title_slide_background_image = \"none\"` to remove the background image from the title slide." | |||
| , "background_size", NULL, ".remark-slide-content", "Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent." | |||
| , "background_position", NULL, ".remark-slide-content", "Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`." | |||
| , "code_highlight_color", "rgba(255,255,0,0.5)", ".remark-code-line-highlighted", "Code Line Highlight" | |||
| , "code_inline_color", "#000", ".remark-inline-code", "Inline Code Color" | |||
| , "code_inline_background_color", NA_character_, ".remark-inline-code", "Inline Code Background Color" | |||
| , "code_inline_background_color", NULL, ".remark-inline-code", "Inline Code Background Color" | |||
| , "code_inline_font_size", "1em", ".remark-inline-code", "Inline Code Text Font Size" | |||
| , "inverse_background_color", "#272822", ".inverse", "Inverse Background Color" | |||
| , "inverse_text_color", "#d6d6d6", ".inverse", "Inverse Text Color" | |||
| @@ -20,10 +20,10 @@ template_variables <- tibble::tribble( | |||
| , "inverse_header_color", "#f3f3f3", ".inverse h1, .inverse h2, .inverse h3", "Inverse Header Color" | |||
| , "title_slide_text_color", "{inverse_text_color}", ".title-slide", "Title Slide Text Color" | |||
| , "title_slide_background_color", "{inverse_background_color}", ".title-slide", "Title Slide Background Color" | |||
| , "title_slide_background_image", NA_character_, ".title-slide", "Title Slide Background Image URL" | |||
| , "title_slide_background_size", NA_character_, ".title-slide", "Title Slide Background Image Size, defaults to \"cover\" if background image is set" | |||
| , "title_slide_background_position", NA_character_, ".title-slide", "Title Slide Background Image Position" | |||
| , "footnote_color", NA_character_, ".footnote", "Footnote text color (if `NA`, then it will be the same color as `text_color`)" | |||
| , "title_slide_background_image", NULL, ".title-slide", "Title Slide Background Image URL" | |||
| , "title_slide_background_size", NULL, ".title-slide", "Title Slide Background Image Size, defaults to \"cover\" if background image is set" | |||
| , "title_slide_background_position", NULL, ".title-slide", "Title Slide Background Image Position" | |||
| , "footnote_color", NULL, ".footnote", "Footnote text color (if `NA`, then it will be the same color as `text_color`)" | |||
| , "footnote_font_size", "0.9em", ".footnote", "Footnote font size" | |||
| , "footnote_position_bottom", "3em", ".footnote", "Footnote location from bottom of screen" | |||
| , "left_column_subtle_color", "#777", ".left-column h2, .left-column h3", "Left Column Text (not last)" | |||
| @@ -1,5 +1,7 @@ | |||
| `%||%` <- function(x, y) if (is.null(x)) y else x | |||
| `%??%` <- function(x, y) if (!is.null(x)) y else NULL | |||
| #' @title Generate lighter or darker version of a color | |||
| #' @description Produces a linear blend of the color with white or black. | |||
| #' @param color_hex A character string representing a hex color | |||
| @@ -2,15 +2,15 @@ | |||
| #' @param header_color Header Color. Defaults to #000. Modifies the `h1, h2, h3` elements. | |||
| #' @param background_color Slide Background Color. Defaults to #FFF. Modifies the `.remark-slide-content` class. | |||
| #' @param link_color Link Color. Defaults to rgb(249, 38, 114). Modifies the `a, a > code` elements. | |||
| #' @param text_bold_color Bold Text Color. Defaults to NA. Modifies the `strong` element. | |||
| #' @param text_bold_color Bold Text Color. Defaults to `NULL`. Modifies the `strong` element. | |||
| #' @param text_slide_number_color Slide Number Color. Defaults to `inverse_background_color`. Modifies the `.remark-slide-number` class. | |||
| #' @param padding Slide Padding in `top right [bottom left]` format. Defaults to 1em 4em 1em 4em. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to NA. Modifies the `.remark-slide-content` class. | |||
| #' @param background_image Background image applied to each *and every* slide. Set `title_slide_background_image = "none"` to remove the background image from the title slide.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_size Background image size, requires `background_image` to be set. If `background_image` is set, `background_size` will default to `cover` so the backround fills the screen. If both `background_image` and `background_position` are set, will default to 100 percent.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param background_position Background image position, requires `background_image` to be set, and it is recommended to adjust `background_size`.. Defaults to `NULL`. Modifies the `.remark-slide-content` class. | |||
| #' @param code_highlight_color Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the `.remark-code-line-highlighted` class. | |||
| #' @param code_inline_color Inline Code Color. Defaults to #000. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to NA. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_background_color Inline Code Background Color. Defaults to `NULL`. Modifies the `.remark-inline-code` class. | |||
| #' @param code_inline_font_size Inline Code Text Font Size. Defaults to 1em. Modifies the `.remark-inline-code` class. | |||
| #' @param inverse_background_color Inverse Background Color. Defaults to #272822. Modifies the `.inverse` class. | |||
| #' @param inverse_text_color Inverse Text Color. Defaults to #d6d6d6. Modifies the `.inverse` class. | |||
| @@ -18,10 +18,10 @@ | |||
| #' @param inverse_header_color Inverse Header Color. Defaults to #f3f3f3. Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. | |||
| #' @param title_slide_text_color Title Slide Text Color. Defaults to `inverse_text_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_color Title Slide Background Color. Defaults to `inverse_background_color`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to NA. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to NA. Modifies the `.footnote` class. | |||
| #' @param title_slide_background_image Title Slide Background Image URL. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_size Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param title_slide_background_position Title Slide Background Image Position. Defaults to `NULL`. Modifies the `.title-slide` class. | |||
| #' @param footnote_color Footnote text color (if `NA`, then it will be the same color as `text_color`). Defaults to `NULL`. Modifies the `.footnote` class. | |||
| #' @param footnote_font_size Footnote font size. Defaults to 0.9em. Modifies the `.footnote` class. | |||
| #' @param footnote_position_bottom Footnote location from bottom of screen. Defaults to 3em. Modifies the `.footnote` class. | |||
| #' @param left_column_subtle_color Left Column Text (not last). Defaults to #777. Modifies the `.left-column h2, .left-column h3` classes. | |||
| @@ -60,15 +60,15 @@ write_xaringan_theme <- function( | |||
| header_color = "#000", | |||
| background_color = "#FFF", | |||
| link_color = "rgb(249, 38, 114)", | |||
| text_bold_color = NA, | |||
| text_bold_color = NULL, | |||
| text_slide_number_color = inverse_background_color, | |||
| padding = "1em 4em 1em 4em", | |||
| background_image = NA, | |||
| background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, | |||
| background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = "#000", | |||
| code_inline_background_color = NA, | |||
| code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = "#272822", | |||
| inverse_text_color = "#d6d6d6", | |||
| @@ -76,10 +76,10 @@ write_xaringan_theme <- function( | |||
| inverse_header_color = "#f3f3f3", | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, | |||
| title_slide_background_size = NA, | |||
| title_slide_background_position = NA, | |||
| footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, | |||
| footnote_color = NULL, | |||
| footnote_font_size = "0.9em", | |||
| footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#777", | |||
| @@ -142,21 +142,28 @@ write_xaringan_theme <- function( | |||
| } | |||
| } | |||
| # Handle background-image defaults | |||
| if (!is.na(background_image)) { | |||
| if (is.na(background_size)) background_size <- ifelse( | |||
| is.na(background_position), | |||
| "cover", | |||
| "100%" | |||
| ) | |||
| extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts) | |||
| # convert NA arguments to NULL | |||
| for (var in f_args) { | |||
| val <- eval(parse(text = var)) | |||
| if (is.null(val)) next | |||
| is_na <- is.na(val) | |||
| if (is_na) assign(var, NULL) | |||
| } | |||
| extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts) | |||
| # prepare variables for template | |||
| backround_size_fallback <- if (is.null(background_position)) "cover" else "100%" | |||
| background_size <- background_image %??% (background_size %||% background_size_fallback) | |||
| title_slide_background_size <- title_slide_background_size %||% ( | |||
| title_slide_background_image %??% "cover" | |||
| ) | |||
| table_row_even_background_color <- table_row_even_background_color %||% background_color | |||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | |||
| template <- readLines(tf, warn = FALSE) | |||
| template <- paste(template, collapse = "\n") | |||
| x <- glue::glue(template, .open = "{{", .close = "}}") | |||
| x <- whisker::whisker.render(template) | |||
| writeLines(x, con = outfile) | |||
| if (!is.null(extra_css)) write_extra_css(extra_css, outfile) | |||
| outfile | |||
| @@ -19,10 +19,10 @@ | |||
| @import url({{text_font_url}}); | |||
| @import url({{header_font_url}}); | |||
| @import url({{code_font_url}}); | |||
| {{extra_font_imports}} | |||
| {{#extra_font_imports}}{{extra_font_imports}}{{/extra_font_imports}} | |||
| body { | |||
| font-family: {{paste(text_font_family, text_font_family_fallback, text_font_base, sep = ", ")}}; | |||
| font-family: {{body_font_family}}; | |||
| font-weight: {{text_font_weight}}; | |||
| color: {{text_color}}; | |||
| } | |||
| @@ -34,9 +34,11 @@ h1, h2, h3 { | |||
| .remark-slide-content { | |||
| background-color: {{background_color}}; | |||
| font-size: {{text_font_size}}; | |||
| {{ifelse(!is.na(background_image), paste0("background-image: url(", background_image, ");"), "")}} | |||
| {{ifelse(!is.na(background_image) && !is.na(background_size), paste0("background-size: ", background_size, ";"), "")}} | |||
| {{ifelse(!is.na(background_image) && !is.na(background_position), paste0("background-position: ", background_position, ";"), "")}} | |||
| {{#background_image}} | |||
| background-image: url({{background_image}}); | |||
| {{#background_size}}background-size: {{background_size}};{{/background_size}} | |||
| {{#background_position}}background-position: {{background_position}};{{/background_position}} | |||
| {{/background_image}} | |||
| padding: {{padding}}; | |||
| } | |||
| .remark-slide-content h1 { | |||
| @@ -55,23 +57,27 @@ h1, h2, h3 { | |||
| font-size: {{code_font_size}}; | |||
| } | |||
| .remark-inline-code { | |||
| {{#code_inline_color}}color: {{code_inline_color}};{{/code_inline_color}} | |||
| {{#code_inline_background_color}} | |||
| background-color: {{code_inline_background_color}}; | |||
| padding: 2px; | |||
| {{/code_inline_background_color}} | |||
| font-size: {{code_inline_font_size}}; | |||
| {{ifelse(!is.na(code_inline_color), paste0("color: ", code_inline_color, ";"), "")}} | |||
| {{ifelse(!is.na(code_inline_background_color), paste0("background-color: ", code_inline_background_color, ";"), "")}} | |||
| {{ifelse(!is.na(code_inline_background_color), "padding: 2px;", "")}} | |||
| } | |||
| .remark-slide-number { | |||
| color: {{text_slide_number_color}}; | |||
| opacity: 1; | |||
| font-size: {{text_slide_number_font_size}}; | |||
| } | |||
| {{ifelse(!is.na(text_bold_color), paste0("strong{color:", text_bold_color,";}"), "")}} | |||
| {{#text_bold_color}} | |||
| strong { color: {{text_bold_color}}; } | |||
| {{/text_bold_color}} | |||
| a, a > code { | |||
| color: {{link_color}}; | |||
| text-decoration: none; | |||
| } | |||
| .footnote { | |||
| {{ifelse(!is.na(footnote_color), paste0("color: ", footnote_color, ";"), "")}} | |||
| {{#footnote_color}}color: {{footnote_color}};{{/footnote_color}} | |||
| position: absolute; | |||
| bottom: {{footnote_position_bottom}}; | |||
| padding-right: 4em; | |||
| @@ -83,7 +89,7 @@ a, a > code { | |||
| .inverse { | |||
| background-color: {{inverse_background_color}}; | |||
| color: {{inverse_text_color}}; | |||
| {{ifelse(inverse_text_shadow, "text-shadow: 0 0 20px #333;", "")}} | |||
| {{#inverse_text_shadow}}text-shadow: 0 0 20px #333;{{/inverse_text_shadow}} | |||
| } | |||
| .inverse h1, .inverse h2, .inverse h3 { | |||
| color: {{inverse_header_color}}; | |||
| @@ -93,9 +99,9 @@ a, a > code { | |||
| } | |||
| .title-slide { | |||
| background-color: {{title_slide_background_color}}; | |||
| {{ifelse(!is.na(title_slide_background_image), paste0("background-image: url(", title_slide_background_image, ");"), "")}} | |||
| {{ifelse(!is.na(title_slide_background_size), paste0("background-size: ", title_slide_background_size, ";"), ifelse(!is.na(title_slide_background_image), "background-size: cover;", ""))}} | |||
| {{ifelse(!is.na(title_slide_background_position), paste0("background-position: ", title_slide_background_position, ";"), "")}} | |||
| {{#title_slide_background_image}}background-image: url("{{title_slide_background_image}}");{{/title_slide_background_image}} | |||
| {{#title_slide_background_size}}background-size: {{title_slide_background_size}};{{/title_slide_background_size}} | |||
| {{#title_slide_background_position}}background-position: {{title_slide_background_position}};{{/title_slide_background_position}} | |||
| } | |||
| .title-slide .remark-slide-number { | |||
| display: none; | |||
| @@ -140,9 +146,15 @@ blockquote { | |||
| border-top: 1px solid {{table_border_color}}; | |||
| border-bottom: 1px solid {{table_border_color}}; | |||
| } | |||
| .remark-slide table thead th { border-bottom: 1px solid {{table_row_border_color}}; } | |||
| th, td { padding: 5px; } | |||
| .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { background: {{table_row_even_background_color}} } | |||
| .remark-slide table thead th { | |||
| border-bottom: 1px solid {{table_row_border_color}}; | |||
| } | |||
| th, td { | |||
| padding: 5px; | |||
| } | |||
| .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { | |||
| background: {{table_row_even_background_color}} | |||
| } | |||
| table.dataTable tbody { | |||
| background-color: {{background_color}}; | |||
| color: {{text_color}}; | |||
| @@ -151,7 +163,7 @@ table.dataTable.display tbody tr.odd { | |||
| background-color: {{background_color}}; | |||
| } | |||
| table.dataTable.display tbody tr.even { | |||
| background-color: {{ifelse(!is.na(table_row_even_background_color), table_row_even_background_color, background_color)}}; | |||
| background-color: {{table_row_even_background_color}} | |||
| } | |||
| table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover { | |||
| background-color: rgba(255, 255, 255, 0.5); | |||
| @@ -28,21 +28,28 @@ for (var in f_args[grepl("font_google$", f_args)]) { | |||
| } | |||
| } | |||
| # Handle background-image defaults | |||
| if (!is.na(background_image)) { | |||
| if (is.na(background_size)) background_size <- ifelse( | |||
| is.na(background_position), | |||
| "cover", | |||
| "100%" | |||
| ) | |||
| extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts) | |||
| # convert NA arguments to NULL | |||
| for (var in f_args) { | |||
| val <- eval(parse(text = var)) | |||
| if (is.null(val)) next | |||
| is_na <- is.na(val) | |||
| if (is_na) assign(var, NULL) | |||
| } | |||
| extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts) | |||
| # prepare variables for template | |||
| backround_size_fallback <- if (is.null(background_position)) "cover" else "100%" | |||
| background_size <- background_image %??% (background_size %||% background_size_fallback) | |||
| title_slide_background_size <- title_slide_background_size %||% ( | |||
| title_slide_background_image %??% "cover" | |||
| ) | |||
| table_row_even_background_color <- table_row_even_background_color %||% background_color | |||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | |||
| template <- readLines(tf, warn = FALSE) | |||
| template <- paste(template, collapse = "\n") | |||
| x <- glue::glue(template, .open = "{{", .close = "}}") | |||
| x <- whisker::whisker.render(template) | |||
| writeLines(x, con = outfile) | |||
| if (!is.null(extra_css)) write_extra_css(extra_css, outfile) | |||
| outfile | |||
| @@ -10,18 +10,19 @@ duo(primary_color = "#1F4257", secondary_color = "#F97B64", | |||
| header_color = secondary_color, background_color = primary_color, | |||
| link_color = secondary_color, text_bold_color = secondary_color, | |||
| text_slide_number_color = text_color, padding = "1em 4em 1em 4em", | |||
| background_image = NA, background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = secondary_color, | |||
| code_inline_background_color = NA, code_inline_font_size = "1em", | |||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = primary_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = primary_color, | |||
| title_slide_text_color = secondary_color, | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(secondary_color, 0.6), | |||
| left_column_selected_color = secondary_color, | |||
| @@ -64,17 +65,17 @@ duo(primary_color = "#1F4257", secondary_color = "#F97B64", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{secondary_color}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -90,13 +91,13 @@ duo(primary_color = "#1F4257", secondary_color = "#F97B64", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -12,11 +12,11 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493", | |||
| secondary_color), | |||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, | |||
| secondary_color), text_slide_number_color = primary_color, | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, | |||
| primary_color, secondary_color), code_inline_background_color = NA, | |||
| primary_color, secondary_color), code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||
| @@ -26,8 +26,9 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493", | |||
| title_slide_text_color = choose_dark_or_light(primary_color, | |||
| black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| @@ -74,17 +75,17 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -100,13 +101,13 @@ duo_accent(primary_color = "#006747", secondary_color = "#CFC493", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -12,11 +12,11 @@ duo_accent_inverse(primary_color = "#006747", | |||
| primary_color), text_bold_color = choose_dark_or_light(secondary_color, | |||
| secondary_color, primary_color), | |||
| text_slide_number_color = primary_color, padding = "1em 4em 1em 4em", | |||
| background_image = NA, background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = choose_dark_or_light(secondary_color, | |||
| secondary_color, primary_color), code_inline_background_color = NA, | |||
| secondary_color, primary_color), code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", | |||
| inverse_background_color = secondary_color, | |||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||
| @@ -26,8 +26,9 @@ duo_accent_inverse(primary_color = "#006747", | |||
| title_slide_text_color = choose_dark_or_light(primary_color, | |||
| black_color, white_color), | |||
| title_slide_background_color = primary_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(primary_color, 0.6), | |||
| left_column_selected_color = primary_color, | |||
| @@ -75,17 +76,17 @@ duo_accent_inverse(primary_color = "#006747", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -101,13 +102,13 @@ duo_accent_inverse(primary_color = "#006747", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -9,17 +9,18 @@ mono_accent(base_color = "#43418A", white_color = "#FFFFFF", | |||
| header_color = base_color, background_color = white_color, | |||
| link_color = base_color, text_bold_color = base_color, | |||
| text_slide_number_color = base_color, padding = "1em 4em 1em 4em", | |||
| background_image = NA, background_size = NA, | |||
| background_position = NA, | |||
| background_image = NULL, background_size = NULL, | |||
| background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, code_inline_background_color = NA, | |||
| code_inline_color = base_color, code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", inverse_background_color = base_color, | |||
| inverse_text_color = white_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = white_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| left_column_selected_color = base_color, | |||
| @@ -64,17 +65,17 @@ mono_accent(base_color = "#43418A", white_color = "#FFFFFF", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{base_color}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -90,13 +91,13 @@ mono_accent(base_color = "#43418A", white_color = "#FFFFFF", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -9,17 +9,18 @@ mono_accent_inverse(base_color = "#3C989E", white_color = "#FFFFFF", | |||
| text_color = white_color, header_color = base_color, | |||
| background_color = black_color, link_color = base_color, | |||
| text_bold_color = base_color, text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, code_inline_background_color = NA, | |||
| code_inline_color = base_color, code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", inverse_background_color = base_color, | |||
| inverse_text_color = black_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = black_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| left_column_selected_color = base_color, | |||
| @@ -64,17 +65,17 @@ mono_accent_inverse(base_color = "#3C989E", white_color = "#FFFFFF", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{base_color}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -90,13 +91,13 @@ mono_accent_inverse(base_color = "#3C989E", white_color = "#FFFFFF", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -10,17 +10,18 @@ mono_dark(base_color = "#cbf7ed", | |||
| text_color = white_color, header_color = base_color, | |||
| background_color = black_color, link_color = base_color, | |||
| text_bold_color = base_color, text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, code_inline_background_color = NA, | |||
| code_inline_color = base_color, code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", inverse_background_color = base_color, | |||
| inverse_text_color = black_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = black_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| left_column_selected_color = base_color, | |||
| @@ -65,17 +66,17 @@ mono_dark(base_color = "#cbf7ed", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{base_color}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -91,13 +92,13 @@ mono_dark(base_color = "#cbf7ed", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -10,17 +10,18 @@ mono_light(base_color = "#23395b", | |||
| text_color = black_color, header_color = base_color, | |||
| background_color = white_color, link_color = base_color, | |||
| text_bold_color = base_color, text_slide_number_color = base_color, | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = base_color, code_inline_background_color = NA, | |||
| code_inline_color = base_color, code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", inverse_background_color = base_color, | |||
| inverse_text_color = white_color, inverse_text_shadow = FALSE, | |||
| inverse_header_color = white_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = apply_alpha(base_color, 0.6), | |||
| left_column_selected_color = base_color, | |||
| @@ -65,17 +66,17 @@ mono_light(base_color = "#23395b", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to \code{base_color}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -91,13 +92,13 @@ mono_light(base_color = "#23395b", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -7,17 +7,18 @@ | |||
| solarized_dark(text_color = "#839496", header_color = "#dc322f", | |||
| background_color = "#002b36", link_color = "#b58900", | |||
| text_bold_color = "#d33682", text_slide_number_color = "#586e75", | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "#268bd240", code_inline_color = "#6c71c4", | |||
| code_inline_background_color = NA, code_inline_font_size = "1em", | |||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||
| inverse_background_color = "#fdf6e3", inverse_text_color = "#002b36", | |||
| inverse_text_shadow = FALSE, | |||
| inverse_header_color = inverse_text_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#586e75", | |||
| left_column_selected_color = "#93a1a1", | |||
| @@ -56,17 +57,17 @@ solarized_dark(text_color = "#839496", header_color = "#dc322f", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to #268bd240. Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to #6c71c4. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -82,13 +83,13 @@ solarized_dark(text_color = "#839496", header_color = "#dc322f", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -7,17 +7,18 @@ | |||
| solarized_light(text_color = "#657b83", header_color = "#dc322f", | |||
| background_color = "#fdf6e3", link_color = "#b58900", | |||
| text_bold_color = "#d33682", text_slide_number_color = "#93a1a1", | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "#268bd240", code_inline_color = "#6c71c4", | |||
| code_inline_background_color = NA, code_inline_font_size = "1em", | |||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||
| inverse_background_color = "#002b36", inverse_text_color = "#fdf6e3", | |||
| inverse_text_shadow = FALSE, | |||
| inverse_header_color = inverse_text_color, | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#93a1a1", | |||
| left_column_selected_color = "#586e75", | |||
| @@ -56,17 +57,17 @@ solarized_light(text_color = "#657b83", header_color = "#dc322f", | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to #268bd240. Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to #6c71c4. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -82,13 +83,13 @@ solarized_light(text_color = "#657b83", header_color = "#dc322f", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||
| @@ -6,19 +6,20 @@ | |||
| \usage{ | |||
| write_xaringan_theme(text_color = "#000", header_color = "#000", | |||
| background_color = "#FFF", link_color = "rgb(249, 38, 114)", | |||
| text_bold_color = NA, | |||
| text_bold_color = NULL, | |||
| text_slide_number_color = inverse_background_color, | |||
| padding = "1em 4em 1em 4em", background_image = NA, | |||
| background_size = NA, background_position = NA, | |||
| padding = "1em 4em 1em 4em", background_image = NULL, | |||
| background_size = NULL, background_position = NULL, | |||
| code_highlight_color = "rgba(255,255,0,0.5)", | |||
| code_inline_color = "#000", code_inline_background_color = NA, | |||
| code_inline_color = "#000", code_inline_background_color = NULL, | |||
| code_inline_font_size = "1em", inverse_background_color = "#272822", | |||
| inverse_text_color = "#d6d6d6", inverse_text_shadow = FALSE, | |||
| inverse_header_color = "#f3f3f3", | |||
| title_slide_text_color = inverse_text_color, | |||
| title_slide_background_color = inverse_background_color, | |||
| title_slide_background_image = NA, title_slide_background_size = NA, | |||
| title_slide_background_position = NA, footnote_color = NA, | |||
| title_slide_background_image = NULL, | |||
| title_slide_background_size = NULL, | |||
| title_slide_background_position = NULL, footnote_color = NULL, | |||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||
| left_column_subtle_color = "#777", | |||
| left_column_selected_color = "#000", | |||
| @@ -51,23 +52,23 @@ write_xaringan_theme(text_color = "#000", header_color = "#000", | |||
| \item{link_color}{Link Color. Defaults to rgb(249, 38, 114). Modifies the \code{a, a > code} elements.} | |||
| \item{text_bold_color}{Bold Text Color. Defaults to NA. Modifies the \code{strong} element.} | |||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{NULL}. Modifies the \code{strong} element.} | |||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{inverse_background_color}. Modifies the \code{.remark-slide-number} class.} | |||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1em 4em 1em 4em. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_image}{Background image applied to each \emph{and every} slide. Set \code{title_slide_background_image = "none"} to remove the background image from the title slide.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_size}{Background image size, requires \code{background_image} to be set. If \code{background_image} is set, \code{background_size} will default to \code{cover} so the backround fills the screen. If both \code{background_image} and \code{background_position} are set, will default to 100 percent.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to NA. Modifies the \code{.remark-slide-content} class.} | |||
| \item{background_position}{Background image position, requires \code{background_image} to be set, and it is recommended to adjust \code{background_size}.. Defaults to \code{NULL}. Modifies the \code{.remark-slide-content} class.} | |||
| \item{code_highlight_color}{Code Line Highlight. Defaults to rgba(255,255,0,0.5). Modifies the \code{.remark-code-line-highlighted} class.} | |||
| \item{code_inline_color}{Inline Code Color. Defaults to #000. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to NA. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_background_color}{Inline Code Background Color. Defaults to \code{NULL}. Modifies the \code{.remark-inline-code} class.} | |||
| \item{code_inline_font_size}{Inline Code Text Font Size. Defaults to 1em. Modifies the \code{.remark-inline-code} class.} | |||
| @@ -83,13 +84,13 @@ write_xaringan_theme(text_color = "#000", header_color = "#000", | |||
| \item{title_slide_background_color}{Title Slide Background Color. Defaults to \code{inverse_background_color}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_image}{Title Slide Background Image URL. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_size}{Title Slide Background Image Size, defaults to "cover" if background image is set. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to NA. Modifies the \code{.title-slide} class.} | |||
| \item{title_slide_background_position}{Title Slide Background Image Position. Defaults to \code{NULL}. Modifies the \code{.title-slide} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to NA. Modifies the \code{.footnote} class.} | |||
| \item{footnote_color}{Footnote text color (if \code{NA}, then it will be the same color as \code{text_color}). Defaults to \code{NULL}. Modifies the \code{.footnote} class.} | |||
| \item{footnote_font_size}{Footnote font size. Defaults to 0.9em. Modifies the \code{.footnote} class.} | |||