Closed ben-rogerson closed 1 year ago
This PR contains a fix for spacing theme values containing a decimal, like this:
tw`pl-[calc(20px + theme(spacing.2.5))]` // ↓ ↓ ↓ ↓ ↓ ↓ ({ "paddingLeft": "calc(20px + 0.625rem)" });
Previously values like this would return an incorrect value. This made square brackets required to select these type of values:
tw`pl-[calc(20px + theme(spacing[2.5]))]`
Related https://github.com/ben-rogerson/twin.macro/discussions/814
This PR contains a fix for spacing theme values containing a decimal, like this:
Previously values like this would return an incorrect value. This made square brackets required to select these type of values:
Related https://github.com/ben-rogerson/twin.macro/discussions/814