Skip to content

v4 intellisense suggests dot instead of underscore in color names #1184

Closed
tailwindlabs/tailwindcss
#16433
@marce1l

Description

@marce1l

What version of VS Code are you using?

v1.96.2

What version of Tailwind CSS IntelliSense are you using?

v0.14.3

What version of Tailwind CSS are you using?

v4.0.5

What package manager are you using?

npm

What operating system are you using?

Nixos 25.05

Reproduction URL

Paste the follwing code to the css tab at https://play.tailwindcss.com/

@theme {
  --color-text_color: rgba(var(12, 14, 28));
}

Try typing text-text

Image

Describe your issue

When typing text-text the autocompletion suggest text-text.color even though the correct style name is text-text_color. This issue also occurs if the theme color is defined and imported from a tailwind.config.js

For example

export default {
  theme: {
      extend: {
        colors: {
          text_color: "rgba(12, 14, 28)",
        },
      },
    },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions