Skip to content

feat: computed token system and theme-aware createGraph#714

Merged
Yonava merged 63 commits into
mainfrom
yva/theme-resolver
Jun 26, 2026
Merged

feat: computed token system and theme-aware createGraph#714
Yonava merged 63 commits into
mainfrom
yva/theme-resolver

Conversation

@Yonava

@Yonava Yonava commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Introduces a computed token resolver as the foundation for plugin-composed theming. Computed tokens are resolved by walking a state precedence chain (e.g. focus → hovered → default) — each plugin registers detectors per state, and the first non-undefined value wins. This decouples graph state from style values and lets plugins layer theming on top of each other without direct dependencies.

To support this cleanly, the PR reorganizes package boundaries:

graph-core-infra — core types, events, actions, getters
graph-plugins-shared — plugin types, theme controller, computed token resolver, drag state
graph-theme-presets — dark/light/pink presets extracted from graph-plugins
create-graph — new factory that wires plugins + theme presets into a single graph instance

Also removes the plugins/plugins/X path redundancy across graph-plugins.

@Yonava Yonava merged commit bee4ef7 into main Jun 26, 2026
1 check failed
@Yonava Yonava deleted the yva/theme-resolver branch June 26, 2026 18:46
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