openpencil/packages/core
Danila Poyarkov 46355bb221 Resolve variable-bound fill colors through alias chains
When kiwi paints have colorVar with a variable alias, resolve the
color through the variable's valuesByMode instead of using the stale
paint.color fallback. This fixes fills that reference design tokens
(Tokens → Primitives alias chain) where the paint.color contains
the library's published value but the local variable resolves to
a different color.

Build a variable color resolver from VARIABLE NCs during import,
walk alias chains through default mode values, and use the resolved
color in convertFills/convertStrokes.

Fixes Indicator, Link, Placeholder, and other variable-bound fill
colors in Preline UI and similar files with design token systems.
2026-03-14 17:25:52 +03:00
..
src Resolve variable-bound fill colors through alias chains 2026-03-14 17:25:52 +03:00
package.json Address PR #94 review: dedup, replace hand-rolled code, cleanup 2026-03-13 14:46:18 +03:00
tsconfig.json Fix core tsconfig: add ESNext and DOM libs for npm publish 2026-03-04 01:58:37 +03:00