R/Medicine Demo
2026-05-05
Slides
Slides
Accessible
Reach
Legal requirements: Section 508, ADA Title II, Web Accessibility Directive, European Accessibility Act
Technical standards: WCAG 2.0 AA, WCAG 2.1 AA, PDF UA-1
On-brand
Trust
Fonts
Logos
Colors
Tone
Start with 01-demo.qmd
Add brand
Check accessibility
Customize appearance
What about code? Later…
From an external repository:
Quarto: Preview (HTML)
Quarto: Preview Format… (Typst (PDF))
Applies typography, colors, and logo (typst only)
Update? Run quarto use brand again.
_brand.yml
# Arcadonia Health Department brand
# A fictional public-health agency
meta:
name: Arcadonia Health Department
link: https://example.org/arcadonia-health
logo:
images:
seal:
path: images/ahd-seal.svg
alt: Arcadonia Health Department seal
wordmark:
path: images/asr-wordmark.svg
alt: Arcadonia Health Department Arcadonia Surveillance Reports
small: wordmark
medium: wordmark
large: wordmark
color:
palette:
forest: "#1f4d2e"
forest-dark: "#0f2e1a"
forest-light: "#5B9573"
cream: "#f5eee8"
ink: "#1a1a1a"
rust: "#b8511f"
background: cream
foreground: ink
primary: forest
typography:
fonts:
- family: Literata
source: google
weight: [400, 500, 700]
- family: Public Sans
source: google
weight: [400, 700]
base:
family: Public Sans
size: 12pt
headings:
family: Literata
weight: 500
color: primary
link:
color: forest-light
decoration: underline
defaults:
bootstrap:
defaults:
callout-color-note: $brand-forestTo see results in the document:
Tip
Remember to remove axe before publishing!
Uses axe-core to check WCAG 2.0 Level A & AA, WCAG 2.1 Level A & AA & Best Practices
Checks against PDF/UA-1:
Fix upstream in cwickham/arcadonia-brand:
Code in repo: examples/brand-tweaks/
typst-style.typ
Code in repo: examples/brand-tweaks/

Code in repo: examples/partials/
02-with-code.qmd a report with a ggplot2 plot and gt table.
Problem: code outputs don’t automatically use brand fonts or colors.

Access brand in R:
Extract components:
ggplot2
gt
HTML


Authoring in .qmd naturally encourages:
Accessibility checks will catch some problems:
fig-alt)format: htmlA reader reports an issue with a table in your PDF when using VoiceOver in Adobe Acrobat Reader.
The “fix” might live in:
Your code gt knitr Quarto Pandoc Typst Adobe Acrobat Reader VoiceOver
Expect work-arounds for now — and improvement as more people test and report.
pdf-standard also works for pdf:
(But, no brand support for pdf…)