feat(web): introduce unified appearance package system - #1948
Merged
Conversation
kev1n77
force-pushed
the
fmy/skin-system
branch
5 times, most recently
from
August 2, 2026 09:56
8b88ba8 to
c8141e0
Compare
kev1n77
force-pushed
the
fmy/skin-system
branch
from
August 3, 2026 01:59
c8141e0 to
848da2f
Compare
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.
Summary
Type and Areas
Type:
Feature / refactor / regression fix / UI/UX / test / docs / dependency
Areas:
Rust core, desktop/Tauri, Web UI, Flow Chat, Settings, component library, MiniApp, Canvas, generative widgets, editor integrations, docs, and E2E.
Motivation / Impact
The previous theme implementation was split across multiple runtimes and renderer-specific projections. It relied heavily on implicit CSS-variable behavior, making package validation, custom appearance distribution, cross-surface consistency, and ownership auditing difficult.
This PR introduces one typed Appearance contract and runtime that:
appearance.selection.Users can select built-in appearances, follow the system appearance, and import, export, activate, or delete custom Appearance packages from Settings.
Developers gain a documented extension model and auditable contracts for introducing or styling UI surfaces.
Verification
Passed:
cargo check -p bitfun-desktopcompile_market_source_with_app_data_dir.pnpm run lint:webpnpm run type-check:webpnpm run appearance:contract-auditpnpm run theme:color-audit:allFlowChatTurnRail.test.tsxPermissionRequestPanel.test.tsxChatInputWorkspaceStripLayout.test.tsCopyableTextPreview.test.tsxFlowChatHeader.test.tsxSessionTreePopover.test.tsxpnpm run build:webNot run locally:
Reviewer Notes
Recommended review order follows the nine-commit series:
Architecture details are documented in
docs/architecture/appearance-package-system.md.Compatibility and migration notes:
appearance.selection.themeandthemesconfiguration sections are no longer exported.This work was AI-assisted and has received the local verification listed above.
Screenshots or a short recording should be attached before requesting final UI review.
Checklist