Patch Changes
This release addresses critical Tailwind CSS v3 compatibility issues and improves theme handling for components with custom styling requirements.
๐ Bug Fixes
Tailwind CSS v3 Compatibility
- #218 1652d02 โ fix(react): removed layers to fix collision with Tailwind 3. Thanks @KayleeWilliams!
- #208 41bfb71 โ fix(react): no style component theme not removing default classes. Thanks @KayleeWilliams!
Key Fixes
- Removed CSS layering wrappers that caused conflicts with Tailwind CSS v3
- Fixed noStyle theme handling to properly exclude default component styles when
noStyle
flag is set - Ensured theme-level
classNames
andstyles
are still applied even withnoStyle: true
๐ง Technical Details
CSS Layer Removal
- Removed
@layer
wrappers from multiple components to prevent Tailwind CSS v3 collisions - This change maintains functionality while ensuring compatibility with modern Tailwind configurations
Enhanced noStyle Theme Support
- Added proper checks for
noStyle
flag in component themes - When
noStyle
is enabled, only theme-level styling is applied - Default component styles are correctly excluded
โ ๏ธ Breaking Changes
Custom Class Priority
With the removal of CSS layers, you may need to add !important
to custom classes for proper specificity:
Or use Tailwind's important prefix:
๐ฏ Use Cases
NoStyle Theme Implementation
Tailwind CSS v3 Compatibility
๐งช Testing
Test Coverage
- โ
Added comprehensive test cases for
noStyle
flag behavior - โ Verified CSS layer removal doesn't break existing functionality
- โ Enhanced test descriptions for clarity
- โ Added coverage for mixed theme formats (strings and objects)
Validation Scenarios
- Theme with noStyle: Ensures only theme-level styles are applied
- Tailwind CSS v3: Confirms no layer conflicts in modern Tailwind setups
- Mixed theme formats: Validates both string and object theme configurations
โจ What's Changed
Published via commit 0d421be by @github-actions
- fix(react): removed layers to fix collision with Tailwind 3 by @KayleeWilliams in #218
- fix(react): no style component theme not removing default classes by @KayleeWilliams in #208
Full Changelog: @c15t/react@1.1.4...@c15t/react@1.1.5
This release ensures seamless Tailwind CSS v3 compatibility while providing more robust theme customization options through improved noStyle
handling.