|
|
|
|
|
|
|
|
```{r setup, include = FALSE} |
|
|
```{r setup, include = FALSE} |
|
|
knitr::opts_chunk$set( |
|
|
knitr::opts_chunk$set( |
|
|
collapse = TRUE, |
|
|
collapse = TRUE, |
|
|
|
|
|
results = "asis", |
|
|
|
|
|
echo = FALSE, |
|
|
comment = "#>", |
|
|
comment = "#>", |
|
|
fig.path = "man/figures/README-", |
|
|
fig.path = "man/figures/README-", |
|
|
out.width = "100%" |
|
|
out.width = "100%" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A light theme based around a single color. |
|
|
A light theme based around a single color. |
|
|
|
|
|
|
|
|
|
|
|
```{r mono_light} |
|
|
|
|
|
demo_function_call <- function(f, n_params = 1) { |
|
|
|
|
|
cat(sep = "", |
|
|
|
|
|
"```r\n", |
|
|
|
|
|
paste(substitute(f)), "(", |
|
|
|
|
|
if (n_params > 0) paste(collapse = ", ", |
|
|
|
|
|
sapply(1:n_params, function(i) { |
|
|
|
|
|
paste0(names(formals(f))[i], ' = "', formals(f)[[i]], '"')})), |
|
|
|
|
|
")\n```" |
|
|
|
|
|
) |
|
|
|
|
|
} |
|
|
|
|
|
demo_function_call(mono_light, 1) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `mono_dark()` |
|
|
#### `mono_dark()` |
|
|
|
|
|
|
|
|
A dark theme based around a single color. |
|
|
A dark theme based around a single color. |
|
|
|
|
|
|
|
|
|
|
|
```{r mono_dark} |
|
|
|
|
|
demo_function_call(mono_dark, 1) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `mono_accent()` |
|
|
#### `mono_accent()` |
|
|
|
|
|
|
|
|
The default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.). |
|
|
The default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.). |
|
|
|
|
|
|
|
|
|
|
|
```{r mono_accent} |
|
|
|
|
|
demo_function_call(mono_accent, 1) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `mono_accent_inverse()` |
|
|
#### `mono_accent_inverse()` |
|
|
|
|
|
|
|
|
An "inverted" default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.). |
|
|
An "inverted" default xaringan theme with a single color used for color accents on select elements (headers, bold text, etc.). |
|
|
|
|
|
|
|
|
|
|
|
```{r mono_accent_inverse} |
|
|
|
|
|
demo_function_call(mono_accent_inverse, 1) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A two-colored theme based on a primary and secondary color. |
|
|
A two-colored theme based on a primary and secondary color. |
|
|
|
|
|
|
|
|
|
|
|
```{r duo} |
|
|
|
|
|
demo_function_call(duo, 2) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `duo_accent()` |
|
|
#### `duo_accent()` |
|
|
|
|
|
|
|
|
The default Xaringan theme with two accent colors. |
|
|
The default Xaringan theme with two accent colors. |
|
|
|
|
|
|
|
|
|
|
|
```{r duo_accent} |
|
|
|
|
|
demo_function_call(duo_accent, 2) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `duo_accent_inverse()` |
|
|
#### `duo_accent_inverse()` |
|
|
|
|
|
|
|
|
An "inverted" default Xaringan theme with two accent colors. |
|
|
An "inverted" default Xaringan theme with two accent colors. |
|
|
|
|
|
|
|
|
|
|
|
```{r duo_accent_inverse} |
|
|
|
|
|
demo_function_call(duo_accent_inverse, 2) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
### Solarized |
|
|
### Solarized |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### `solarized_light()` |
|
|
#### `solarized_light()` |
|
|
|
|
|
|
|
|
|
|
|
```{r solarized_light} |
|
|
|
|
|
demo_function_call(solarized_light, 0) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
#### `solarized_dark()` |
|
|
#### `solarized_dark()` |
|
|
|
|
|
|
|
|
|
|
|
```{r solarized_dark} |
|
|
|
|
|
demo_function_call(solarized_dark, 0) |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
 |
|
|
 |
|
|
|
|
|
|
|
|
|
|
|
|