You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fix is up in #315. The compiler now picks up :root { font-size: 16px } from your CSS and uses it as the rem multiplier at compile time. No metro config option needed. This should cover like 90% of cases.
:root {
font-size:16px;
}
If you were using the @theme variable workaround from earlier in this thread, you can remove it once this lands.
Activity
danstepanov commentedon Oct 22, 2025
withNativeWindis not a thing in v5,withNativewindis. Closing this issue as there is no repro.itsyoboieltr commentedon Dec 1, 2025
Here is my solution that you can just copy-paste into your .css file:
pvinis commentedon Dec 9, 2025
lets reopen this.
@danstepanov even with
config = withNativewind(config, { inlineRem: 16 })with the latest preview of v5, this doesnt work.giorgiofellipe commentedon Mar 31, 2026
@danstepanov this is definitely still an issue with v5. Can't quickly change base REM value
fix: use :root font-size as compile-time rem base
danstepanov commentedon Mar 31, 2026
A fix is up in #315. The compiler now picks up
:root { font-size: 16px }from your CSS and uses it as the rem multiplier at compile time. No metro config option needed. This should cover like 90% of cases.If you were using the
@themevariable workaround from earlier in this thread, you can remove it once this lands.fix: propagate inlineRem and Metro config to compiler (Tailwind v4) (#…