Repository navigation
Conversation
Ported from the sizematters app's ColorPalettePanel, stripped of its app-specific machinery (react-intl, image-derived palette, localStorage). Drives the theme through useMcu: source color, palette overrides, custom colors, scheme variant and contrast level — debounced so dragging a color input doesn't rebuild the theme every frame. The Flowfield story now uses it in place of its inline palette overlay. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PyTbaYR8iH4e7ehPYpeQgX
ThemePanel now imports useMtb / MtbConfig (the renamed names), and the Flowfield story helpers keep the ThemePanel replacement on top of the rename. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PyTbaYR8iH4e7ehPYpeQgX
This branch has not been deployed
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.
Adds a
ThemePanelcomponent tomaterial-theme-builder/react— a drop-in debug panel (à la Radix Themes'ThemePanel) for tweaking the MCU theme live: source color, per-palette overrides, custom colors, scheme variant and contrast level.ColorPalettePanel, stripped of its app-specific machinery (react-intl, image-derived palette, localStorage cache).<ThemePanel />in place of its ~200-line inline palette overlay.ThemePanelsection.Note: styles are Tailwind classes bundled in the JS — consumers must let their Tailwind scan the package (e.g.
@source "../node_modules/material-theme-builder/dist";), same constraint asExportButton.🤖 Generated with Claude Code
https://claude.ai/code/session_01PyTbaYR8iH4e7ehPYpeQgX