Skip to content

transforms: support bare-integer translate-N utilities#166

Merged
samoht merged 1 commit into
mainfrom
translate-spacing
Jul 26, 2026
Merged

transforms: support bare-integer translate-N utilities#166
samoht merged 1 commit into
mainfrom
translate-spacing

Conversation

@samoht

@samoht samoht commented Jul 26, 2026

Copy link
Copy Markdown
Owner

The both-axis translate-2, -translate-4, ... classes were unknown classes; only the per-axis translate-x-N / translate-y-N forms parsed. They now set both --tw-translate-x and --tw-translate-y to calc(var(--spacing) * n), matching Tailwind.

The combined-translate suborder band is widened so positive integers keep magnitude order (lexical order would put translate-8 after translate-45) and translate-px sorts before translate-none.

translate-N and -translate-N set both axes to calc(var(--spacing) * n);
only the per-axis translate-x-N / translate-y-N parsed before. Widen the
combined-translate suborder band so positive integers keep magnitude order
and translate-px sorts before translate-none, matching Tailwind.
@samoht
samoht merged commit 7075288 into main Jul 26, 2026
2 checks passed
@samoht
samoht deleted the translate-spacing branch July 26, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant