| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_duo | #' @template style_duo | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_duo_accent | #' @template style_duo_accent | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_duo_accent_inverse | #' @template style_duo_accent_inverse | ||||
| #' @family Duotone themes | #' @family Duotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_mono_accent | #' @template style_mono_accent | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_mono_accent_inverse | #' @template style_mono_accent_inverse | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_mono_dark | #' @template style_mono_dark | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_mono_light | #' @template style_mono_light | ||||
| #' @family Monotone themes | #' @family Monotone themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_solarized_dark | #' @template style_solarized_dark | ||||
| #' @family Solarized themes | #' @family Solarized themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_solarized_light | #' @template style_solarized_light | ||||
| #' @family Solarized themes | #' @family Solarized themes | ||||
| #' @export | #' @export |
| #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | #' Consolas, Monaco, Liberation Mono, Lucida Console. Modifies the | ||||
| #' `.remark-code, .remark-inline-code` classes. | #' `.remark-code, .remark-inline-code` classes. | ||||
| #' @template theme_params | #' @template theme_params | ||||
| #' @template style-usage | |||||
| #' @template style_xaringan | #' @template style_xaringan | ||||
| #' @export | #' @export | ||||
| style_xaringan <- function( | style_xaringan <- function( |
| ) | ) | ||||
| ), | ), | ||||
| "#' @template theme_params", | "#' @template theme_params", | ||||
| "#' @template style-usage", | |||||
| ..., | ..., | ||||
| glue::glue("{f_name} <- function("), | glue::glue("{f_name} <- function("), | ||||
| as.character( | as.character( |
| #' @section Usage: To use the styles created by this theme function, make sure | |||||
| #' that you use `xaringan-themer.css` as your CSS file in your slides' YAML | |||||
| #' header. If you change the name of the output file using the `outfile` | |||||
| #' argument, use that name instead of the default file name. | |||||
| #' | |||||
| #' ```yaml | |||||
| #' output: | |||||
| #' xaringan::moon_reader: | |||||
| #' css: xaringan-themer.css` | |||||
| #' ```` | |||||
| # |
| A duotone theme designed to work well with two complementary | A duotone theme designed to work well with two complementary | ||||
| colors. | colors. | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| An default xaringan theme with a two colors used for color | An default xaringan theme with a two colors used for color | ||||
| accents on select elements (headers, bold text, etc.). | accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| An "inverted" default xaringan theme with a two colors used | An "inverted" default xaringan theme with a two colors used | ||||
| for color accents on select elements (headers, bold text, etc.). | for color accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| The default xaringan theme with a single color used for color | The default xaringan theme with a single color used for color | ||||
| accents on select elements (headers, bold text, etc.). | accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| An "inverted" default xaringan theme with a single color used | An "inverted" default xaringan theme with a single color used | ||||
| for color accents on select elements (headers, bold text, etc.). | for color accents on select elements (headers, bold text, etc.). | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| \description{ | \description{ | ||||
| A dark monotone theme based around a single color. | A dark monotone theme based around a single color. | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| \description{ | \description{ | ||||
| A light monotone theme based around a single color. | A light monotone theme based around a single color. | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| Works well with "\code{highlightStyle: solarized-dark}" or | Works well with "\code{highlightStyle: solarized-dark}" or | ||||
| "\code{highlighStyle: solarized-light}". | "\code{highlighStyle: solarized-light}". | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| Works well with "\code{highlightStyle: solarized-dark}" or | Works well with "\code{highlightStyle: solarized-dark}" or | ||||
| "\code{highlighStyle: solarized-light}". | "\code{highlighStyle: solarized-light}". | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |
| \description{ | \description{ | ||||
| Creates a customized Xaringan theme CSS file. | Creates a customized Xaringan theme CSS file. | ||||
| } | } | ||||
| \section{Usage}{ | |||||
| 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 | |||||
| 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: | |||||
| xaringan::moon_reader: | |||||
| css: xaringan-themer.css` | |||||
| }\if{html}{\out{</div>}} | |||||
| } | |||||
| \examples{ | \examples{ | ||||
| # Create a xaringan style in a temporary file | # Create a xaringan style in a temporary file | ||||
| xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") | xaringan_themer_css <- tempfile("xaringan-themer-", fileext = ".css") |