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

Support for light-dark() colors #940

Open
smhmd opened this issue Mar 29, 2024 · 1 comment
Open

Support for light-dark() colors #940

smhmd opened this issue Mar 29, 2024 · 1 comment

Comments

@smhmd
Copy link

smhmd commented Mar 29, 2024

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
@thecrypticace
Copy link
Contributor

VSCode only supports a single color swatch on completions so showing both is not possible. We might be able to show both in the editor but not 100% sure (also not sure if we'd want to). Going to think on this some.

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

No branches or pull requests

2 participants