😎 Give your xaringan slides some style
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
Garrick Aden-Buie 07b573ed50 Add text_size* template variables 8年前
R Add text_size* template variables 8年前
docs Squash screenshot 8年前
inst Add text_size* template variables 8年前
man Add text_size* template variables 8年前
man-roxygen Add solarized dark and light themes 8年前
tests Initial commit, MWP 8年前
.Rbuildignore Oops, setup README.Rmd > github README.md 8年前
.gitignore Initial commit, MWP 8年前
DESCRIPTION Add package dependencies 8年前
NAMESPACE Add solarized dark and light themes 8年前
README.Rmd Add screenshots 8年前
README.md Add screenshots 8年前
xaringanthemer.Rproj Initial commit, MWP 8年前

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