Skip to content

feat: color themes#863

Draft
david-christiansen wants to merge 35 commits into
mainfrom
themes
Draft

feat: color themes#863
david-christiansen wants to merge 35 commits into
mainfrom
themes

Conversation

@david-christiansen

@david-christiansen david-christiansen commented May 29, 2026

Copy link
Copy Markdown
Collaborator

This PR is in-progress work on a color theme system for Verso, especially the manual.

Steps:

  • Color datatype
  • Basic a11y properties for colors
  • Fonts as Lean values
  • Code themes, that assign the various code-rendering CSS variables
  • Themes for the manual genre that build on code themes (selectable at build time)
  • User-selectable themes for the manual genre that are responsive to light/dark mode requests
  • Proper docs

Adds a color datatype to Verso, as the basis for a theme feature.
Implements the color mathematics needed for automatic color theme
accessibility checking (in particular, contrast and difference under
colorlindness simulation).
Adds the core logic for accessibility calculations.
Adds a representation of fonts for use in themes.
Adds a first-class Lean representation of themes for rendered Lean code.
Extends code themes to TeX output
Instead of custom CSS, themes are now represented as Lean values that
can be imported as libraries and selected by authors.
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Preview for this PR is ready! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant