fix(css): reorder platform theme imports after Tailwind#325
Merged
hessius merged 1 commit intoversion/2.4.0from Mar 27, 2026
Merged
fix(css): reorder platform theme imports after Tailwind#325hessius merged 1 commit intoversion/2.4.0from
hessius merged 1 commit intoversion/2.4.0from
Conversation
Platform theme CSS (ios-theme.css, material-theme.css) was imported BEFORE index.css (which loads Tailwind). This caused Tailwind utility classes to override theme rules in the CSS cascade since they appeared later in the bundle. Move platform theme imports after index.css so they load last and properly override Tailwind utilities. Verified in production build: themes now appear at char 542K-544K, after utilities at 72K-88K. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Mar 27, 2026
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.
Bug
Platform theme CSS (ios-theme.css, material-theme.css) was imported before
index.css(Tailwind) inmain.tsx. This caused Tailwind utility classes to appear later in the CSS bundle, overriding theme rules in the cascade. Result: themes appeared very subtle/invisible.Fix
Move platform theme imports after
index.cssso they load last and properly override Tailwind utilities.Before: themes at char ~2K, Tailwind at ~72K (Tailwind wins)
After: Tailwind at ~72K, themes at ~542K (themes win)
Verification