Skip to content

v5 inlineRem config not work #316

Closed

Description

@hdsuperman

Describe the bug
V5 inlineRem config not work

If you have a usage question, please use the Discord or GitHub Discussions instead.

Expected behavior

module.exports = withNativeWind({
  input: "./global.css"
  inlineRem: 16,
});

The font-size is still the default 14px, and adding the :root font-size configuration in global.css does not work either.

Activity

  1. danstepanov commented on Oct 22, 2025

    @danstepanov
    Member

    withNativeWind is not a thing in v5, withNativewind is. Closing this issue as there is no repro.

  2. itsyoboieltr commented on Dec 1, 2025

    @itsyoboieltr

    Here is my solution that you can just copy-paste into your .css file:

    @theme {
      /* base size */
      --rem: 16px;
    
      /* spacing */
      --spacing: calc(var(--rem) / 4);
    
      /* font sizes */
      --text-xs: calc(var(--rem) * 0.75);
      --text-sm: calc(var(--rem) * 0.875);
      --text-base: var(--rem);
      --text-lg: calc(var(--rem) * 1.125);
      --text-xl: calc(var(--rem) * 1.25);
      --text-2xl: calc(var(--rem) * 1.5);
      --text-3xl: calc(var(--rem) * 1.875);
      --text-4xl: calc(var(--rem) * 2.25);
      --text-5xl: calc(var(--rem) * 3);
      --text-6xl: calc(var(--rem) * 3.75);
      --text-7xl: calc(var(--rem) * 4.5);
      --text-8xl: calc(var(--rem) * 6);
      --text-9xl: calc(var(--rem) * 8);
    }
  3. pvinis commented on Dec 9, 2025

    @pvinis

    lets reopen this.

    @danstepanov even with config = withNativewind(config, { inlineRem: 16 }) with the latest preview of v5, this doesnt work.

  4. giorgiofellipe commented on Mar 31, 2026

    @giorgiofellipe

    @danstepanov this is definitely still an issue with v5. Can't quickly change base REM value

  5. moved this to In Progress in Roadmapon Mar 31, 2026
  6. removed
    needs reproductionIssue needs a minimal reproduction before it can be worked on
    on Mar 31, 2026
  7. self-assigned this
    on Mar 31, 2026
  8. danstepanov commented on Mar 31, 2026

    @danstepanov
    Member

    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.

  9. moved this from In Progress to Done in Roadmapon Mar 31, 2026
  10. moved this from Done to Ready for Release in Roadmapon Mar 31, 2026
  11. moved this from Ready for Release to Done in Roadmapon Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions