-
Notifications
You must be signed in to change notification settings - Fork 55
Upgrade to Tailwind CSS 4.1 #955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Updated package.json to use Tailwind CSS 4.1 - Removed PostCSS dependencies (no longer needed) - Converted style.pcss to use Tailwind 4 CSS-based configuration - Converted all // comments to /* */ format in PCSS files - Updated RoboFile.php to use Tailwind CLI instead of PostCSS - Removed postcss.config.js and tailwind.config.js (not needed in TW4) Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
- Renamed src/pcss directory to src/css - Renamed all .pcss files to .css files - Updated imports in style.css to reference .css files - Updated RoboFile.php to use new css directory path Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
- Added @tailwindcss/cli package for Tailwind CLI binary - Fixed @import paths to use relative paths (./filename.css) - Fixed --max-width-8xl theme variable naming - Fixed user.css to directly apply utilities instead of custom class - Successfully tested CSS compilation with Tailwind 4.1.18 - Verified both normal and minified builds work correctly Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
- Document why container-wide utilities are inlined in user.css (TW4 limitation) - Document custom breakpoints match Drupal breakpoint configuration - Verified build still works after comment additions Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
|
@copilot Looking at this element I see that |
The previous @theme configuration was overriding default colors and breakpoints. In Tailwind 4, @theme should only define extensions, not replacements. Removed custom breakpoint and font-family definitions from @theme block, keeping only the actual custom extensions (max-width-8xl and text-underline-offset-6). This ensures all default Tailwind utilities like bg-gray-50, bg-gray-200, etc. are generated in the compiled CSS. Fixes missing background color utilities reported in review. Co-authored-by: amitaibu <125707+amitaibu@users.noreply.github.com>
... Fixed in a63587d. The issue was that the @theme configuration was overriding default Tailwind colors and breakpoints instead of extending them. In Tailwind 4, @theme should only define custom extensions, not replace defaults. Removed the font-family and breakpoint definitions from @theme, keeping only the actual custom properties (max-width-8xl and text-underline-offset-6). All default color utilities including bg-gray-50 and bg-gray-200 are now generated correctly. |
|
@copilot I'm seeing the background colors defined, but they are struck out
The issue is that normalize overrides it
|
|
The menu is still off
@balagan73 let's give it a 3h TB to try and fix, and do some QA, to find changes between this PR and the version on |






Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.