A minimalist xaringan
theme based on Northern Illinois University's branding. There are two flavors:
- A light theme (
niu.css
andniu-fonts.css
) suitable for viewing on the web and small in-person presentations - A dark theme (
niudark.css
andniudark-fonts.css
) suitable for projecting on large screens.
All relevant files can be found in the /assets/
folder. Minimially, niu.css
, niu-fonts.css
, and
NIU_horz_3Clr.png
are required to build the light (default) theme.
- A distribution of
R
- If you're here, I think that's a given. But just in case, grab the latest version here. - RStudio IDE -
xaringan
uses RMarkdown andknitr
so RStudio is pretty much required. xaringan
- either from CRAN or the development version from Github.
install.packages(xaringan)
or
devtools::install_github('yihui/xaringan')
Include the following information in the YAML preamble to your presentation.
Light theme:
output:
xaringan::moon_reader:
lib_dir: libs
css: [default, "assets/niu.css", "assets/niu-fonts.css"]
Dark theme:
output:
xaringan::moon_reader:
lib_dir: libs
css: [default, "assets/niudark.css", "assets/niudark-fonts.css"]
There are far more options that can be found in the example presentations here for the light theme and here for the dark theme.
Big shoutout to Garth Tarr's sydney_xaringan
for the inspiration (which appears loosely based on the hygge.css
template in xaringan
). Much of the boilerplate display/testing slides are from Garth. Many thanks.