Skip to contents

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.

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