Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] Single class detection not working in Gleam without whitespace #15632

Open
okkdev opened this issue Jan 15, 2025 · 1 comment
Open

[v4] Single class detection not working in Gleam without whitespace #15632

okkdev opened this issue Jan 15, 2025 · 1 comment

Comments

@okkdev
Copy link

okkdev commented Jan 15, 2025

What version of Tailwind CSS are you using?

v4.0.0-beta.9

What build tool (or framework if it abstracts the build tool) are you using?

Vite v6.0.7

What version of Node.js are you using?

v23.2.0

What browser are you using?

Arc (Chromium)

What operating system are you using?

macOS

Reproduction URL

Describe your issue

Tailwind doesn't detect the class inside this list [class("bg-red-200")] at https://github.com/okkdev/tailwindcss4-class-detection-bug-repro/blob/main/src/main.gleam#L33

It only works if there is a whitespace somewhere inside of the square braces.
As shown here: https://github.com/okkdev/tailwindcss4-class-detection-bug-repro/blob/main/src/main.gleam#L35
and here: https://github.com/okkdev/tailwindcss4-class-detection-bug-repro/blob/main/src/main.gleam#L38

It would be awesome if there was a way to customize the detection to support more languages like Gleam, instead of having to rely on the automatic detection.

@diana85pope

This comment has been minimized.

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

No branches or pull requests

2 participants