|
|
8 anni fa | |
|---|---|---|
| R | 8 anni fa | |
| docs | 8 anni fa | |
| inst/resources | 8 anni fa | |
| man | 8 anni fa | |
| tests | 8 anni fa | |
| .Rbuildignore | 8 anni fa | |
| .gitignore | 8 anni fa | |
| DESCRIPTION | 8 anni fa | |
| NAMESPACE | 8 anni fa | |
| README.Rmd | 8 anni fa | |
| README.md | 8 anni fa | |
| xaringanthemer.Rproj | 8 anni fa | |
Easily style your xaringan slides with xaringanthemer
Currently, this is a work in progress. Try it yourself:
To make it work, add css: xaringan-themed.css to your
xaringan slides YAML header under xaringan::moonreader:
Then, in the first knitr chunk, try this:
```{r setup}
options(htmltools.dir.version = FALSE)
library(xaringanthemer)
mono_light(
base_color = "#1c5253",
header_font_google = google_font("Josefin Sans"),
text_font_google = google_font("Montserrat", "300", "300i"),
code_font_google = google_font("Droid Mono")
)
```
Use these functions to automatically create a consistent color palette for your slides, based around a single color.
mono_light(): A light theme based around a single
color
mono_dark(): A dark theme based around a single
color
mono_accent(): The default xaringan theme with a
single color used for color accents on select elements (headers, bold
text, etc.)
mono_accent_inverse(): An “inverted” default
xaringan theme with a single color used for color accents on select
elements (headers, bold text, etc.)