Skip to content

Support for light-dark() colors  #940

Closed
@smhmd

Description

@smhmd

What version of VS Code are you using?

Version: 1.87.2

What version of Tailwind CSS IntelliSense are you using?

v0.11.60 (pre-release)

What version of Tailwind CSS are you using?

4.0.0-alpha.10

What package manager are you using?

pnpm

What operating system are you using?

macOS

Tailwind config

@import 'tailwindcss';

:root {
  color-scheme: light dark;
}

@theme {
  --color-*: initial;
  
  --text-color-brand-primary: light-dark(white, black);
  --text-color-brand-secondary: blue;
}

VS Code settings

n/a

Reproduction URL

Please, insist if needed and I'll create one 🙏🏼 , otherwise, I think the description is self explanatory

Describe your issue

When using light-dark() CSS function (MDN), the intellisense loses its color. I think adding both colors makes some sense.

image

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