Skip to content

fix(css): reorder platform theme imports after Tailwind#325

Merged
hessius merged 1 commit intoversion/2.4.0from
fix/platform-theme-cascade
Mar 27, 2026
Merged

fix(css): reorder platform theme imports after Tailwind#325
hessius merged 1 commit intoversion/2.4.0from
fix/platform-theme-cascade

Conversation

@hessius
Copy link
Copy Markdown
Owner

@hessius hessius commented Mar 27, 2026

Bug

Platform theme CSS (ios-theme.css, material-theme.css) was imported before index.css (Tailwind) in main.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.css so 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

  • ✅ Build succeeds
  • ✅ 416 frontend tests pass
  • ✅ CSS bundle confirmed: themes now after Tailwind utilities

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>
@hessius hessius merged commit 655aa0b into version/2.4.0 Mar 27, 2026
6 checks passed
@hessius hessius deleted the fix/platform-theme-cascade branch March 27, 2026 07:32
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.

1 participant