| Config/testthat/edition: 3 | Config/testthat/edition: 3 | ||||
| Encoding: UTF-8 | Encoding: UTF-8 | ||||
| Roxygen: list(markdown = TRUE) | Roxygen: list(markdown = TRUE) | ||||
| RoxygenNote: 7.1.2 | |||||
| RoxygenNote: 7.2.1 |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_color = primary_color, | header_color = primary_color, | ||||
| background_color = white_color, | background_color = white_color, | ||||
| link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | link_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | ||||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, | |||||
| secondary_color), | |||||
| text_bold_color = choose_dark_or_light(secondary_color, primary_color, secondary_color), | |||||
| text_slide_number_color = primary_color, | text_slide_number_color = primary_color, | ||||
| padding = "16px 64px 16px 64px", | padding = "16px 64px 16px 64px", | ||||
| background_image = NULL, | background_image = NULL, | ||||
| 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_color = choose_dark_or_light(secondary_color, black_color, white_color), | ||||
| inverse_text_shadow = FALSE, | inverse_text_shadow = FALSE, | ||||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, | |||||
| white_color), | |||||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||||
| inverse_link_color = link_color, | inverse_link_color = link_color, | ||||
| title_slide_text_color = choose_dark_or_light(primary_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, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_color = primary_color, | header_color = primary_color, | ||||
| background_color = black_color, | background_color = black_color, | ||||
| link_color = choose_dark_or_light(secondary_color, secondary_color, primary_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_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 = "16px 64px 16px 64px", | padding = "16px 64px 16px 64px", | ||||
| background_image = NULL, | background_image = NULL, | ||||
| 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_color = choose_dark_or_light(secondary_color, black_color, white_color), | ||||
| inverse_text_shadow = FALSE, | inverse_text_shadow = FALSE, | ||||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, | |||||
| white_color), | |||||
| inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color), | |||||
| inverse_link_color = link_color, | inverse_link_color = link_color, | ||||
| title_slide_text_color = choose_dark_or_light(primary_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, | ||||
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| header_background_text_color = background_color, | header_background_text_color = background_color, | ||||
| header_background_padding = NULL, | header_background_padding = NULL, | ||||
| header_background_content_padding_top = "7rem", | header_background_content_padding_top = "7rem", | ||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", | |||||
| "bottom"), | |||||
| header_background_ignore_classes = c("normal", "inverse", "title", "middle", "bottom"), | |||||
| text_slide_number_font_size = "0.9rem", | text_slide_number_font_size = "0.9rem", | ||||
| text_font_google = NULL, | text_font_google = NULL, | ||||
| text_font_family = xaringanthemer_font_default("text_font_family"), | text_font_family = xaringanthemer_font_default("text_font_family"), | ||||
| } | } | ||||
| \section{Functions}{ | \section{Functions}{ | ||||
| \itemize{ | \itemize{ | ||||
| \item \code{xaringanthemer_font_default}: Default values for font family, weight, URLs and | |||||
| \item \code{xaringanthemer_font_default()}: Default values for font family, weight, URLs and | |||||
| font fallbacks. | font fallbacks. | ||||
| }} | |||||
| }} | |||||
| \section{Usage}{ | \section{Usage}{ | ||||
| To use the styles created by this theme function, make sure | To use the styles created by this theme function, make sure | ||||
| that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | that you use \code{xaringan-themer.css} as your CSS file in your slides' YAML | ||||
| header. If you change the name of the output file using the \code{outfile} | header. If you change the name of the output file using the \code{outfile} | ||||
| argument, use that name instead of the default file name.\if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| argument, use that name instead of the default file name. | |||||
| \if{html}{\out{<div class="sourceCode yaml">}}\preformatted{output: | |||||
| xaringan::moon_reader: | xaringan::moon_reader: | ||||
| css: xaringan-themer.css | css: xaringan-themer.css | ||||
| }\if{html}{\out{</div>}} | }\if{html}{\out{</div>}} |
| } | } | ||||
| \section{Functions}{ | \section{Functions}{ | ||||
| \itemize{ | \itemize{ | ||||
| \item \code{theme_xaringan_restore_defaults}: Restore previous or standard | |||||
| \item \code{theme_xaringan_restore_defaults()}: Restore previous or standard | |||||
| \pkg{ggplot2} \emph{geom} defaults. | \pkg{ggplot2} \emph{geom} defaults. | ||||
| }} | |||||
| }} | |||||
| \seealso{ | \seealso{ | ||||
| Other xaringanthemer ggplot2 themes: | Other xaringanthemer ggplot2 themes: | ||||
| \code{\link{theme_xaringan_base}()}, | \code{\link{theme_xaringan_base}()}, |
| \alias{xaringanthemer-package} | \alias{xaringanthemer-package} | ||||
| \title{xaringanthemer: Custom 'xaringan' CSS Themes} | \title{xaringanthemer: Custom 'xaringan' CSS Themes} | ||||
| \description{ | \description{ | ||||
| \if{html}{\figure{logo.png}{options: align='right' alt='logo' width='120'}} | |||||
| \if{html}{\figure{logo.png}{options: style='float: right' alt='logo' width='120'}} | |||||
| Create beautifully color-coordinated and customized themes for your 'xaringan' slides, without writing any CSS. Complete your slide theme with 'ggplot2' themes that match the font and colors used in your slides. Customized styles can be created directly in your slides' 'R Markdown' source file or in a separate external script. | Create beautifully color-coordinated and customized themes for your 'xaringan' slides, without writing any CSS. Complete your slide theme with 'ggplot2' themes that match the font and colors used in your slides. Customized styles can be created directly in your slides' 'R Markdown' source file or in a separate external script. | ||||
| } | } |