Writing CSS

Functions that write CSS from inside a xaringan R markdown document.

xaringanthemer_font_default() style_xaringan()

Write A Customized Xaringan Theme

style_extra_css()

Add Extra CSS Styles

xaringan Themes

Parameterized styles for xaringan slides using one (mono) or two (duo) base colors. Bonus: slide styles based on the solarized color palette.

style_mono_accent()

Monotone Accent Theme

style_mono_accent_inverse()

Monotone Accent Inverse Theme

style_mono_dark()

Monotone Dark Theme

style_mono_light()

Monotone Light Theme

style_duo()

Duotone Theme

style_duo_accent()

Duotone Accent Theme

style_duo_accent_inverse()

Duotone Accent Inverse Theme

style_solarized_dark()

Solarized Dark Theme

style_solarized_light()

Solarized Light Theme

Google Fonts

Helper functions for using Google Fonts in your slide styles.

google_font()

Specify Google Font

google_language_codes()

List Valid Google Language Codes

ggplot2 Themes

Plot themes for ggplot2 to match your xaringanthemer slide styles.

theme_xaringan()

A Plot Theme for ggplot2 by xaringanthemer

theme_xaringan_inverse()

An Inverse Plot Theme for ggplot2 by xaringanthemer

theme_xaringan_base()

The ggplot2 xaringanthemer base plot theme

theme_xaringan_set_defaults() theme_xaringan_restore_defaults()

Set and Restore ggplot2 geom Defaults

scale_xaringan_discrete() scale_xaringan_fill_discrete() scale_xaringan_color_discrete() scale_xaringan_colour_discrete() scale_xaringan_continuous() scale_xaringan_fill_continuous() scale_xaringan_color_continuous() scale_xaringan_colour_continuous()

Themed ggplot2 Scales

Helper functions

Helpers for Google fonts and color adjustments.

theme_xaringan_get_value()

Get the Value of xaringanthemer Style Setting

lighten_color() darken_color()

Generate lighter or darker version of a color

apply_alpha()

Add alpha to hex color

choose_dark_or_light()

Choose dark or light color