aboutsummaryrefslogtreecommitdiff
path: root/tests/test-all-comp-errors.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-08 02:56:39 -0500
committerCraig Jennings <c@cjennings.net>2026-06-08 02:56:39 -0500
commitf06b93b49c4543cb8dfc3d290d37beeac6653208 (patch)
tree5114313497797dbf3b6e8a4ee133b68a04950a3d /tests/test-all-comp-errors.el
parent13e703902d76e7f3593d046e2b892084a365fe8a (diff)
downloaddotemacs-f06b93b49c4543cb8dfc3d290d37beeac6653208.tar.gz
dotemacs-f06b93b49c4543cb8dfc3d290d37beeac6653208.zip
feat(theme-selector): convert theme.json into a loadable deftheme
build-theme.el is the last link in the theme-selector pipeline: a theme.json export becomes a single self-contained themes/<name>-theme.el. All four tiers convert: default from assignments.bg/.p, the syntax categories to their font-lock/tree-sitter faces with the bold/italic sets applied, UI passthrough, and package faces with :inherit/:height/weight/slant. The output is a flat generated deftheme, not the palette/faces/theme trio the hand-authored dupre ships. A theme.json carries resolved per-face hex, not dupre's semantic-mapping layer, so a flat deftheme is the faithful output and never clobbers the curated dupre files. I omitted the dec (decorator) key: Emacs has no dedicated decorator face and renders decorators with font-lock-type-face, which the type key already owns, so coloring dec independently would clobber types. Decorators follow the type color, as they do in stock Emacs. 20 ERT tests cover the attribute builder, each tier, the dec omission, and an end-to-end convert-and-load with a WCAG-AA assertion on the round-tripped default.
Diffstat (limited to 'tests/test-all-comp-errors.el')
0 files changed, 0 insertions, 0 deletions