😎 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 92bc56f9b2 Change mono_accent_inverse() default color il y a 8 ans
R Change mono_accent_inverse() default color il y a 8 ans
docs Squash screenshot il y a 8 ans
inst Define .title-slide *after*.inverse il y a 8 ans
man Change mono_accent_inverse() default color il y a 8 ans
man-roxygen Theme functions are now generated from template variables 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 Theme functions are now generated from template variables il y a 8 ans
README.Rmd Add screenshots il y a 8 ans
README.md Add screenshots 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_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")
)
```

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