Просмотр исходного кода

Update template-variables vignette

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
1e9afb7b8f
1 измененных файлов: 21 добавлений и 3 удалений
  1. +21
    -3
      vignettes/template-variables.Rmd

+ 21
- 3
vignettes/template-variables.Rmd Просмотреть файл

@@ -15,15 +15,33 @@ knitr::opts_chunk$set(
)
```

The following table shows the template variables, their default values in the standard `xaringan` theme, the primary element to which the property is applied, and a brief description of the template variable.
The following table shows the template variables,
their default values in the standard `xaringanthemer` theme,
the primary element to which the property is applied,
and a brief description of the template variable.

For example, `background_color` by default sets the `background-color` CSS property of the `.remark-slide-content` class to `#FFF`.

Use this table to find the template variable you would like to modify.
You can also use this table to find the CSS class or element associated with a particular template item.

Note that themes, like `mono_accent()`, have additional parameters, but with any theme function you can override the theme by directly setting the arguments below when calling the theme function.
For example, to use `mono_accent()` with a different slide background color, you can call `mono_accent(background_color = "#abc123")`.
Note that some theme functions,
like `style_mono_accent()`,
have additional parameters
and a specific set of default values unique to the theme.
However, with any theme function
you can override the theme's defaults
by directly setting any of the arguments listed below
when calling the theme function.

To be concrete,
`style_mono_accent()` has three additional arguments:
`base_color` (the accent color), `white_color`, and `black_color`.
In this theme,
the background slide color defaults to `white_color`,
but you can choose a different slide background color
by setting `background_color`,
for example `background_color = "#EAEAEA"`.

```{r table, results = "asis", echo=FALSE}
template_variables <- xaringanthemer:::template_variables

Загрузка…
Отмена
Сохранить