diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-19 10:15:14 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-19 10:15:14 -0400 |
| commit | 8d07d04888fff226ff34674c0d0ef100e2fd012e (patch) | |
| tree | 0e9188cde377dd1c8d06ae7503b90d4c84f59af7 /scripts/theme-studio/colormath.js | |
| parent | 0bab392b4e85e6b3a5a9bfa9ae345cb6a254f39a (diff) | |
| download | dotemacs-8d07d04888fff226ff34674c0d0ef100e2fd012e.tar.gz dotemacs-8d07d04888fff226ff34674c0d0ef100e2fd012e.zip | |
refactor(theme-studio): drive the package face model from one attribute table
I replaced the two hand-kept attribute lists in normalizePkgFace and packagesForExport with a single faceAttrs() table. Each row carries the default, whether the value resolves through the palette, and the export rule, so adding a face attribute is one row instead of an edit in two places kept in step by hand.
faceAttrs is a hoisted function, not a const. The inlined page calls normalizePkgFace at top level (seedPkgmap) before the table's source position, where a const would sit in its temporal dead zone.
Diffstat (limited to 'scripts/theme-studio/colormath.js')
0 files changed, 0 insertions, 0 deletions
