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

CSS variables autocompletion not working in svelte files #301

Open
raythurnvoid opened this issue Dec 29, 2024 · 1 comment
Open

CSS variables autocompletion not working in svelte files #301

raythurnvoid opened this issue Dec 29, 2024 · 1 comment
Labels

Comments

@raythurnvoid
Copy link

raythurnvoid commented Dec 29, 2024

image

my variables are in src/lib/styles/variables.css

This is my config

{
	"css.styleSheets": [
		"src/lib/styles/*.css",
		"**/${fileBasenameNoExtension}.css",
		"**/${fileBasenameNoExtension}.svelte"
	],
}

This is an example of the content of the variables.css file
image

@ecmel
Copy link
Owner

ecmel commented Dec 29, 2024

Have you installed the svelte extension? You should also enable svelte in the extension settings and restart vscode:

"css.enabledLanguages": ["html", "typescript", "svelte"],

@ecmel ecmel added the question label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants