Give your xaringan slides some style with xaringanthemer within your slides.Rmd file without (much) CSS.

Installation

xaringanthemer currently lives on GitHub.

Usage

First, add the xaringan-themer.css file to the YAML header of your xaringan slides.

Then, in a hidden chunk just after the knitr setup chunk, load xaringanthemer and try one of the theme functions.

Tab Completion

xaringanthemer is Tab friendly – use autocomplete to explore the template variables that you can adjust in each of the themes!

R Markdown Template in RStudio

You can also skip the above and just create a Ninja Themed Presentation from the New R Markdown Document menu in RStudio.