😎 Give your xaringan slides some style
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Garrick Aden-Buie bdecd51742 Document monotone themes in README il y a 8 ans
R Move theme settings to separate file il y a 8 ans
inst/resources Initial commit, MWP il y a 8 ans
man Move theme settings to separate file il y a 8 ans
tests Initial commit, MWP il y a 8 ans
.Rbuildignore Oops, setup README.Rmd > github README.md il y a 8 ans
.gitignore Initial commit, MWP il y a 8 ans
DESCRIPTION Add package dependencies il y a 8 ans
NAMESPACE Initial commit, MWP il y a 8 ans
README.Rmd Document monotone themes in README il y a 8 ans
README.md Document monotone themes in README il y a 8 ans
xaringanthemer.Rproj Initial commit, MWP il y a 8 ans

README.md

xaringanthemer

Easily style your xaringan slides with xaringanthemer

Installation

Currently, this is a work in progress. Try it yourself:

devtools::install_github("gadenbuie/xaringanthemer")

Make it work

To make it work, add css: xaringan-themed.css to your xaringan slides YAML header under xaringan::moonreader:

output:
  xaringan::moon_reader:
    lib_dir: libs
    css: xaringan-themed.css

Then, in the first knitr chunk, try this:

```{r setup}
options(htmltools.dir.version = FALSE)
library(xaringanthemer)
mono_dark(
  base_color = "#b6174b",
  header_font_google = google_font("Josefin Sans"),
  text_font_google = google_font("Montserrat", "300", "300i"),
  code_font_google = google_font("Droid Mono")
)
```

Monotone Themes

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.)