Skip to content

fix: allow Tailwind v4 digit-leading token names#72

Merged
davideast merged 1 commit into
google-labs-code:mainfrom
Bortlesboat:codex/allow-tailwind-digit-token-names
Jun 2, 2026
Merged

fix: allow Tailwind v4 digit-leading token names#72
davideast merged 1 commit into
google-labs-code:mainfrom
Bortlesboat:codex/allow-tailwind-digit-token-names

Conversation

@Bortlesboat
Copy link
Copy Markdown
Contributor

Summary

  • relax the Tailwind v4 token-name validator so names like \2xs\ and \4xl\ can export
  • keep rejecting dotted and space-containing token names
  • update the Tailwind v4 emitter regression test for digit-leading spacing and radius tokens

Fixes #71.

Verification

  • RED: \
    px bun test packages/cli/src/linter/tailwind/v4/handler.test.ts\ failed on the new digit-leading token test before the handler change
  • GREEN: \
    px bun test packages/cli/src/linter/tailwind/v4/handler.test.ts\ -> 9 pass, 0 fail
  • \
    px bun test packages/cli/src/linter/tailwind/v4\ -> 17 pass, 0 fail
  • \git diff --check\

Note

  • \./node_modules/.bin/tsc.exe --project packages/cli/tsconfig.build.json --noEmit\ is blocked locally by dependency declaration errors in \�un-types\ under the transient \
    px bun\ install before reaching this change.

@davideast davideast marked this pull request as ready for review June 2, 2026 02:52
@davideast
Copy link
Copy Markdown
Collaborator

Hey @Bortlesboat! Apologies on the delay. I'm going to give this a review here soon.

@davideast
Copy link
Copy Markdown
Collaborator

@Bortlesboat Thank you so much. Looks good. Clean fix, good test update.

@davideast davideast merged commit 444b982 into google-labs-code:main Jun 2, 2026
4 checks passed
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.

Tailwind v4 css-tailwind export rejects digit-prefix token names that Tailwind v4 itself uses

2 participants