Inspired by tachyons, easily add additional colors to slides using the `colors` argument. The argument takes a named list or vector and adds a CSS variable with the color name. Also added are .<color> and .bg-<name> classes.tags/v0.3.0
| Encoding: UTF-8 | Encoding: UTF-8 | ||||
| LazyData: true | LazyData: true | ||||
| Roxygen: list(markdown = TRUE) | Roxygen: list(markdown = TRUE) | ||||
| RoxygenNote: 6.1.1 | |||||
| RoxygenNote: 7.0.2 |
| prepare_colors <- function(colors = NULL) { | |||||
| if (is.null(colors) || length(colors) < 1) return(NULL) | |||||
| if (is.null(names(colors))) { | |||||
| stop( | |||||
| "`colors` must have names corresponding to valid CSS classes", | |||||
| call. = FALSE | |||||
| ) | |||||
| } | |||||
| if (any(grepl("\\s", names(colors)))) { | |||||
| stop( | |||||
| "Color names in `colors` must be valid CSS classes", | |||||
| " and cannot contain spaces", | |||||
| call. = FALSE) | |||||
| } | |||||
| if (any(grepl("[^[:alpha:]_-]", names(colors)))) { | |||||
| stop("Color names in `colors` must be valid CSS classes", call. = FALSE) | |||||
| } | |||||
| whisker::iteratelist(colors, "color_name") | |||||
| } |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" |
| #' @param code_font_size Code Text Font Size. Defaults to 0.9em. Modifies the `.remark-inline` class. | #' @param code_font_size Code Text Font Size. Defaults to 0.9em. 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. 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. 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 | #' @template extra_css | ||||
| #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | #' @param outfile Customized xaringan CSS output file name, default is "xaringan-themer.css" | ||||
| #' @family themes | #' @family themes | ||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| colors = NULL, | |||||
| extra_css = NULL, | extra_css = NULL, | ||||
| extra_fonts = NULL, | extra_fonts = NULL, | ||||
| outfile = "xaringan-themer.css" | outfile = "xaringan-themer.css" | ||||
| ) { | ) { | ||||
| # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R | |||||
| # Make sure font names are wrapped in quotes if they have spaces | # Make sure font names are wrapped in quotes if they have spaces | ||||
| f_args <- names(formals(sys.function())) | f_args <- names(formals(sys.function())) | ||||
| for (var in f_args[grepl("font_family$", f_args)]) { | for (var in f_args[grepl("font_family$", f_args)]) { | ||||
| ignore = header_background_ignore_classes | ignore = header_background_ignore_classes | ||||
| ) | ) | ||||
| colors <- prepare_colors(colors) | |||||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | tf <- system.file("resources", "template.css", package = "xaringanthemer") | ||||
| template <- readLines(tf, warn = FALSE) | template <- readLines(tf, warn = FALSE) | ||||
| template <- paste(template, collapse = "\n") | template <- paste(template, collapse = "\n") |
| --inverse-background-color: {{inverse_background_color}}; | --inverse-background-color: {{inverse_background_color}}; | ||||
| --inverse-header-color: {{inverse_header_color}}; | --inverse-header-color: {{inverse_header_color}}; | ||||
| --title-slide-background-color: {{title_slide_background_color}}; | --title-slide-background-color: {{title_slide_background_color}}; | ||||
| --title-slide-text-color: {{title_slide_text_color}}; | |||||
| --title-slide-text-color: {{title_slide_text_color}};{{#colors}} | |||||
| --{{color_name}}: {{value}}; | |||||
| {{/colors}} | |||||
| } | } | ||||
| html { | html { | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| {{#colors}} | |||||
| .{{color_name}} { | |||||
| color: var(--{{color_name}}); | |||||
| } | |||||
| .bg-{{color_name}} { | |||||
| background-color: var(--{{color_name}}); | |||||
| } | |||||
| {{/colors}} |
| template = template_variables, | template = template_variables, | ||||
| ..., | ..., | ||||
| file = "", | file = "", | ||||
| body = c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| " eval(parse(text = call_style_xaringan()))" | |||||
| ) | |||||
| body = " eval(parse(text = call_style_xaringan()))" | |||||
| ) { | ) { | ||||
| if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- "" | if (file == "clip" && !requireNamespace("clipr", quietly = TRUE)) file <- "" | ||||
| body <- c( | |||||
| " # DO NOT EDIT - Generated from inst/scripts/generate_theme_functions.R", | |||||
| body | |||||
| ) | |||||
| tv <- template | tv <- template | ||||
| null_default <- purrr::map_lgl(tv$default, is.null) | null_default <- purrr::map_lgl(tv$default, is.null) | ||||
| tv[null_default, "default"] <- "{NULL}" | tv[null_default, "default"] <- "{NULL}" | ||||
| "{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", | "#' @template extra_css", | ||||
| "#' @param outfile Customized xaringan CSS output file name, default is \"xaringan-themer.css\"", | "#' @param outfile Customized xaringan CSS output file name, default is \"xaringan-themer.css\"", | ||||
| "#' @family themes", | "#' @family themes", | ||||
| " {variable} = {ifelse(!grepl('^[{].+[}]$', default), paste0('\"', default, '\"'), gsub('[{}]', '', default))}," | " {variable} = {ifelse(!grepl('^[{].+[}]$', default), paste0('\"', default, '\"'), gsub('[{}]', '', default))}," | ||||
| ) | ) | ||||
| ), | ), | ||||
| " colors = NULL,", | |||||
| " extra_css = NULL,", | " extra_css = NULL,", | ||||
| " extra_fonts = NULL,", | " extra_fonts = NULL,", | ||||
| " outfile = \"xaringan-themer.css\"", | " outfile = \"xaringan-themer.css\"", |
| ignore = header_background_ignore_classes | ignore = header_background_ignore_classes | ||||
| ) | ) | ||||
| colors <- prepare_colors(colors) | |||||
| tf <- system.file("resources", "template.css", package = "xaringanthemer") | tf <- system.file("resources", "template.css", package = "xaringanthemer") | ||||
| template <- readLines(tf, warn = FALSE) | template <- readLines(tf, warn = FALSE) | ||||
| template <- paste(template, collapse = "\n") | template <- paste(template, collapse = "\n") |
| } | } | ||||
| \description{ | \description{ | ||||
| Applies alpha (or opacity) to a color in hexadecimal form by | Applies alpha (or opacity) to a color in hexadecimal form by | ||||
| converting opacity in the \code{[0, 1]} range to hex in the \code{[0, 255]} range | |||||
| converting opacity in the \verb{[0, 1]} range to hex in the \verb{[0, 255]} range | |||||
| and appending to the hex color. | and appending to the hex color. | ||||
| } | } |
| \alias{google_language_codes} | \alias{google_language_codes} | ||||
| \title{List Valid Google Language Codes} | \title{List Valid Google Language Codes} | ||||
| \usage{ | \usage{ | ||||
| google_language_codes(language_codes = c("latin", "latin-ext", "sinhala", | |||||
| "greek", "hebrew", "vietnamese", "cyrillic", "cyrillic-ext", | |||||
| "devanagari", "arabic", "khmer", "tamil", "greek-ext", "thai", "bengali", | |||||
| "gujarati", "oriya", "malayalam", "gurmukhi", "kannada", "telugu", | |||||
| "myanmar")) | |||||
| google_language_codes( | |||||
| language_codes = c("latin", "latin-ext", "sinhala", "greek", "hebrew", "vietnamese", | |||||
| "cyrillic", "cyrillic-ext", "devanagari", "arabic", "khmer", "tamil", "greek-ext", | |||||
| "thai", "bengali", "gujarati", "oriya", "malayalam", "gurmukhi", "kannada", "telugu", | |||||
| "myanmar") | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{language_codes}{Vector of potential Google language codes} | \item{language_codes}{Vector of potential Google language codes} |
| \alias{scale_xaringan_colour_continuous} | \alias{scale_xaringan_colour_continuous} | ||||
| \title{Xaringan Themer ggplot2 Scales} | \title{Xaringan Themer ggplot2 Scales} | ||||
| \usage{ | \usage{ | ||||
| scale_xaringan_discrete(aes_type = c("color", "colour", "fill"), ..., | |||||
| color = NULL, direction = 1, inverse = FALSE) | |||||
| scale_xaringan_discrete( | |||||
| aes_type = c("color", "colour", "fill"), | |||||
| ..., | |||||
| color = NULL, | |||||
| direction = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_fill_discrete(..., color = NULL, direction = 1, | |||||
| inverse = FALSE) | |||||
| scale_xaringan_fill_discrete(..., color = NULL, direction = 1, inverse = FALSE) | |||||
| scale_xaringan_color_discrete(..., color = NULL, direction = 1, | |||||
| inverse = FALSE) | |||||
| scale_xaringan_color_discrete( | |||||
| ..., | |||||
| color = NULL, | |||||
| direction = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_colour_discrete(..., color = NULL, direction = 1, | |||||
| inverse = FALSE) | |||||
| scale_xaringan_colour_discrete( | |||||
| ..., | |||||
| color = NULL, | |||||
| direction = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_continuous(aes_type = c("color", "colour", "fill"), ..., | |||||
| color = NULL, begin = 0, end = 1, inverse = FALSE) | |||||
| scale_xaringan_continuous( | |||||
| aes_type = c("color", "colour", "fill"), | |||||
| ..., | |||||
| color = NULL, | |||||
| begin = 0, | |||||
| end = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_fill_continuous(..., color = NULL, begin = 0, end = 1, | |||||
| inverse = FALSE) | |||||
| scale_xaringan_fill_continuous( | |||||
| ..., | |||||
| color = NULL, | |||||
| begin = 0, | |||||
| end = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_color_continuous(..., color = NULL, begin = 0, | |||||
| end = 1, inverse = FALSE) | |||||
| scale_xaringan_color_continuous( | |||||
| ..., | |||||
| color = NULL, | |||||
| begin = 0, | |||||
| end = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| scale_xaringan_colour_continuous(..., color = NULL, begin = 0, | |||||
| end = 1, inverse = FALSE) | |||||
| scale_xaringan_colour_continuous( | |||||
| ..., | |||||
| color = NULL, | |||||
| begin = 0, | |||||
| end = 1, | |||||
| inverse = FALSE | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{aes_type}{The type of aesthetic to which the scale is being applied. | \item{aes_type}{The type of aesthetic to which the scale is being applied. |
| \alias{style_duo} | \alias{style_duo} | ||||
| \title{Duotone Theme} | \title{Duotone Theme} | ||||
| \usage{ | \usage{ | ||||
| style_duo(primary_color = "#1F4257", secondary_color = "#F97B64", | |||||
| text_color = choose_dark_or_light(primary_color, | |||||
| darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99)), | |||||
| header_color = secondary_color, background_color = primary_color, | |||||
| link_color = secondary_color, text_bold_color = secondary_color, | |||||
| style_duo( | |||||
| primary_color = "#1F4257", | |||||
| secondary_color = "#F97B64", | |||||
| text_color = choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), | |||||
| lighten_color(secondary_color, 0.99)), | |||||
| header_color = secondary_color, | |||||
| background_color = primary_color, | |||||
| link_color = secondary_color, | |||||
| text_bold_color = secondary_color, | |||||
| text_slide_number_color = text_color, | text_slide_number_color = text_color, | ||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| code_inline_color = secondary_color, | code_inline_color = secondary_color, | ||||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||||
| code_inline_background_color = NULL, | |||||
| code_inline_font_size = "1em", | |||||
| inverse_background_color = secondary_color, | inverse_background_color = secondary_color, | ||||
| inverse_text_color = primary_color, inverse_text_shadow = FALSE, | |||||
| inverse_text_color = primary_color, | |||||
| inverse_text_shadow = FALSE, | |||||
| inverse_header_color = primary_color, | inverse_header_color = primary_color, | ||||
| title_slide_text_color = secondary_color, | title_slide_text_color = secondary_color, | ||||
| title_slide_background_color = primary_color, | title_slide_background_color = primary_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(secondary_color, 0.6), | ||||
| left_column_selected_color = secondary_color, | left_column_selected_color = secondary_color, | ||||
| blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(primary_color, 0.3), | table_row_even_background_color = lighten_color(primary_color, 0.3), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{primary_color}{Duotone Primary Color. Defaults to #1F4257. Modifies multiple CSS classes or elements.} | \item{primary_color}{Duotone Primary Color. Defaults to #1F4257. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{choose_dark_or_light(primary_color, darken_color(primary_color, 0.9), lighten_color(secondary_color, 0.99))}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{secondary_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{secondary_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{secondary_color}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{secondary_color}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{secondary_color}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{secondary_color}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{text_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{text_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{primary_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{primary_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{secondary_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{secondary_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(secondary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(secondary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{secondary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{secondary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(primary_color, 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(primary_color, 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| colors. | colors. | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Duotone themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Duotone themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()} | |||||
| } | } | ||||
| \concept{Duotone themes} | \concept{Duotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_duo_accent} | \alias{style_duo_accent} | ||||
| \title{Duotone Accent Theme} | \title{Duotone Accent Theme} | ||||
| \usage{ | \usage{ | ||||
| style_duo_accent(primary_color = "#006747", | |||||
| secondary_color = "#CFC493", white_color = "#FFFFFF", | |||||
| black_color = "#000000", text_color = black_color, | |||||
| header_color = primary_color, background_color = white_color, | |||||
| link_color = choose_dark_or_light(secondary_color, primary_color, | |||||
| secondary_color), | |||||
| style_duo_accent( | |||||
| primary_color = "#006747", | |||||
| secondary_color = "#CFC493", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = "#000000", | |||||
| text_color = black_color, | |||||
| header_color = primary_color, | |||||
| background_color = white_color, | |||||
| link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, | text_bold_color = choose_dark_or_light(secondary_color, primary_color, | ||||
| secondary_color), text_slide_number_color = primary_color, | |||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| secondary_color), | |||||
| text_slide_number_color = primary_color, | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | 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 = NULL, | |||||
| code_inline_color = choose_dark_or_light(secondary_color, primary_color, | |||||
| secondary_color), | |||||
| code_inline_background_color = NULL, | |||||
| code_inline_font_size = "1em", | code_inline_font_size = "1em", | ||||
| inverse_background_color = secondary_color, | inverse_background_color = secondary_color, | ||||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||||
| white_color), inverse_text_shadow = FALSE, | |||||
| 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), | |||||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||||
| inverse_text_shadow = FALSE, | |||||
| 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_color = primary_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(primary_color, 0.6), | ||||
| left_column_selected_color = primary_color, | left_column_selected_color = primary_color, | ||||
| blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(secondary_color, 0.3), | table_row_even_background_color = lighten_color(secondary_color, 0.3), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.} | \item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, primary_color, secondary_color)}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(secondary_color, 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(secondary_color, 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| accents on select elements (headers, bold text, etc.). | accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Duotone themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Duotone themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo}()} | |||||
| } | } | ||||
| \concept{Duotone themes} | \concept{Duotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_duo_accent_inverse} | \alias{style_duo_accent_inverse} | ||||
| \title{Duotone Accent Inverse Theme} | \title{Duotone Accent Inverse Theme} | ||||
| \usage{ | \usage{ | ||||
| style_duo_accent_inverse(primary_color = "#006747", | |||||
| secondary_color = "#CFC493", white_color = "#FFFFFF", | |||||
| black_color = "#000000", text_color = white_color, | |||||
| header_color = primary_color, background_color = black_color, | |||||
| link_color = choose_dark_or_light(secondary_color, secondary_color, | |||||
| primary_color), text_bold_color = choose_dark_or_light(secondary_color, | |||||
| secondary_color, primary_color), | |||||
| style_duo_accent_inverse( | |||||
| primary_color = "#006747", | |||||
| secondary_color = "#CFC493", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = "#000000", | |||||
| text_color = white_color, | |||||
| header_color = primary_color, | |||||
| background_color = black_color, | |||||
| link_color = choose_dark_or_light(secondary_color, secondary_color, primary_color), | |||||
| text_bold_color = choose_dark_or_light(secondary_color, secondary_color, | |||||
| primary_color), | |||||
| text_slide_number_color = primary_color, | text_slide_number_color = primary_color, | ||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | 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 = NULL, | |||||
| code_inline_color = choose_dark_or_light(secondary_color, secondary_color, | |||||
| primary_color), | |||||
| code_inline_background_color = NULL, | |||||
| code_inline_font_size = "1em", | code_inline_font_size = "1em", | ||||
| inverse_background_color = secondary_color, | inverse_background_color = secondary_color, | ||||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, | |||||
| white_color), inverse_text_shadow = FALSE, | |||||
| 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), | |||||
| inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||||
| inverse_text_shadow = FALSE, | |||||
| 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_color = primary_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(primary_color, 0.6), | ||||
| left_column_selected_color = primary_color, | left_column_selected_color = primary_color, | ||||
| blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | blockquote_left_border_color = apply_alpha(secondary_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(choose_dark_or_light(primary_color, | table_row_even_background_color = darken_color(choose_dark_or_light(primary_color, | ||||
| secondary_color, primary_color), 0.3), text_font_size = "20px", | |||||
| header_h1_font_size = "55px", header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", header_background_auto = FALSE, | |||||
| secondary_color, primary_color), 0.3), | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | |||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.} | \item{primary_color}{Duotone Primary Color. Defaults to #006747. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{primary_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{choose_dark_or_light(secondary_color, secondary_color, primary_color)}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{primary_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{choose_dark_or_light(secondary_color, black_color, white_color)}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{choose_dark_or_light(primary_color, black_color, white_color)}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(primary_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{primary_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(secondary_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(choose_dark_or_light(primary_color, secondary_color, primary_color), 0.3)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| for color accents on select elements (headers, bold text, etc.). | for color accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent}}, | |||||
| \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Duotone themes: \code{\link{style_duo_accent}}, | |||||
| \code{\link{style_duo}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Duotone themes: | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()} | |||||
| } | } | ||||
| \concept{Duotone themes} | \concept{Duotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_mono_accent} | \alias{style_mono_accent} | ||||
| \title{Monotone Accent Theme} | \title{Monotone Accent Theme} | ||||
| \usage{ | \usage{ | ||||
| style_mono_accent(base_color = "#43418A", white_color = "#FFFFFF", | |||||
| black_color = "#272822", text_color = black_color, | |||||
| header_color = base_color, background_color = white_color, | |||||
| link_color = base_color, text_bold_color = base_color, | |||||
| style_mono_accent( | |||||
| base_color = "#43418A", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = "#272822", | |||||
| 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, | text_slide_number_color = base_color, | ||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| 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, | |||||
| 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, | inverse_header_color = white_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(base_color, 0.6), | ||||
| left_column_selected_color = base_color, | left_column_selected_color = base_color, | ||||
| blockquote_left_border_color = apply_alpha(base_color, 0.5), | blockquote_left_border_color = apply_alpha(base_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.7), | table_row_even_background_color = lighten_color(base_color, 0.7), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{base_color}{Monotone Base Color, works best with a strong color. Defaults to #43418A. Modifies multiple CSS classes or elements.} | \item{base_color}{Monotone Base Color, works best with a strong color. Defaults to #43418A. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| accents on select elements (headers, bold text, etc.). | accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Monotone themes: \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Monotone themes: | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()} | |||||
| } | } | ||||
| \concept{Monotone themes} | \concept{Monotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_mono_accent_inverse} | \alias{style_mono_accent_inverse} | ||||
| \title{Monotone Accent Inverse Theme} | \title{Monotone Accent Inverse Theme} | ||||
| \usage{ | \usage{ | ||||
| style_mono_accent_inverse(base_color = "#3C989E", | |||||
| white_color = "#FFFFFF", black_color = darken_color(base_color, 0.9), | |||||
| 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 = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| style_mono_accent_inverse( | |||||
| base_color = "#3C989E", | |||||
| white_color = "#FFFFFF", | |||||
| black_color = darken_color(base_color, 0.9), | |||||
| 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 = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| 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, | |||||
| 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, | inverse_header_color = black_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(base_color, 0.6), | ||||
| left_column_selected_color = base_color, | left_column_selected_color = base_color, | ||||
| blockquote_left_border_color = apply_alpha(base_color, 0.5), | blockquote_left_border_color = apply_alpha(base_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | table_row_even_background_color = darken_color(base_color, 0.7), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{base_color}{Monotone Base Color, works best with a light color. Defaults to #3C989E. Modifies multiple CSS classes or elements.} | \item{base_color}{Monotone Base Color, works best with a light color. Defaults to #3C989E. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| for color accents on select elements (headers, bold text, etc.). | for color accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Monotone themes: \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Monotone themes: | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()} | |||||
| } | } | ||||
| \concept{Monotone themes} | \concept{Monotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_mono_dark} | \alias{style_mono_dark} | ||||
| \title{Monotone Dark Theme} | \title{Monotone Dark Theme} | ||||
| \usage{ | \usage{ | ||||
| style_mono_dark(base_color = "#cbf7ed", | |||||
| style_mono_dark( | |||||
| base_color = "#cbf7ed", | |||||
| white_color = lighten_color(base_color, 0.8), | white_color = lighten_color(base_color, 0.8), | ||||
| black_color = darken_color(base_color, 0.85), | black_color = darken_color(base_color, 0.85), | ||||
| 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 = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| 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 = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| 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, | |||||
| 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, | inverse_header_color = black_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(base_color, 0.6), | ||||
| left_column_selected_color = base_color, | left_column_selected_color = base_color, | ||||
| blockquote_left_border_color = apply_alpha(base_color, 0.5), | blockquote_left_border_color = apply_alpha(base_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = darken_color(base_color, 0.7), | table_row_even_background_color = darken_color(base_color, 0.7), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{base_color}{Monotone Base Color, works best with a light color.. Defaults to #cbf7ed. Modifies multiple CSS classes or elements.} | \item{base_color}{Monotone Base Color, works best with a light color.. Defaults to #cbf7ed. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{white_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{black_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{black_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{darken_color(base_color, 0.7)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| A dark monotone theme based around a single color. | A dark monotone theme based around a single color. | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Monotone themes: \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_light}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Monotone themes: | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_light}()} | |||||
| } | } | ||||
| \concept{Monotone themes} | \concept{Monotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_mono_light} | \alias{style_mono_light} | ||||
| \title{Monotone Light Theme} | \title{Monotone Light Theme} | ||||
| \usage{ | \usage{ | ||||
| style_mono_light(base_color = "#23395b", | |||||
| style_mono_light( | |||||
| base_color = "#23395b", | |||||
| white_color = lighten_color(base_color, 0.9), | white_color = lighten_color(base_color, 0.9), | ||||
| black_color = darken_color(base_color, 0.3), | black_color = darken_color(base_color, 0.3), | ||||
| 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 = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| 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 = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| 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, | |||||
| 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, | inverse_header_color = white_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| 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_subtle_color = apply_alpha(base_color, 0.6), | ||||
| left_column_selected_color = base_color, | left_column_selected_color = base_color, | ||||
| blockquote_left_border_color = apply_alpha(base_color, 0.5), | blockquote_left_border_color = apply_alpha(base_color, 0.5), | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = lighten_color(base_color, 0.8), | table_row_even_background_color = lighten_color(base_color, 0.8), | ||||
| text_font_size = "20px", header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", header_h3_font_size = "35px", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | header_background_auto = FALSE, | ||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{base_color}{Monotone base color, works best with a strong color. Defaults to #23395b. Modifies multiple CSS classes or elements.} | \item{base_color}{Monotone base color, works best with a strong color. Defaults to #23395b. Modifies multiple CSS classes or elements.} | ||||
| \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to \code{black_color}. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to \code{base_color}. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to \code{white_color}. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to \code{base_color}. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to \code{base_color}. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to \code{base_color}. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{white_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to \code{apply_alpha(base_color, 0.6)}. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to \code{base_color}. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to \code{apply_alpha(base_color, 0.5)}. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.8)}. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to \code{lighten_color(base_color, 0.8)}. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| A light monotone theme based around a single color. | A light monotone theme based around a single color. | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Monotone themes: \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Monotone themes: | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()} | |||||
| } | } | ||||
| \concept{Monotone themes} | \concept{Monotone themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_solarized_dark} | \alias{style_solarized_dark} | ||||
| \title{Solarized Dark Theme} | \title{Solarized Dark Theme} | ||||
| \usage{ | \usage{ | ||||
| style_solarized_dark(text_color = "#839496", header_color = "#dc322f", | |||||
| background_color = "#002b36", link_color = "#b58900", | |||||
| text_bold_color = "#d33682", text_slide_number_color = "#586e75", | |||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| code_highlight_color = "#268bd240", code_inline_color = "#6c71c4", | |||||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||||
| inverse_background_color = "#fdf6e3", inverse_text_color = "#002b36", | |||||
| style_solarized_dark( | |||||
| text_color = "#839496", | |||||
| header_color = "#dc322f", | |||||
| background_color = "#002b36", | |||||
| link_color = "#b58900", | |||||
| text_bold_color = "#d33682", | |||||
| text_slide_number_color = "#586e75", | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "#268bd240", | |||||
| code_inline_color = "#6c71c4", | |||||
| code_inline_background_color = NULL, | |||||
| code_inline_font_size = "1em", | |||||
| inverse_background_color = "#fdf6e3", | |||||
| inverse_text_color = "#002b36", | |||||
| inverse_text_shadow = FALSE, | inverse_text_shadow = FALSE, | ||||
| inverse_header_color = inverse_text_color, | inverse_header_color = inverse_text_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| title_slide_background_position = NULL, | |||||
| footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", | |||||
| footnote_position_bottom = "3em", | |||||
| left_column_subtle_color = "#586e75", | left_column_subtle_color = "#586e75", | ||||
| left_column_selected_color = "#93a1a1", | left_column_selected_color = "#93a1a1", | ||||
| blockquote_left_border_color = "#cb4b16", | blockquote_left_border_color = "#cb4b16", | ||||
| table_border_color = "#657b83", table_row_border_color = "#657b83", | |||||
| table_row_even_background_color = "#073642", text_font_size = "20px", | |||||
| header_h1_font_size = "55px", header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", header_background_auto = FALSE, | |||||
| table_border_color = "#657b83", | |||||
| table_row_border_color = "#657b83", | |||||
| table_row_even_background_color = "#073642", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | |||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Text Color. Defaults to #839496. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to #839496. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to #dc322f. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to #dc322f. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to #002b36. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to #002b36. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to #b58900. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to #b58900. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to #586e75. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to #586e75. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #586e75. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #586e75. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #93a1a1. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #93a1a1. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #657b83. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #657b83. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #657b83. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #657b83. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #073642. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #073642. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| \url{http://ethanschoonover.com/solarized} | \url{http://ethanschoonover.com/solarized} | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_light}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Solarized themes: \code{\link{style_solarized_light}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_light}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Solarized themes: | |||||
| \code{\link{style_solarized_light}()} | |||||
| } | } | ||||
| \concept{Solarized themes} | \concept{Solarized themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_solarized_light} | \alias{style_solarized_light} | ||||
| \title{Solarized Light Theme} | \title{Solarized Light Theme} | ||||
| \usage{ | \usage{ | ||||
| style_solarized_light(text_color = "#657b83", header_color = "#dc322f", | |||||
| background_color = "#fdf6e3", link_color = "#b58900", | |||||
| text_bold_color = "#d33682", text_slide_number_color = "#93a1a1", | |||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| code_highlight_color = "#268bd240", code_inline_color = "#6c71c4", | |||||
| code_inline_background_color = NULL, code_inline_font_size = "1em", | |||||
| inverse_background_color = "#002b36", inverse_text_color = "#fdf6e3", | |||||
| style_solarized_light( | |||||
| text_color = "#657b83", | |||||
| header_color = "#dc322f", | |||||
| background_color = "#fdf6e3", | |||||
| link_color = "#b58900", | |||||
| text_bold_color = "#d33682", | |||||
| text_slide_number_color = "#93a1a1", | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "#268bd240", | |||||
| code_inline_color = "#6c71c4", | |||||
| code_inline_background_color = NULL, | |||||
| code_inline_font_size = "1em", | |||||
| inverse_background_color = "#002b36", | |||||
| inverse_text_color = "#fdf6e3", | |||||
| inverse_text_shadow = FALSE, | inverse_text_shadow = FALSE, | ||||
| inverse_header_color = inverse_text_color, | inverse_header_color = inverse_text_color, | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| title_slide_background_position = NULL, | |||||
| footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", | |||||
| footnote_position_bottom = "3em", | |||||
| left_column_subtle_color = "#93a1a1", | left_column_subtle_color = "#93a1a1", | ||||
| left_column_selected_color = "#586e75", | left_column_selected_color = "#586e75", | ||||
| blockquote_left_border_color = "#cb4b16", | blockquote_left_border_color = "#cb4b16", | ||||
| table_border_color = "#839496", table_row_border_color = "#839496", | |||||
| table_row_even_background_color = "#eee8d5", text_font_size = "20px", | |||||
| header_h1_font_size = "55px", header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", header_background_auto = FALSE, | |||||
| table_border_color = "#839496", | |||||
| table_row_border_color = "#839496", | |||||
| table_row_even_background_color = "#eee8d5", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | |||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Text Color. Defaults to #657b83. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to #657b83. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to #dc322f. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to #dc322f. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to #fdf6e3. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to #fdf6e3. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to #b58900. Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to #b58900. Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.} | \item{text_bold_color}{Bold Text Color. Defaults to #d33682. Modifies the \code{strong} element.} | ||||
| \item{text_slide_number_color}{Slide Number Color. Defaults to #93a1a1. Modifies the \code{.remark-slide-number} class.} | \item{text_slide_number_color}{Slide Number Color. Defaults to #93a1a1. Modifies the \code{.remark-slide-number} class.} | ||||
| \item{padding}{Slide Padding in \code{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to \code{inverse_text_color}. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #93a1a1. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #93a1a1. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #586e75. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #586e75. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to #cb4b16. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #839496. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #839496. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #839496. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #839496. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee8d5. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee8d5. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| \url{http://ethanschoonover.com/solarized} | \url{http://ethanschoonover.com/solarized} | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_xaringan}} | |||||
| Other Solarized themes: \code{\link{style_solarized_dark}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_xaringan}()} | |||||
| Other Solarized themes: | |||||
| \code{\link{style_solarized_dark}()} | |||||
| } | } | ||||
| \concept{Solarized themes} | \concept{Solarized themes} | ||||
| \concept{themes} | \concept{themes} |
| \alias{style_xaringan} | \alias{style_xaringan} | ||||
| \title{Write A Customized Xaringan Theme} | \title{Write A Customized Xaringan Theme} | ||||
| \usage{ | \usage{ | ||||
| style_xaringan(text_color = "#000", header_color = "#000", | |||||
| background_color = "#FFF", link_color = "rgb(249, 38, 114)", | |||||
| style_xaringan( | |||||
| text_color = "#000", | |||||
| header_color = "#000", | |||||
| background_color = "#FFF", | |||||
| link_color = "rgb(249, 38, 114)", | |||||
| text_bold_color = NULL, | text_bold_color = NULL, | ||||
| text_slide_number_color = inverse_background_color, | text_slide_number_color = inverse_background_color, | ||||
| padding = "1rem 4rem 1rem 4rem", background_image = NULL, | |||||
| background_size = NULL, background_position = NULL, | |||||
| padding = "1rem 4rem 1rem 4rem", | |||||
| background_image = NULL, | |||||
| background_size = NULL, | |||||
| background_position = NULL, | |||||
| code_highlight_color = "rgba(255,255,0,0.5)", | code_highlight_color = "rgba(255,255,0,0.5)", | ||||
| 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, | |||||
| 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", | inverse_header_color = "#f3f3f3", | ||||
| title_slide_text_color = inverse_text_color, | title_slide_text_color = inverse_text_color, | ||||
| title_slide_background_color = inverse_background_color, | title_slide_background_color = inverse_background_color, | ||||
| title_slide_background_image = NULL, | title_slide_background_image = NULL, | ||||
| title_slide_background_size = NULL, | title_slide_background_size = NULL, | ||||
| title_slide_background_position = NULL, footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", footnote_position_bottom = "3em", | |||||
| title_slide_background_position = NULL, | |||||
| footnote_color = NULL, | |||||
| footnote_font_size = "0.9em", | |||||
| footnote_position_bottom = "3em", | |||||
| left_column_subtle_color = "#777", | left_column_subtle_color = "#777", | ||||
| left_column_selected_color = "#000", | left_column_selected_color = "#000", | ||||
| blockquote_left_border_color = "lightgray", | blockquote_left_border_color = "lightgray", | ||||
| table_border_color = "#666", table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = "#eee", text_font_size = "20px", | |||||
| header_h1_font_size = "55px", header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", header_background_auto = FALSE, | |||||
| table_border_color = "#666", | |||||
| table_row_border_color = "#ddd", | |||||
| table_row_even_background_color = "#eee", | |||||
| text_font_size = "20px", | |||||
| header_h1_font_size = "55px", | |||||
| header_h2_font_size = "45px", | |||||
| header_h3_font_size = "35px", | |||||
| header_background_auto = FALSE, | |||||
| header_background_color = header_color, | header_background_color = header_color, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = "2rem 4rem 1.5rem 4rem", | header_background_padding = "2rem 4rem 1.5rem 4rem", | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", | |||||
| "middle", "bottom"), text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, text_font_family = "'Droid Serif'", | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9em", | |||||
| text_font_google = NULL, | |||||
| text_font_family = "'Droid Serif'", | |||||
| text_font_weight = "normal", | text_font_weight = "normal", | ||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", header_font_google = NULL, | |||||
| text_font_url = "https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic", | |||||
| text_font_family_fallback = "'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'", | |||||
| text_font_base = "serif", | |||||
| header_font_google = NULL, | |||||
| header_font_family = "'Yanone Kaffeesatz'", | header_font_family = "'Yanone Kaffeesatz'", | ||||
| header_font_weight = "normal", | header_font_weight = "normal", | ||||
| header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | header_font_url = "https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz", | ||||
| code_font_google = NULL, code_font_family = "'Source Code Pro'", | |||||
| code_font_google = NULL, | |||||
| code_font_family = "'Source Code Pro'", | |||||
| code_font_size = "0.9em", | code_font_size = "0.9em", | ||||
| code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | code_font_url = "https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700", | ||||
| code_font_family_fallback = "'Lucida Console', Monaco", | code_font_family_fallback = "'Lucida Console', Monaco", | ||||
| extra_css = NULL, extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css") | |||||
| colors = NULL, | |||||
| extra_css = NULL, | |||||
| extra_fonts = NULL, | |||||
| outfile = "xaringan-themer.css" | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Text Color. Defaults to #000. Modifies the \code{body} element.} | \item{text_color}{Text Color. Defaults to #000. Modifies the \code{body} element.} | ||||
| \item{header_color}{Header Color. Defaults to #000. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_color}{Header Color. Defaults to #000. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{background_color}{Slide Background Color. Defaults to #FFF. Modifies the \code{.remark-slide-content} class.} | \item{background_color}{Slide Background Color. Defaults to #FFF. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{link_color}{Link Color. Defaults to rgb(249, 38, 114). Modifies the \code{a, a > code} elements.} | |||||
| \item{link_color}{Link Color. Defaults to rgb(249, 38, 114). Modifies the \verb{a, a > code} elements.} | |||||
| \item{text_bold_color}{Bold Text Color. Defaults to \code{NULL}. 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{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 1rem 4rem 1rem 4rem. Modifies the \code{.remark-slide-content} class.} | |||||
| \item{padding}{Slide Padding in \verb{top right [bottom left]} format. Defaults to 1rem 4rem 1rem 4rem. 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_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{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | \item{inverse_text_shadow}{Enables Shadow on text of inverse slides. Defaults to \code{FALSE}. Modifies the \code{.inverse} class.} | ||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to #f3f3f3. Modifies the \code{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{inverse_header_color}{Inverse Header Color. Defaults to #f3f3f3. Modifies the \verb{.inverse h1, .inverse h2, .inverse h3} classes.} | |||||
| \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | \item{title_slide_text_color}{Title Slide Text Color. Defaults to \code{inverse_text_color}. Modifies the \code{.title-slide} class.} | ||||
| \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | \item{footnote_position_bottom}{Footnote location from bottom of screen. Defaults to 3em. Modifies the \code{.footnote} class.} | ||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #777. Modifies the \code{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_subtle_color}{Left Column Text (not last). Defaults to #777. Modifies the \verb{.left-column h2, .left-column h3} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #000. Modifies the \code{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{left_column_selected_color}{Left Column Current Selection. Defaults to #000. Modifies the \verb{.left-column h2:last-of-type, .left-column h3:last-child} classes.} | |||||
| \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to lightgray. Modifies the \code{blockquote} element.} | \item{blockquote_left_border_color}{Blockquote Left Border Color. Defaults to lightgray. Modifies the \code{blockquote} element.} | ||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \code{table: border-top, border-bottom} elements.} | |||||
| \item{table_border_color}{Table top/bottom border. Defaults to #666. Modifies the \verb{table: border-top, border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \code{table thead th: border-bottom} elements.} | |||||
| \item{table_row_border_color}{Table row inner bottom border. Defaults to #ddd. Modifies the \verb{table thead th: border-bottom} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee. Modifies the \code{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{table_row_even_background_color}{Table Even Row Background Color. Defaults to #eee. Modifies the \verb{thead, tfoot, tr:nth-child(even)} elements.} | |||||
| \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | \item{text_font_size}{Slide Body Text Font Size. Defaults to 20px. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_h1_font_size}{h1 Header Text Font Size. Defaults to 55px. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \code{.remark-slide-content h2} class.} | |||||
| \item{header_h2_font_size}{h2 Header Text Font Size. Defaults to 45px. Modifies the \verb{.remark-slide-content h2} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \code{.remark-slide-content h3} class.} | |||||
| \item{header_h3_font_size}{h3 Header Text Font Size. Defaults to 35px. Modifies the \verb{.remark-slide-content h3} class.} | |||||
| \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | \item{header_background_auto}{Add background under slide title automatically for h1 header elements. If not enabled, use \code{class: header_background} to enable. Defaults to \code{FALSE}.} | ||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_color}{Background Color for h1 Header with Background. Defaults to \code{header_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_text_color}{Text Color for h1 Header with Background. Defaults to \code{background_color}. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \code{.remark-slide-content h1} class.} | |||||
| \item{header_background_padding}{Padding for h1 Header with Background. Defaults to 2rem 4rem 1.5rem 4rem. Modifies the \verb{.remark-slide-content h1} class.} | |||||
| \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | \item{header_background_content_padding_top}{Top Padding for Content in Slide with Header with Background. Defaults to 7rem. Modifies the \code{.remark-slide-content} class.} | ||||
| \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | \item{text_font_weight}{Body Text Font Weight. Defaults to normal. Modifies the \code{body} element.} | ||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \code{@import url()} elements.} | |||||
| \item{text_font_url}{Body Text Font URL(s). Defaults to https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic. Modifies the \verb{@import url()} elements.} | |||||
| \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | \item{text_font_family_fallback}{Body Text Font Fallbacks. Defaults to 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC'. Modifies the \code{body} element.} | ||||
| \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{header_font_google}{Use \code{google_font()} to specify header font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_family}{Header Font Family. Defaults to 'Yanone Kaffeesatz'. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \code{h1, h2, h3} elements.} | |||||
| \item{header_font_weight}{Header Font Weight. Defaults to normal. Modifies the \verb{h1, h2, h3} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \code{@import url} elements.} | |||||
| \item{header_font_url}{Header Font URL. Defaults to https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | \item{code_font_google}{Use \code{google_font()} to specify code font. Defaults to \code{NULL}. Modifies the \code{body} element.} | ||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family}{Code Font Family. Defaults to 'Source Code Pro'. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | \item{code_font_size}{Code Text Font Size. Defaults to 0.9em. Modifies the \code{.remark-inline} class.} | ||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \code{@import url} elements.} | |||||
| \item{code_font_url}{Code Font URL. Defaults to https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700. Modifies the \verb{@import url} elements.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \code{.remark-code, .remark-inline-code} classes.} | |||||
| \item{code_font_family_fallback}{Code Font Fallback. Defaults to 'Lucida Console', Monaco. Modifies the \verb{.remark-code, .remark-inline-code} classes.} | |||||
| \item{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, \code{colors = c(blue = "#bad4ed")} adds a CSS variable | |||||
| \code{--blue}, a \code{.blue} CSS class that applies the color to the text or | |||||
| foreground color, and a \code{.bg-blue} CSS class that applies the color | |||||
| to the background.} | |||||
| \item{extra_css}{A named list of CSS definitions each containing a named list | \item{extra_css}{A named list of CSS definitions each containing a named list | ||||
| of CSS property-value pairs, i.e. | of CSS property-value pairs, i.e. | ||||
| Creates a customized Xaringan theme CSS file. | Creates a customized Xaringan theme CSS file. | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other themes: \code{\link{style_duo_accent_inverse}}, | |||||
| \code{\link{style_duo_accent}}, \code{\link{style_duo}}, | |||||
| \code{\link{style_mono_accent_inverse}}, | |||||
| \code{\link{style_mono_accent}}, | |||||
| \code{\link{style_mono_dark}}, | |||||
| \code{\link{style_mono_light}}, | |||||
| \code{\link{style_solarized_dark}}, | |||||
| \code{\link{style_solarized_light}} | |||||
| Other themes: | |||||
| \code{\link{style_duo_accent_inverse}()}, | |||||
| \code{\link{style_duo_accent}()}, | |||||
| \code{\link{style_duo}()}, | |||||
| \code{\link{style_mono_accent_inverse}()}, | |||||
| \code{\link{style_mono_accent}()}, | |||||
| \code{\link{style_mono_dark}()}, | |||||
| \code{\link{style_mono_light}()}, | |||||
| \code{\link{style_solarized_dark}()}, | |||||
| \code{\link{style_solarized_light}()} | |||||
| } | } | ||||
| \concept{themes} | \concept{themes} |
| \alias{theme_xaringan} | \alias{theme_xaringan} | ||||
| \title{A Plot Theme for ggplot2 by xaringanthemer} | \title{A Plot Theme for ggplot2 by xaringanthemer} | ||||
| \usage{ | \usage{ | ||||
| theme_xaringan(text_color = NULL, background_color = NULL, | |||||
| accent_color = NULL, accent_secondary_color = NULL, ...) | |||||
| theme_xaringan( | |||||
| text_color = NULL, | |||||
| background_color = NULL, | |||||
| accent_color = NULL, | |||||
| accent_secondary_color = NULL, | |||||
| ... | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Color for text and foreground, inherits from \code{text_color}} | \item{text_color}{Color for text and foreground, inherits from \code{text_color}} | ||||
| \item{accent_secondary_color}{Color for secondary accents, inherits from | \item{accent_secondary_color}{Color for secondary accents, inherits from | ||||
| \code{text_bold_color}} | \code{text_bold_color}} | ||||
| \item{...}{Arguments passed on to \code{theme_xaringan_base} | |||||
| \describe{ | |||||
| \item{text_color}{Color for text and foreground} | |||||
| \item{background_color}{Color for background} | |||||
| \item{accent_color}{Color for titles and accents, inherits from | |||||
| \code{header_color} or \code{text_color}. Used for the \code{title} base setting in | |||||
| \code{\link[ggplot2:theme]{ggplot2::theme()}}, and additionally for setting the \code{color} or \code{fill} of | |||||
| \pkg{ggplot2} geom defaults.} | |||||
| \item{accent_secondary_color}{Color for secondary accents, inherits from | |||||
| \code{text_bold_color} or \code{accent_color}. Used only when setting \pkg{ggplot2} geom | |||||
| defaults.} | |||||
| \item{set_ggplot_defaults}{Should defaults be set for \pkg{ggplot2} \emph{geoms}? | |||||
| \item{...}{ | |||||
| Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}} | |||||
| \describe{ | |||||
| \item{\code{set_ggplot_defaults}}{Should defaults be set for \pkg{ggplot2} \emph{geoms}? | |||||
| Defaults to TRUE. To restore ggplot's defaults, or the previously set geom | Defaults to TRUE. To restore ggplot's defaults, or the previously set geom | ||||
| defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.} | defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.} | ||||
| \item{text_font}{Font to use for text elements, passed to | |||||
| \item{\code{text_font}}{Font to use for text elements, passed to | |||||
| \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is | \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is | ||||
| \code{TRUE}. Inherits from \code{text_font_family}.} | \code{TRUE}. Inherits from \code{text_font_family}.} | ||||
| \item{text_font_use_google}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{text_font_size}{Base text font size, inherits from \code{text_font_size}, or | |||||
| \item{\code{text_font_use_google}}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{\code{text_font_size}}{Base text font size, inherits from \code{text_font_size}, or | |||||
| defaults to 11.} | defaults to 11.} | ||||
| \item{title_font}{Font to use for title elements, passed to | |||||
| \item{\code{title_font}}{Font to use for title elements, passed to | |||||
| \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is | \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is | ||||
| \code{TRUE}. Inherits from \code{title_font_family}.} | \code{TRUE}. Inherits from \code{title_font_family}.} | ||||
| \item{title_font_use_google}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{title_font_size}{Base text font size, inherits from \code{title_font_size}, | |||||
| \item{\code{title_font_use_google}}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{\code{title_font_size}}{Base text font size, inherits from \code{title_font_size}, | |||||
| or defaults to 14.} | or defaults to 14.} | ||||
| }} | |||||
| }} | |||||
| } | } | ||||
| \value{ | \value{ | ||||
| A ggplot2 theme | A ggplot2 theme | ||||
| } | } | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}}, | |||||
| \code{\link{theme_xaringan_inverse}}, | |||||
| \code{\link{theme_xaringan_set_defaults}} | |||||
| Other xaringanthemer ggplot2 themes: | |||||
| \code{\link{theme_xaringan_base}()}, | |||||
| \code{\link{theme_xaringan_inverse}()}, | |||||
| \code{\link{theme_xaringan_set_defaults}()} | |||||
| } | } | ||||
| \concept{xaringanthemer ggplot2 themes} | \concept{xaringanthemer ggplot2 themes} |
| \alias{theme_xaringan_base} | \alias{theme_xaringan_base} | ||||
| \title{The ggplot2 xaringanthemer base plot theme} | \title{The ggplot2 xaringanthemer base plot theme} | ||||
| \usage{ | \usage{ | ||||
| theme_xaringan_base(text_color, background_color, ..., | |||||
| set_ggplot_defaults = TRUE, accent_color = NULL, | |||||
| accent_secondary_color = NULL, text_font = NULL, | |||||
| text_font_use_google = NULL, text_font_size = NULL, | |||||
| title_font = NULL, title_font_use_google = NULL, | |||||
| title_font_size = NULL) | |||||
| theme_xaringan_base( | |||||
| text_color, | |||||
| background_color, | |||||
| ..., | |||||
| set_ggplot_defaults = TRUE, | |||||
| accent_color = NULL, | |||||
| accent_secondary_color = NULL, | |||||
| text_font = NULL, | |||||
| text_font_use_google = NULL, | |||||
| text_font_size = NULL, | |||||
| title_font = NULL, | |||||
| title_font_use_google = NULL, | |||||
| title_font_size = NULL | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Color for text and foreground} | \item{text_color}{Color for text and foreground} | ||||
| } | } | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_inverse}}, | |||||
| \code{\link{theme_xaringan_set_defaults}}, | |||||
| \code{\link{theme_xaringan}} | |||||
| Other xaringanthemer ggplot2 themes: | |||||
| \code{\link{theme_xaringan_inverse}()}, | |||||
| \code{\link{theme_xaringan_set_defaults}()}, | |||||
| \code{\link{theme_xaringan}()} | |||||
| } | } | ||||
| \concept{xaringanthemer ggplot2 themes} | \concept{xaringanthemer ggplot2 themes} |
| \alias{theme_xaringan_inverse} | \alias{theme_xaringan_inverse} | ||||
| \title{An Inverse Plot Theme for ggplot2 by xaringanthemer} | \title{An Inverse Plot Theme for ggplot2 by xaringanthemer} | ||||
| \usage{ | \usage{ | ||||
| theme_xaringan_inverse(text_color = NULL, background_color = NULL, | |||||
| accent_color = NULL, accent_secondary_color = NULL, ...) | |||||
| theme_xaringan_inverse( | |||||
| text_color = NULL, | |||||
| background_color = NULL, | |||||
| accent_color = NULL, | |||||
| accent_secondary_color = NULL, | |||||
| ... | |||||
| ) | |||||
| } | } | ||||
| \arguments{ | \arguments{ | ||||
| \item{text_color}{Color for text and foreground, inherits from \code{text_color}} | \item{text_color}{Color for text and foreground, inherits from \code{text_color}} | ||||
| \item{accent_secondary_color}{Color for secondary accents, inherits from | \item{accent_secondary_color}{Color for secondary accents, inherits from | ||||
| \code{text_bold_color}} | \code{text_bold_color}} | ||||
| \item{...}{Arguments passed on to \code{theme_xaringan_base} | |||||
| \describe{ | |||||
| \item{text_color}{Color for text and foreground} | |||||
| \item{background_color}{Color for background} | |||||
| \item{accent_color}{Color for titles and accents, inherits from | |||||
| \code{header_color} or \code{text_color}. Used for the \code{title} base setting in | |||||
| \code{\link[ggplot2:theme]{ggplot2::theme()}}, and additionally for setting the \code{color} or \code{fill} of | |||||
| \pkg{ggplot2} geom defaults.} | |||||
| \item{accent_secondary_color}{Color for secondary accents, inherits from | |||||
| \code{text_bold_color} or \code{accent_color}. Used only when setting \pkg{ggplot2} geom | |||||
| defaults.} | |||||
| \item{set_ggplot_defaults}{Should defaults be set for \pkg{ggplot2} \emph{geoms}? | |||||
| \item{...}{ | |||||
| Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}} | |||||
| \describe{ | |||||
| \item{\code{set_ggplot_defaults}}{Should defaults be set for \pkg{ggplot2} \emph{geoms}? | |||||
| Defaults to TRUE. To restore ggplot's defaults, or the previously set geom | Defaults to TRUE. To restore ggplot's defaults, or the previously set geom | ||||
| defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.} | defaults, see \code{\link[=theme_xaringan_restore_defaults]{theme_xaringan_restore_defaults()}}.} | ||||
| \item{text_font}{Font to use for text elements, passed to | |||||
| \item{\code{text_font}}{Font to use for text elements, passed to | |||||
| \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is | \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{text_font_use_google} is | ||||
| \code{TRUE}. Inherits from \code{text_font_family}.} | \code{TRUE}. Inherits from \code{text_font_family}.} | ||||
| \item{text_font_use_google}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{text_font_size}{Base text font size, inherits from \code{text_font_size}, or | |||||
| \item{\code{text_font_use_google}}{Is \code{text_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{\code{text_font_size}}{Base text font size, inherits from \code{text_font_size}, or | |||||
| defaults to 11.} | defaults to 11.} | ||||
| \item{title_font}{Font to use for title elements, passed to | |||||
| \item{\code{title_font}}{Font to use for title elements, passed to | |||||
| \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is | \code{\link[sysfonts:font_add_google]{sysfonts::font_add_google()}}, if available and \code{title_font_use_google} is | ||||
| \code{TRUE}. Inherits from \code{title_font_family}.} | \code{TRUE}. Inherits from \code{title_font_family}.} | ||||
| \item{title_font_use_google}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{title_font_size}{Base text font size, inherits from \code{title_font_size}, | |||||
| \item{\code{title_font_use_google}}{Is \code{title_font} available on \href{https://fonts.google.com}{Google Fonts}?} | |||||
| \item{\code{title_font_size}}{Base text font size, inherits from \code{title_font_size}, | |||||
| or defaults to 14.} | or defaults to 14.} | ||||
| }} | |||||
| }} | |||||
| } | } | ||||
| \value{ | \value{ | ||||
| A ggplot2 theme | A ggplot2 theme | ||||
| } | } | ||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}}, | |||||
| \code{\link{theme_xaringan_set_defaults}}, | |||||
| \code{\link{theme_xaringan}} | |||||
| Other xaringanthemer ggplot2 themes: | |||||
| \code{\link{theme_xaringan_base}()}, | |||||
| \code{\link{theme_xaringan_set_defaults}()}, | |||||
| \code{\link{theme_xaringan}()} | |||||
| } | } | ||||
| \concept{xaringanthemer ggplot2 themes} | \concept{xaringanthemer ggplot2 themes} |
| \alias{theme_xaringan_restore_defaults} | \alias{theme_xaringan_restore_defaults} | ||||
| \title{Set and Restore ggplot2 geom Defaults} | \title{Set and Restore ggplot2 geom Defaults} | ||||
| \usage{ | \usage{ | ||||
| theme_xaringan_set_defaults(text_color = NULL, background_color = NULL, | |||||
| accent_color = text_color, accent_secondary_color = accent_color, | |||||
| text_font = NULL) | |||||
| theme_xaringan_set_defaults( | |||||
| text_color = NULL, | |||||
| background_color = NULL, | |||||
| accent_color = text_color, | |||||
| accent_secondary_color = accent_color, | |||||
| text_font = NULL | |||||
| ) | |||||
| theme_xaringan_restore_defaults() | theme_xaringan_restore_defaults() | ||||
| } | } | ||||
| }} | }} | ||||
| \seealso{ | \seealso{ | ||||
| Other xaringanthemer ggplot2 themes: \code{\link{theme_xaringan_base}}, | |||||
| \code{\link{theme_xaringan_inverse}}, | |||||
| \code{\link{theme_xaringan}} | |||||
| Other xaringanthemer ggplot2 themes: | |||||
| \code{\link{theme_xaringan_base}()}, | |||||
| \code{\link{theme_xaringan_inverse}()}, | |||||
| \code{\link{theme_xaringan}()} | |||||
| } | } | ||||
| \concept{xaringanthemer ggplot2 themes} | \concept{xaringanthemer ggplot2 themes} |
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| left: 0 !important; | left: 0 !important; | ||||
| } | } | ||||
| } | } | ||||
| /* ------------------------------------------------------- | |||||
| * | |||||
| * !! This file was generated by xaringanthemer !! | |||||
| * | |||||
| * Changes made to this file directly will be overwritten | |||||
| * if you used xaringanthemer in your xaringan slides Rmd | |||||
| * | |||||
| * Issues or likes? | |||||
| * - https://github.com/gadenbuie/xaringanthemer | |||||
| * - https://www.garrickadenbuie.com | |||||
| * | |||||
| * Need help? Try: | |||||
| * - vignette(package = "xaringanthemer") | |||||
| * - ?xaringanthemer::write_xaringan_theme | |||||
| * - xaringan wiki: https://github.com/yihui/xaringan/wiki | |||||
| * - remarkjs wiki: https://github.com/gnab/remark/wiki | |||||
| * | |||||
| * Version: a.b.c.d.eeee | |||||
| * | |||||
| * ------------------------------------------------------- */ | |||||
| @import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic); | |||||
| @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); | |||||
| @import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700); | |||||
| :root { | |||||
| /* Fonts */ | |||||
| --body-font-family: 'Droid Serif', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Microsoft YaHei', 'Songti SC', serif; | |||||
| --header-font-family: 'Yanone Kaffeesatz'; | |||||
| --code-font-family: 'Source Code Pro'; | |||||
| --text-font-size: 20px; | |||||
| --code-font-size: 0.9em; | |||||
| --code-inline-font-size: 1em; | |||||
| --header-h1-font-size: 55px; | |||||
| --header-h2-font-size: 45px; | |||||
| --header-h3-font-size: 35px; | |||||
| /* Colors */ | |||||
| --text-color: #000; | |||||
| --header-color: #000; | |||||
| --background-color: #FFF; | |||||
| --link-color: rgb(249, 38, 114); | |||||
| --code-highlight-color: rgba(255,255,0,0.5); | |||||
| --inverse-text-color: #d6d6d6; | |||||
| --inverse-background-color: #272822; | |||||
| --inverse-header-color: #f3f3f3; | |||||
| --title-slide-background-color: #272822; | |||||
| --title-slide-text-color: #d6d6d6; | |||||
| --light-blue: #bad4ed; | |||||
| } | |||||
| html { | |||||
| font-size: var(--text-font-size); | |||||
| } | |||||
| body { | |||||
| font-family: var(--body-font-family); | |||||
| font-weight: normal; | |||||
| color: var(--text-color); | |||||
| } | |||||
| h1, h2, h3 { | |||||
| font-family: var(--header-font-family); | |||||
| font-weight: normal; | |||||
| color: var(--header-color); | |||||
| } | |||||
| .remark-slide-content { | |||||
| background-color: var(--background-color); | |||||
| font-size: var(--text-font-size); | |||||
| padding: 1rem 4rem 1rem 4rem; | |||||
| } | |||||
| .remark-slide-content h1 { | |||||
| font-size: var(--header-h1-font-size); | |||||
| } | |||||
| .remark-slide-content h2 { | |||||
| font-size: var(--header-h2-font-size); | |||||
| } | |||||
| .remark-slide-content h3 { | |||||
| font-size: var(--header-h3-font-size); | |||||
| } | |||||
| .remark-code, .remark-inline-code { | |||||
| font-family: var(--code-font-family), 'Lucida Console', Monaco, monospace; | |||||
| } | |||||
| .remark-code { | |||||
| font-size: var(--code-font-size); | |||||
| } | |||||
| .remark-inline-code { | |||||
| font-size: var(--code-inline-font-size); | |||||
| color: #000; | |||||
| } | |||||
| .remark-slide-number { | |||||
| color: #272822; | |||||
| opacity: 1; | |||||
| font-size: 0.9em; | |||||
| } | |||||
| a, a > code { | |||||
| color: var(--link-color); | |||||
| text-decoration: none; | |||||
| } | |||||
| .footnote { | |||||
| position: absolute; | |||||
| bottom: 3em; | |||||
| padding-right: 4em; | |||||
| font-size: 0.9em; | |||||
| } | |||||
| .remark-code-line-highlighted { | |||||
| background-color: var(--code-highlight-color); | |||||
| } | |||||
| .inverse { | |||||
| background-color: var(--inverse-background-color); | |||||
| color: var(--inverse-text-color); | |||||
| } | |||||
| .inverse h1, .inverse h2, .inverse h3 { | |||||
| color: var(--inverse-header-color); | |||||
| } | |||||
| .title-slide, .title-slide h1, .title-slide h2, .title-slide h3 { | |||||
| color: var(--title-slide-text-color); | |||||
| } | |||||
| .title-slide { | |||||
| background-color: var(--title-slide-background-color); | |||||
| } | |||||
| .title-slide .remark-slide-number { | |||||
| display: none; | |||||
| } | |||||
| /* Two-column layout */ | |||||
| .left-column { | |||||
| width: 20%; | |||||
| height: 92%; | |||||
| float: left; | |||||
| } | |||||
| .left-column h2, .left-column h3 { | |||||
| color: #777; | |||||
| } | |||||
| .left-column h2:last-of-type, .left-column h3:last-child { | |||||
| color: #000; | |||||
| } | |||||
| .right-column { | |||||
| width: 75%; | |||||
| float: right; | |||||
| padding-top: 1em; | |||||
| } | |||||
| .pull-left { | |||||
| float: left; | |||||
| width: 47%; | |||||
| } | |||||
| .pull-right { | |||||
| float: right; | |||||
| width: 47%; | |||||
| } | |||||
| .pull-right ~ * { | |||||
| clear: both; | |||||
| } | |||||
| img, video, iframe { | |||||
| max-width: 100%; | |||||
| } | |||||
| blockquote { | |||||
| border-left: solid 5px lightgray; | |||||
| padding-left: 1em; | |||||
| } | |||||
| .remark-slide table { | |||||
| margin: auto; | |||||
| border-top: 1px solid #666; | |||||
| border-bottom: 1px solid #666; | |||||
| } | |||||
| .remark-slide table thead th { | |||||
| border-bottom: 1px solid #ddd; | |||||
| } | |||||
| th, td { | |||||
| padding: 5px; | |||||
| } | |||||
| .remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) { | |||||
| background: #eee; | |||||
| } | |||||
| table.dataTable tbody { | |||||
| background-color: var(--background-color); | |||||
| color: var(--text-color); | |||||
| } | |||||
| table.dataTable.display tbody tr.odd { | |||||
| background-color: var(--background-color); | |||||
| } | |||||
| table.dataTable.display tbody tr.even { | |||||
| background-color: #eee; | |||||
| } | |||||
| table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover { | |||||
| background-color: rgba(255, 255, 255, 0.5); | |||||
| } | |||||
| .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate { | |||||
| color: var(--text-color); | |||||
| } | |||||
| .dataTables_wrapper .dataTables_paginate .paginate_button { | |||||
| color: var(--text-color) !important; | |||||
| } | |||||
| /* Slide Header Background for h1 elements */ | |||||
| .remark-slide-content.header_background > h1 { | |||||
| display: block; | |||||
| position: absolute; | |||||
| top: 0; | |||||
| left: 0; | |||||
| width: 100%; | |||||
| background: var(--background-color); | |||||
| color: var(--text-color); | |||||
| padding: 2rem 4rem 1.5rem 4rem; | |||||
| margin-top: 0; | |||||
| box-sizing: border-box; | |||||
| } | |||||
| .remark-slide-content.header_background { | |||||
| padding-top: 7rem; | |||||
| } | |||||
| @page { margin: 0; } | |||||
| @media print { | |||||
| .remark-slide-scaler { | |||||
| width: 100% !important; | |||||
| height: 100% !important; | |||||
| transform: scale(1) !important; | |||||
| top: 0 !important; | |||||
| left: 0 !important; | |||||
| } | |||||
| } | |||||
| .light-blue { | |||||
| color: var(--light-blue); | |||||
| } | |||||
| .bg-light-blue { | |||||
| background-color: var(--light-blue); | |||||
| } |
| # test_that() | |||||
| describe("prepare_colors()", { | |||||
| it("returns NULL if NULL or missing", { | |||||
| expect_null(prepare_colors()) | |||||
| expect_null(prepare_colors(NULL)) | |||||
| expect_null(prepare_colors(list())) | |||||
| }) | |||||
| it("requires a named vector or list", { | |||||
| expect_error(prepare_colors("#00FF00")) | |||||
| }) | |||||
| it("requires valid CSS names", { | |||||
| expect_error(prepare_colors(c("light blue" = "#88f"))) | |||||
| expect_error(preapre_colors(c("light/blue" = "#88f"))) | |||||
| }) | |||||
| it("returns list with color_name and value for each color", { | |||||
| colors <- c('test' = "#4ed4ed") | |||||
| prepared <- prepare_colors(colors) | |||||
| expect_equal(names(prepared[[1]]), c("color_name", "value")) | |||||
| expect_equal(prepared[[1]]$color_name, names(colors)[[1]]) | |||||
| expect_equal(prepared[[1]]$value, colors[[1]]) | |||||
| }) | |||||
| }) |
| "mono_light" = style_mono_light, | "mono_light" = style_mono_light, | ||||
| "solarized_dark" = style_solarized_dark, | "solarized_dark" = style_solarized_dark, | ||||
| "solarized_light" = style_solarized_light, | "solarized_light" = style_solarized_light, | ||||
| "xaringan" = style_xaringan, | |||||
| stop("Unknown theme") | stop("Unknown theme") | ||||
| ) | ) | ||||
| test_theme_file("mono_light", "mono_light-header_bg.css", header_background_auto = TRUE) | test_theme_file("mono_light", "mono_light-header_bg.css", header_background_auto = TRUE) | ||||
| test_theme_file("solarized_dark", "solarized_dark-header_bg.css", header_background_auto = TRUE) | test_theme_file("solarized_dark", "solarized_dark-header_bg.css", header_background_auto = TRUE) | ||||
| }) | }) | ||||
| test_that("style colors are added to themes", { | |||||
| test_theme_file("xaringan", colors = c('light-blue' = "#bad4ed")) | |||||
| }) |