PR: upgrade tailwind from v3 to v4 - #152
Merged
Merged
Conversation
Replace JS config with CSS-based @theme in src/style.css, switch to @tailwindcss/postcss and @tailwindcss/cli, remove autoprefixer and postcss-nesting, and delete tailwind.config.cjs.
Add BORDER_COLOR_SOLID_MAP and BORDER_COLOR_OUTLINE_MAP with baked-in opacity modifiers for Alert, and migrate bg-opacity/border-opacity usage in Checkbox, Drawer, and Popover to the v4 color/opacity syntax.
Relocate Accordion, Button, HorizontalNavigator, PinInput, and Radio stories to match the existing stories directory structure. Update imports and remove the now-unused src/components stories glob from Storybook config.
Replace React.lazy() with direct imports for HorizontalNavigator and VerticalNavigator to avoid Suspense boundary errors during SSR in React 19 / Next.js 16. Also update README with Tailwind v4 setup.
Center-justify tab labels and replace fixed-width icon container with inline-flex so empty icons don't reserve space and shift text off-center.
Shadows are not customizable across different color themes, so all shadow-* classes are removed to keep components flat.
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
Contributor
Author
Chaya UI — Upgrade Changelog (beta.87 → beta.90)Major version bumps
Added
Removed
Key changes
|
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
@theme, switched to@tailwindcss/postcssand@tailwindcss/cli, deletedtailwind.config.cjsborder-opacity-*andbg-opacity-*utilities with v4'scolor/opacitymodifier syntax#e5e7eb) since v4 changed the default tocurrentColoroutline-*utilities rendering visible outlines in v4src/components/tostories/components/<ArgTypes />in component MDX docsBreaking Changes
tailwind.config.cjsfor theme extension will need to migrate to CSS-based configtailwind-theme.jsis still bundled in dist for consumer use