| 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.1 | |||||
| RoxygenNote: 7.1.2 |
| if (requireNamespace("scales", quietly = TRUE)) { | if (requireNamespace("scales", quietly = TRUE)) { | ||||
| scales::show_col(c(blue, blue_transparent)) | scales::show_col(c(blue, blue_transparent)) | ||||
| } | } | ||||
| } | } |
| if (requireNamespace("scales", quietly = TRUE)) { | if (requireNamespace("scales", quietly = TRUE)) { | ||||
| scales::show_col(c(light_green, contrast_green, dark_purple, contrast_purple)) | scales::show_col(c(light_green, contrast_green, dark_purple, contrast_purple)) | ||||
| } | } | ||||
| } | } | ||||
| \references{ | \references{ | ||||
| \url{https://stackoverflow.com/a/3943023/2022615} | \url{https://stackoverflow.com/a/3943023/2022615} |
| if (requireNamespace("scales", quietly = TRUE)) { | if (requireNamespace("scales", quietly = TRUE)) { | ||||
| scales::show_col(c(blue_light, blue, blue_dark)) | scales::show_col(c(blue_light, blue, blue_dark)) | ||||
| } | } | ||||
| } | } |
| # Fill color matches teal text | # Fill color matches teal text | ||||
| scale_xaringan_color_discrete(direction = -1) | scale_xaringan_color_discrete(direction = -1) | ||||
| } | } | ||||
| } | } |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| 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="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>}} |
| theme_xaringan_get_value("background_color") | theme_xaringan_get_value("background_color") | ||||
| theme_xaringan_get_value("header_color") | theme_xaringan_get_value("header_color") | ||||
| theme_xaringan_get_value("text_bold_color") | theme_xaringan_get_value("text_bold_color") | ||||
| } | } |
| \description{ | \description{ | ||||
| \if{html}{\figure{logo.png}{options: align='right' alt='logo' width='120'}} | \if{html}{\figure{logo.png}{options: align='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. | |||||
| } | } | ||||
| \seealso{ | \seealso{ | ||||
| Useful links: | Useful links: |