CRAN release: 2022-08-20
inverse_text_coloras the default for
inverse_header_colorin most places (#60)
Fixed a bug that happened when providing named values for key theme colors (#62)
Re-document for CRAN
CRAN release: 2021-11-21
Text alignment in code blocks in
rightaligned slides no longer matches the slide text. Instead, the code block width is reduced, if possible, and the block is pushed to the left, center, or right using margins (#68).
The style functions are now more permissive about color names in the
colorargument. Color names should be valid CSS classes that can also be used as CSS variable names, but the
style_function only stops with an error if the color name contains spaces. (@jdlom #69)
CRAN release: 2021-06-24
Set slide number font size in
remso that increasing the font size at the slide level doesn’t result in giant slide numbers (#53).
The xaringanthemer slide skeleton (R Markdown template) will now render when packages that are used in the template but not in xaringanthemer’s Imports are not installed (#52).
CRAN release: 2021-03-04
.pull-right now clears floats just for its immediate sibling
New xaringanthemer presentation skeleton with a kitchen sink of typical slide elements with the goal of making it easier to preview new themes during development.
CRAN release: 2020-05-04
theme_xaringan(), a ggplot2 theme that automatically uses the colors and font styles of your xaringanthemer style. Also adds
scale_xaringan_continuous()functions that use your slides’ primary colors for the color or fill aesthetics. These theme functions can recover the primary colors used in a xaringanthemer (>= 0.3.0) CSS file even if you don’t call the style function directly in your slides.
Renamed all xaringanthemer functions that create CSS styles to use the prefix “
style_”. For example,
style_extra_css(). Overall, this change makes the xarignanthemer API much cleaner and easier to navigate. Previous function names are deprecated but still work.
background_header_autoparameter that adds a background under the first
# Slide Title) on a slide. When enabled, the background is added automatically to slides, as long as they aren’t
bottom-styled slides. When disabled, you can still enable slide title headers by adding the
header_backgroundclass to a slide. (thanks, @Btibert3, #10)
The underlying template now uses the
xaringanthemer styles now use CSS variables throughout. Most of the settings used in defining a style are stored in CSS variables. The variable names are documented in their corresponding arguments. For example, the color selected for
background_coloris stored in the variable
--background-color. These variables can be used in custom CSS rules or in other arguments in any style functions, for example as
xaringanthemer now uses a different set of default fonts for heading and body fonts. The new defaults use Cabin for headings and Noto Sans for body text. These fonts are easier to read on screens and at a distance during presentations, and they support a wide variety of languages and weights. Another reason for the change is that the xaringan (remarkjs) default body font, Droid Serif, is no longer officially included in Google Fonts.
Additional colors can be provided in the
colorsargument, which takes a named vector of colors. The names become both CSS classes and CSS variables that can be used throughout your slide styles. For example,
colors = c(red = "#d34213")creates a
.redCSS class for red foreground text, a
.bg-redCSS class for a red background, and a
--redCSS variable that can be referenced as
_colorargument of your style function.
css-helpvignette was removed and may be re-written in the future.
Style function arguments that accept CSS property values are now documented in the argument documentation, including a link to the MDN web docs page for the CSS property or value (#33, thanks @TrashBirdEcology #18).
Style functions return the CSS text directly when
outfile = NULL.