Skip to content

Conversation

@pasevin
Copy link
Collaborator

@pasevin pasevin commented Jan 5, 2026

Summary

Fix missing responsive Tailwind CSS classes (xl:hidden, xl:flex, etc.) in production/staging Docker builds.

Problem

After migrating UI packages to npm, the sidebar layout was broken on staging because Tailwind wasn't generating responsive classes from the @openzeppelin npm packages. The @source directive was correctly pointing to node_modules, but path resolution differed between local development and Docker builds.

Solution

Add explicit source() function to set the Tailwind base path to the monorepo root:

@import 'tailwindcss' source('../../../');

This ensures consistent path resolution in both local dev and Docker builds, allowing the @source directive to correctly scan npm packages for class names.

Testing

  • Verified locally that build output CSS contains xl:block, xl:flex, xl:flex-col, xl:hidden classes
  • Build succeeds without errors

Set the Tailwind base path explicitly using source('../../../') to ensure
consistent path resolution between local development and Docker builds.
This fixes the missing responsive classes (xl:hidden, xl:flex, etc.) in
production builds.
@pasevin pasevin requested a review from a team as a code owner January 5, 2026 11:12
@pasevin pasevin merged commit 78f0c56 into main Jan 5, 2026
11 checks passed
@pasevin pasevin deleted the fix/tailwind-source-path branch January 5, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants