CH6 Open standards and accessibility · 2026 – now
Colour themes for PDF
One PDF that carries its author's own light, dark or higher-contrast themes.
- size for all 8 themes
- +5.0%
- standard themes
- 8
What I did
I built the proof of concept for a proposal to the PDF Association, with a live demo.
Result
A reader that supports themes swaps a small palette instead of inverting the page. Other readers show the page exactly as now.
One file carries every theme its author built. Each theme's colours sit in a small palette.

How it works
Measured
- PDF engines draw each theme like its own build, pixel for pixel: Poppler, MuPDF and PDFium
- 3
- added to a scanned page for all 8 themes, 3.6% of its size
- 4,755 bytes
Who each theme is for
The standard themes
| theme | Text contrast | Who it's for |
|---|---|---|
| Light | 4.5:1 | The author's design. |
| Dark | 4.5:1 | Light sensitivity, glare, reading at night, some low vision. |
| Light, more contrast | 7:1 | Low vision. |
| Dark, more contrast | 7:1 | Low vision with light sensitivity. |
| Cream, Peach, Yellow, Turquoise | 4.5:1 | Many readers with dyslexia or visual stress find a tinted background easier. |
The targets are for body text. Large text may go down to 4.5:1 in the more-contrast themes, or 3:1 in the rest. Each theme's text contrast is measured before it goes in the file.
More detail
Why I built it
PDF readers that offer a dark mode make it up themselves. They invert the page or swap its colours, which spoils charts. Readers who need more contrast or a tinted background get the same treatment. The file has no way to say how it should look in the dark, so I built one. My own CV is a tagged, accessible PDF, so this felt like the next step.
Skills
- accessibility
- open standards
- Typst
Proof
- code Code on GitHub
- document Live demo