Refactor UI components to support multiple design themes#4
Open
GeneralJerel wants to merge 2 commits intomainfrom
Open
Refactor UI components to support multiple design themes#4GeneralJerel wants to merge 2 commits intomainfrom
GeneralJerel wants to merge 2 commits intomainfrom
Conversation
Add support for the new shadcn/ui v4 "radix-luma" style alongside the existing "new-york" style, with a runtime toggle in the app header. Architecture: - ui-default/: current "new-york" style components (moved from ui/) - ui-luma/: new "luma" style components (fetched from upstream) - ui/: proxy layer that switches between styles via React context - StyleProvider + useStyle hook for runtime style switching The Luma style features pill-shaped corners (rounded-4xl), filled inputs, soft destructive variants, press animations, and ring-based card borders. https://claude.ai/code/session_01HFKFcR8tEaXjvTVe3XVC3c
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
This PR refactors the UI component library to support multiple design themes (default and luma) through a style context system. Components are now organized into theme-specific directories with a unified interface layer that dynamically selects the appropriate implementation based on the active theme.
Key Changes
ui-default/andui-luma/directories containing theme-specific component implementationsstyle-context.tsxto manage theme selection and provide auseStyle()hook for accessing the active themeui/layerImplementation Details
ui/now useuseStyle()hook to determine which theme implementation to renderFiles Modified
https://claude.ai/code/session_01HFKFcR8tEaXjvTVe3XVC3c