Skip to content

Show more relevant intellisense suggestions for border utility #1383

Open
@functasti

Description

@functasti

What version of VS Code are you using?

v1.100.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.19

What version of Tailwind CSS are you using?

v4.1.7

What package manager are you using?

npm

What operating system are you using?

Ubuntu

Describe your issue

When using the border utility, the same utility prefix is used for both border color and border width, for example:

border-amber-50 (color)
border-1 (width)

Currently, when typing something like border-1, intellisense suggests color values like border-red-100, which is likely not what the user intends. It would be more helpful if suggestions related to border-width appeared instead.

Also, for values like border-0 or border-2, the suggestions shown are related to border-style, which is not very relevant in this context. More accurate suggestions showing border-width would improve dx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions