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 css variables/custom properties #675

Open
robbevp opened this issue Jan 26, 2022 · 1 comment
Open

Support css variables/custom properties #675

robbevp opened this issue Jan 26, 2022 · 1 comment

Comments

@robbevp
Copy link
Contributor

robbevp commented Jan 26, 2022

Hi there 👋

It would be great if emmet had built in support for custom properties / css variables.
I'm imagining something like c:v expanding to color: var(${1}), fz:v expanding to font-size: var(${1}) and so forth

I know I could add this in my own snippets.json, but AFAIK that would require me to add this for all css properties where I'd want to use this.

I'd be happy to give this a try - but currently wouldn't know where to start

@marblewraith
Copy link

In theory this should already be possible, see css.keywordAliases / css.keywords.

The problem is VScode, arguably the most popular implementation of emmet, doesn't support these features.

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