Skip to content

feat: add live theme editor support #2

Merged
yinxulai merged 8 commits into
mainfrom
theme-editor
Jun 22, 2026
Merged

feat: add live theme editor support #2
yinxulai merged 8 commits into
mainfrom
theme-editor

Conversation

@yinxulai

Copy link
Copy Markdown
Contributor

No description provided.

yinxulai added 8 commits June 22, 2026 16:02
- 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.
- 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.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@yinxulai yinxulai merged commit de2384c into main Jun 22, 2026
5 checks passed
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