|
|
|
|
|
|
|
|
status](https://www.r-pkg.org/badges/version/xaringanthemer)](https://CRAN.R-project.org/package=xaringanthemer) |
|
|
status](https://www.r-pkg.org/badges/version/xaringanthemer)](https://CRAN.R-project.org/package=xaringanthemer) |
|
|
[](https://www.tidyverse.org/lifecycle/#stable) |
|
|
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable) |
|
|
[](https://travis-ci.org/gadenbuie/xaringanthemer) |
|
|
|
|
|
|
|
|
[](https://travis-ci.com/gadenbuie/xaringanthemer) |
|
|
[](https://codecov.io/github/gadenbuie/xaringanthemer) |
|
|
[](https://codecov.io/github/gadenbuie/xaringanthemer) |
|
|
<!-- badges: end --> |
|
|
<!-- badges: end --> |
|
|
|
|
|
|
|
|
Give your [xaringan](https://github.com/yihui/xaringan) slides some |
|
|
Give your [xaringan](https://github.com/yihui/xaringan) slides some |
|
|
style with **xaringanthemer** within your `slides.Rmd` file without |
|
|
style with **xaringanthemer** within your `slides.Rmd` file without |
|
|
(much) CSS. |
|
|
|
|
|
|
|
|
(much) |
|
|
|
|
|
CSS. |
|
|
|
|
|
|
|
|
<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/examples.gif" alt="Animation previewing many xaringanthemer themes" /> |
|
|
<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/examples.gif" alt="Animation previewing many xaringanthemer themes" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**xaringanthemer** is <kbd>Tab</kbd> friendly – [use autocomplete to |
|
|
**xaringanthemer** is <kbd>Tab</kbd> friendly – [use autocomplete to |
|
|
explore](#theme-settings) the [template |
|
|
explore](#theme-settings) the [template |
|
|
variables](vignettes/template-variables.md) that you can adjust in each |
|
|
variables](vignettes/template-variables.md) that you can adjust in each |
|
|
of the themes\! |
|
|
|
|
|
|
|
|
of the |
|
|
|
|
|
themes\! |
|
|
|
|
|
|
|
|
<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio" /> |
|
|
<img src="https://raw.githubusercontent.com/gadenbuie/xaringanthemer/assets/example-rstudio-completion.gif" alt="Demonstration of argument auto-completion with RStudio" /> |
|
|
|
|
|
|
|
|
### R Markdown Template in RStudio |
|
|
### R Markdown Template in RStudio |
|
|
|
|
|
|
|
|
You can also skip the above and just create a *Ninja Themed |
|
|
You can also skip the above and just create a *Ninja Themed |
|
|
Presentation* from the New R Markdown Document menu in RStudio. |
|
|
|
|
|
|
|
|
Presentation* from the New R Markdown Document menu in |
|
|
|
|
|
RStudio. |
|
|
|
|
|
|
|
|
<center> |
|
|
<center> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `style_mono_light()` |
|
|
#### `style_mono_light()` |
|
|
|
|
|
|
|
|
A light theme based around a single color. |
|
|
|
|
|
|
|
|
A light theme based around a single |
|
|
|
|
|
color. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_mono_light(base_color = "#23395b") |
|
|
style_mono_light(base_color = "#23395b") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `style_mono_dark()` |
|
|
#### `style_mono_dark()` |
|
|
|
|
|
|
|
|
A dark theme based around a single color. |
|
|
|
|
|
|
|
|
A dark theme based around a single |
|
|
|
|
|
color. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_mono_dark(base_color = "#cbf7ed") |
|
|
style_mono_dark(base_color = "#cbf7ed") |
|
|
|
|
|
|
|
|
#### `style_mono_accent()` |
|
|
#### `style_mono_accent()` |
|
|
|
|
|
|
|
|
The default xaringan theme with a single color used for color accents on |
|
|
The default xaringan theme with a single color used for color accents on |
|
|
select elements (headers, bold text, etc.). |
|
|
|
|
|
|
|
|
select elements (headers, bold text, |
|
|
|
|
|
etc.). |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_mono_accent(base_color = "#43418A") |
|
|
style_mono_accent(base_color = "#43418A") |
|
|
|
|
|
|
|
|
#### `style_mono_accent_inverse()` |
|
|
#### `style_mono_accent_inverse()` |
|
|
|
|
|
|
|
|
An “inverted” default xaringan theme with a single color used for color |
|
|
An “inverted” 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.). |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_mono_accent_inverse(base_color = "#3C989E") |
|
|
style_mono_accent_inverse(base_color = "#3C989E") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `style_duo()` |
|
|
#### `style_duo()` |
|
|
|
|
|
|
|
|
A two-colored theme based on a primary and secondary color. |
|
|
|
|
|
|
|
|
A two-colored theme based on a primary and secondary |
|
|
|
|
|
color. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_duo(primary_color = "#1F4257", secondary_color = "#F97B64") |
|
|
style_duo(primary_color = "#1F4257", secondary_color = "#F97B64") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `style_duo_accent()` |
|
|
#### `style_duo_accent()` |
|
|
|
|
|
|
|
|
The default Xaringan theme with two accent colors. |
|
|
|
|
|
|
|
|
The default Xaringan theme with two accent |
|
|
|
|
|
colors. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_duo_accent(primary_color = "#006747", secondary_color = "#CFC493") |
|
|
style_duo_accent(primary_color = "#006747", secondary_color = "#CFC493") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `style_duo_accent_inverse()` |
|
|
#### `style_duo_accent_inverse()` |
|
|
|
|
|
|
|
|
An “inverted” default Xaringan theme with two accent colors. |
|
|
|
|
|
|
|
|
An “inverted” default Xaringan theme with two accent |
|
|
|
|
|
colors. |
|
|
|
|
|
|
|
|
``` r |
|
|
``` r |
|
|
style_duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493") |
|
|
style_duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493") |