Bladeren bron

Document new argument in a few more places

tags/v0.3.0
Garrick Aden-Buie 6 jaren geleden
bovenliggende
commit
b1c45e52fb
4 gewijzigde bestanden met toevoegingen van 22 en 0 verwijderingen
  1. +8
    -0
      NEWS.md
  2. +4
    -0
      README.md
  3. +4
    -0
      man/fragments/_themes.Rmd
  4. +6
    -0
      vignettes/themes.Rmd

+ 8
- 0
NEWS.md Bestand weergeven

@@ -30,6 +30,14 @@
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 `colors` argument, 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 `.red` CSS class for red foreground
text, a `.bg-red` CSS class for a red background, and a `--red` CSS variable
that can be referenced as `var(--red)` in any `_color` argument of your style
function.


## Bugfixes and Improvements

+ 4
- 0
README.md Bestand weergeven

@@ -113,6 +113,10 @@ the final portion of the style function name. For example,
Note that the colors used below are for demonstration only, the point of
the `style_` functions is for you to choose your own color palette\!

If you color palette uses more than two colors, you can add additional
colors with the `colors` argument. See the [Colors](#colors) section for
more information.

### Monotone

Use these functions to automatically create a consistent color palette

+ 4
- 0
man/fragments/_themes.Rmd Bestand weergeven

@@ -14,6 +14,10 @@ For example, `style_mono_accent()` uses a single color as an accent color.
Note that the colors used below are for demonstration only,
the point of the `style_` functions is for you to choose your own color palette!

If you color palette uses more than two colors,
you can add additional colors with the `colors` argument.
See the [Colors](#colors) section for more information.

### Monotone

```{r include=FALSE}

+ 6
- 0
vignettes/themes.Rmd Bestand weergeven

@@ -9,3 +9,9 @@ knitr::opts_chunk$set(results = "asis", echo=FALSE)

```{r child="../man/fragments/_themes.Rmd"}
```


## Colors

```{r child="../man/fragments/_colors.Rmd"}
```

Laden…
Annuleren
Opslaan