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

Minor tweak in docs

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
14ed1b7dba
2 измененных файлов: 5 добавлений и 10 удалений
  1. +4
    -8
      README.md
  2. +1
    -2
      vignettes/template-variables.md

+ 4
- 8
README.md Просмотреть файл

**xaringanthemer** is <kbd>Tab</kbd> friendly – [use autocomplete to **xaringanthemer** is <kbd>Tab</kbd> friendly – [use autocomplete to
explore](#theme-settings) the [template explore](#theme-settings) the [template
variables](vignettes/template-variables.md) that you can adjust in each variables](vignettes/template-variables.md) that you can adjust in each
of the
themes\!
of the themes\!


<img src="vignettes/images/example-rstudio-completion.gif" width="100%" /> <img src="vignettes/images/example-rstudio-completion.gif" width="100%" />


### R Markdown Template in RStudio ### R Markdown Template in RStudio


You can also skip the above and just create a *Ninja Themed You can also skip the above and just create a *Ninja Themed
Presentation* from the New R Markdown Document menu in
RStudio.
Presentation* from the New R Markdown Document menu in RStudio.


<center> <center>


#### `style_mono_accent_inverse()` #### `style_mono_accent_inverse()`


An “inverted” default xaringan theme with a single color used for color An “inverted” default xaringan theme with a single color used for color
accents on select elements (headers, bold text,
etc.).
accents on select elements (headers, bold text, etc.).


``` r ``` r
style_mono_accent_inverse(base_color = "#3C989E") style_mono_accent_inverse(base_color = "#3C989E")


#### `style_duo_accent_inverse()` #### `style_duo_accent_inverse()`


An “inverted” default Xaringan theme with two accent
colors.
An “inverted” default Xaringan theme with two accent colors.


``` r ``` r
style_duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493") style_duo_accent_inverse(primary_color = "#006747", secondary_color = "#CFC493")

+ 1
- 2
vignettes/template-variables.md Просмотреть файл

with any theme function you can override the theme by directly setting with any theme function you can override the theme by directly setting
the arguments below when calling the theme function. For example, to use 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()` with a different slide background color, you can call
`mono_accent(background_color =
"#abc123")`.
`mono_accent(background_color = "#abc123")`.


| variable | default | element | description | | variable | default | element | description |
| :-------------------------------------- | :------------------------------------------------------------------------------ | :------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | :-------------------------------------- | :------------------------------------------------------------------------------ | :------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

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