feat: add live theme editor support #2
Merged
Merged
Conversation
- Enabled the theme editor in the configuration by adding `themeEditor: true` to the config. - Updated documentation to include `themeEditor` option in both English and Chinese references. - Modified the config schema to accept `themeEditor` as an optional boolean. - Updated tests to verify the default state of `themeEditor` and its behavior in various configurations. - Implemented the `ThemeEditor` component to allow live editing of theme tokens. - Integrated the theme editor into the app shell, rendering it conditionally based on the `themeEditor` flag. - Added utility functions to manage CSS variables for theme tokens.
- Added `editor` property to the theme configuration in clarify.ts and related documentation. - Removed `themeEditor` property from project configuration and updated related tests and hooks. - Refactored theme handling to accommodate the new `editor` option. - Updated various components to use new icons from lucide-react. - Cleaned up unused icon components and replaced them with lucide-react equivalents.
…removing themeEditor prop from AppShell
- Removed hardcoded dark theme styles from styles.css. - Introduced new CSS variables for layout and sidebar configurations. - Updated ThemeEditor to utilize new theme management functions and added random theme generation. - Refactored theme application logic to improve efficiency and maintainability. - Added new utility functions for handling theme CSS variables and targets. - Improved ThemeRoot and ThemeToggle components for better theme switching experience. - Created randomTheme.ts to facilitate random theme generation with predefined palettes and radius sets.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
clarify-docs | a8943e9 | Commit Preview URL Branch Preview URL |
Jun 22 2026, 01:29 PM |
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.
No description provided.