feat: Enhance theme management with custom import functionality#223
Merged
felix-schultz merged 1 commit intodevfrom Aug 22, 2025
Merged
feat: Enhance theme management with custom import functionality#223felix-schultz merged 1 commit intodevfrom
felix-schultz merged 1 commit intodevfrom
Conversation
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.
This pull request adds custom theme import functionality to the profile settings page, allowing users to import CSS exports from tweakcn.com and apply them as their theme. It introduces new UI elements for importing, parses the CSS to extract theme variables, and updates the profile state accordingly. Additionally, it improves the theme selection experience and provides clear feedback for custom themes.
Custom Theme Import Feature:
parseTweakcnTheme,toCamel,extractBlock,parseVars) to process tweakcn.com CSS exports and extract light/dark theme variables for use as a custom theme.Theme Selection Improvements:
Codebase and Import Updates:
useDebounceimport and addingButtonandUploadicon. [1] [2] [3] [4]