Skip to content

When trying to use negative styles, the version evaluated in production builds is not correct. #57

Description

@mw999

For example with the following code:

const Container = styled.div`
  ${tw`-m-4`}
`

This would evaluate in development development to this:

"marginTop": "-" + _tailwind32.default.negativeMargin["4"]

However in production, it created

"marginTop": "\"-\"+1rem"

Here is chrome not liking the built style in prod

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions