| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_duo | #' @template style_duo | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_duo_accent | #' @template style_duo_accent | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_duo_accent_inverse | #' @template style_duo_accent_inverse | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_mono_accent | #' @template style_mono_accent | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_mono_accent_inverse | #' @template style_mono_accent_inverse | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_mono_dark | #' @template style_mono_dark | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_mono_light | #' @template style_mono_light | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_solarized_dark | #' @template style_solarized_dark | ||||
| #' @family Solarized themes | #' @family Solarized themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_solarized_light | #' @template style_solarized_light | ||||
| #' @family Solarized themes | #' @family Solarized themes | ||||
| #' @export | #' @export |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9rem. Modifies the `.remark-inline` class. | ||||
| #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | #' @param code_font_url Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700&display=swap. Modifies the `@import url` elements. | ||||
| #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | #' @param code_font_family_fallback Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the `.remark-code, .remark-inline-code` classes. | ||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @template extra_css | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes | |||||
| #' @template theme_params | |||||
| #' @template style_xaringan | #' @template style_xaringan | ||||
| #' @export | #' @export | ||||
| style_xaringan <- function( | style_xaringan <- function( |
| "{element_description(element)}" | "{element_description(element)}" | ||||
| ) | ) | ||||
| ), | ), | ||||
| "#' @param colors A named vector of custom colors. The names of the colors", | |||||
| "#' become CSS variables and classes that can be used within your slides.", | |||||
| "#' For example, `colors = c(blue = \"#bad4ed\")` adds a CSS variable", | |||||
| "#' `--blue`, a `.blue` CSS class that applies the color to the text or", | |||||
| "#' foreground color, and a `.bg-blue` CSS class that applies the color", | |||||
| "#' to the background.", | |||||
| "#' @template extra_css", | |||||
| "#' @param outfile Customized xaringan CSS output file name, default is \"xaringan-themer.css\"", | |||||
| "#' @family themes", | |||||
| "#' @template theme_params", | |||||
| ..., | ..., | ||||
| glue::glue("{f_name} <- function("), | glue::glue("{f_name} <- function("), | ||||
| as.character( | as.character( |
| #' @param extra_css A named list of CSS definitions each containing a named list | |||||
| #' of CSS property-value pairs, i.e. | |||||
| #' \code{list(".class-id" = list("css-property" = "value"))} | |||||
| #' @param extra_fonts A list of additional fonts to import, each list element | |||||
| #' can be either a URL as a character string or a call to | |||||
| #' \code{\link{google_font}()} |
| #' @param extra_css A named list of CSS definitions each containing a named list | |||||
| #' of CSS property-value pairs, i.e. | |||||
| #' \code{list(".class-id" = list("css-property" = "value"))} | |||||
| #' @param extra_fonts A list of additional fonts to import, each list element | |||||
| #' can be either a URL as a character string or a call to | |||||
| #' \code{\link{google_font}()} | |||||
| #' @param colors A named vector of custom colors. The names of the colors | |||||
| #' become CSS variables and classes that can be used within your slides. | |||||
| #' For example, `colors = c(blue = "#bad4ed")` adds a CSS variable | |||||
| #' `--blue`, a `.blue` CSS class that applies the color to the text or | |||||
| #' foreground color, and a `.bg-blue` CSS class that applies the color | |||||
| #' to the background. | |||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | |||||
| #' @family themes |