Design Roken refactor#1569
Merged
Douglasymlai merged 6 commits intofeat/eigent-new-designfrom Apr 21, 2026
Merged
Conversation
Moves shared UI under Dashboard/, animate-ui under components/ui/, relocates ThemeProvider and AnimationJson under Layout/, replaces WorkspaceMenu/BottomBar with WorkforceMenu, and introduces themeTokens with semantic Tailwind color tokens. Made-with: Cursor
Migrates component styling to the element/tone/emphasis/state token system and adds a standalone verifier (`npm run verify:theme`) plus vitest coverage that exercises every mode × theme × contrast-grid variant. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- tokens/ -> src/style/tokens/ so all style configuration lives together - ThemeProvider/engine.v2/verifier tests -> test/unit/... to match the project's test layout Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Declare missing contrastPairs for all status/surface/fixed tones so the verifier no longer flags undeclared badge pairs; grouped single-agent and workforce with browser/terminal/document as fixed tones. - Add 'transparent' emphasis variant: renders the tone's main color at per-state opacities (default 10%, hover 30%, selected 70%, disabled 50%). Engine emits rgba and short-circuits the OKLCH pipeline for this branch. - Memoize buildThemeV2 via WeakMap<catalog, Map<contractKey, result>> with per-catalog LRU eviction; large win for live contrast slider edits. - Make unknown-theme fallback explicit via a dev-gated, dedup'd console warning pointing at the resolved fallback id. - Expose getRecommendedContrast() driven by prefers-contrast media queries; use as the initial themeContrast default and surface a "Use recommended" affordance on the Appearance settings slider. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Closes #
Description
Testing Evidence (REQUIRED)
What is the purpose of this pull request?
Contribution Guidelines Acknowledgement