--- title: 'Theme Lab: Tune Family, Preset, and Rhythm' name: theme-lab description: Interactive controls for palette family, preset, style intensity, and content width. output: rmarkdown::html_vignette: toc: true toc_depth: 2 params: family: red preset: study base_size: 13 content_width: 80 style: minimal vignette: | %\VignetteIndexEntry{Theme Lab: Tune Family, Preset, and Rhythm} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} css: albers.css resource_files: - albers.css - albers.js includes: in_header: |- --- ```{r setup, include=FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.align = "center", fig.retina = 2, out.width = "100%", fig.width = 7, fig.asp = 0.618, message = FALSE, warning = FALSE ) library(ggplot2) if (requireNamespace("ggplot2", quietly = TRUE) && requireNamespace("albersdown", quietly = TRUE)) { ggplot2::theme_set(albersdown::theme_albers( family = params$family, preset = params$preset, base_size = params$base_size )) } ``` ```{r albers-family, echo=FALSE, results='asis'} cat(sprintf('', params$family)) ``` ```{r albers-preset, echo=FALSE, results='asis'} cat(sprintf('', params$preset)) ``` ```{r albers-style, echo=FALSE, results='asis'} cat(sprintf('', params$style, params$style)) cat(sprintf('', params$content_width)) ``` ## What Is This Page For? Use this page to choose a visual direction before you retrofit or create vignettes. You can tune one parameter at a time and immediately see the effect on hierarchy, contrast, and page rhythm.
family=red | preset=study | style=minimal | width=80ch