aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/sterling.json
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 18:14:29 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 18:14:29 -0500
commitf2d3c08b02d3b8e9c9ffed7cefadf32d676fa37e (patch)
tree1e8cdb1910ff10d8ed0bf6c7dfe4012bb6ce515a /scripts/theme-studio/sterling.json
parent14cd9743adf3e302c1854fc9a6e79880ea3f2af9 (diff)
downloaddotemacs-f2d3c08b02d3b8e9c9ffed7cefadf32d676fa37e.tar.gz
dotemacs-f2d3c08b02d3b8e9c9ffed7cefadf32d676fa37e.zip
feat(theme-studio): palette generator and preview fidelity
Two strands land together because the generated theme-studio.html bundles every source file into one page and can't be split cleanly. The palette generator is a preview-first panel: palette-generator-core.js plans the palette and palette-generator-ui.js draws it. Generated colors stay inspectable and tunable through the existing selector, and committing one creates a normal base column. It adds source-mode and scheme controls, a configurable accent count, and color names from color-names.json. For preview fidelity, syntax and UI colors now resolve through the real Emacs inherit chains, so the preview matches how Emacs renders the theme. resolveSyntaxFg pins dec to ty (Emacs has no decorator face) and otherwise follows comment-delimiter to comment, doc to string, property to variable, function-call to function-name. resolveUiAttr walks mode-line-inactive to mode-line and line-number-current-line to line-number. The decorator label now reads "decorator to type" to match the type face Emacs uses for it. Design recorded in the two theme-studio specs under docs/.
Diffstat (limited to 'scripts/theme-studio/sterling.json')
0 files changed, 0 insertions, 0 deletions