😎 Give your xaringan slides some style
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Garrick Aden-Buie 42da34c7c5 Add solarized dark and light themes před 8 roky
R Add solarized dark and light themes před 8 roky
docs Squash screenshot před 8 roky
inst Add solarized dark and light themes před 8 roky
man Add solarized dark and light themes před 8 roky
man-roxygen Add solarized dark and light themes před 8 roky
tests Initial commit, MWP před 8 roky
.Rbuildignore Oops, setup README.Rmd > github README.md před 8 roky
.gitignore Initial commit, MWP před 8 roky
DESCRIPTION Add package dependencies před 8 roky
NAMESPACE Add solarized dark and light themes před 8 roky
README.Rmd Add screenshots před 8 roky
README.md Add screenshots před 8 roky
xaringanthemer.Rproj Initial commit, MWP před 8 roky

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