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 some classname not suggested. #1048

Closed
michael-land opened this issue Sep 7, 2024 · 1 comment · Fixed by tailwindlabs/tailwindcss#14370
Closed

v4 some classname not suggested. #1048

michael-land opened this issue Sep 7, 2024 · 1 comment · Fixed by tailwindlabs/tailwindcss#14370

Comments

@michael-land
Copy link

What version of VS Code are you using?

For example: v1.92.2

What version of Tailwind CSS IntelliSense are you using?

For example: v0.13.38 (pre-release)

What version of Tailwind CSS are you using?

For example: 4.0.0-alpha.23

What package manager are you using?

For example: pnpm

What operating system are you using?

For example: macOS

Tailwind config

@import 'tailwindcss';

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.

Describe your issue

In Tailwind CSS v4, some border utility classes, such as border-0, border-2, and border-t-0, are not being suggested by IntelliSense, even though they work correctly when applied in the code.

Steps to Reproduce:

Install Tailwind CSS v4 and enable IntelliSense in your development environment.
Try to use utility classes like border-0, border-2, or border-t-0.
Notice that IntelliSense does not suggest these classes.

Expected Behavior:

IntelliSense should suggest all valid utility classes, including border-0, border-2, and border-t-0.

Actual Behavior:

IntelliSense fails to suggest the above classes, though they work correctly when manually added.

CleanShot 2024-09-07 at 11 25 48@2x

CleanShot 2024-09-07 at 11 27 10@2x

@philipp-spiess
Copy link
Contributor

Thanks for the report! Seems like we were missing some of these values. I put up a PR for this in core: tailwindlabs/tailwindcss#14370 This will require an update of tailwindcss to function properly unfortunately.

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 a pull request may close this issue.

2 participants