feat(ui): add shadcn foundation with Tailwind CSS and Radix primitives#2243
Open
NianJiuZst wants to merge 2 commits intothe-open-agent:masterfrom
Open
feat(ui): add shadcn foundation with Tailwind CSS and Radix primitives#2243NianJiuZst wants to merge 2 commits intothe-open-agent:masterfrom
NianJiuZst wants to merge 2 commits intothe-open-agent:masterfrom
Conversation
c618fdd to
fb63f00
Compare
05c95ec to
85b2248
Compare
- Add core deps: tailwindcss, postcss, autoprefixer, tailwindcss-animate - Add utility deps: class-variance-authority, clsx, tailwind-merge - Add CRA-compatible PostCSS plugins: postcss-flexbugs-fixes, postcss-preset-env, postcss-normalize, postcss-loader - Inject tailwindcss into CRA PostCSS pipeline via craco.config.js (react-scripts sets postcssOptions explicitly, overriding postcss.config.js) - Create tailwind.config.js with preflight disabled (antd compat) - Create shadcn-vars.css with light/dark CSS variables - Create lib/utils.js (cn helper) - Only foundation deps included; Radix/lucide/react-hook-form etc. will be added per migration phase Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Demonstrate shadcn/antd dual-stack coexistence: - Convert LanguageSelect from class to functional component - Replace antd Dropdown with shadcn DropdownMenu - Replace @ant-design/icons GlobalOutlined with lucide-react Globe - Add @radix-ui/react-dropdown-menu dependency - Import shadcn-vars.css in index.js to activate Tailwind CSS variables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 establishes the Tailwind CSS foundation for the shadcn/ui migration and demonstrates dual-stack coexistence by replacing
LanguageSelect's antdDropdownwith a shadcnDropdownMenu.Two Commits
1. feat(ui): add Tailwind CSS foundation
tailwind.config.jspreflight: false,data-themedark modepostcss.config.jssrc/shadcn-vars.csssrc/lib/utils.jscn()helper (clsx + tailwind-merge)Dependencies:
tailwindcss,postcss,autoprefixer,tailwindcss-animate,class-variance-authority,clsx,tailwind-merge, CRA PostCSS plugins2. feat(ui): replace LanguageSelect with shadcn DropdownMenu
DropdownDropdownMenu@ant-design/iconsGlobalOutlined@ant-design/iconsGlobalOutlined(unchanged)useStateWhy LanguageSelect
Dropdown→ shadcnDropdownMenuTest Plan
yarn buildpassesyarn startcompiles successfullyGenerated with Claude Code