Skip to content

v4 intellisense suggests underscore instead of dot in custom utilities #1328

Closed
tailwindlabs/tailwindcss
#17733
@unional

Description

@unional

What version of VS Code are you using?

v1.98.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.15

What version of Tailwind CSS are you using?

v4.1.0

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind config

@theme static {
  --container-height-3_5: calc(theme(--spacing) * 3.5);
)

@utility container-h-* {
  height: --value(--container-height- *);
}

Reproduction URL

TBD

Describe your issue

On the CSS side, the variable needs avoid .,
thus the CSS variable is --container-height-3_5 instead of --container-height-3.5.

The @utility container-h-* {} generates/detect container-h-3.5 instead of container-h-3_5.

However the intellisense suggests container-h-3_5 which does not work.

My guess this is a regression caused by: #1184

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions