Skip to content

Safe area classes don't work with custom spacing units such as xs #303

Description

@williamrobertson13

What happened?

Safe area classes don't work with custom spacing units since uniwind.css is generated without --value(--spacing-*). Of course you could just manually add these styles or use the Tailwind safe area plugin, but I believe this should work out of the box.

Working (integer values):
Image

Not working (custom values):

Image

Steps to Reproduce

  1. Pull repo example and run with pnpm web
  2. Observe that safe area classes with custom spacing units don't work:
Image

Snack or Repository Link

https://github.com/williamrobertson13/uniwind-safe-area-repro

Uniwind version

1.2.4

React Native Version

0.81.5

Platforms

Web, iOS, Android

Expo

Yes

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions