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

allowing to show metadata/jsdocs style comments for css variables #100

Open
anoopsinghbayes opened this issue Jan 25, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@anoopsinghbayes
Copy link

I was looking to see if this kind of feature is possible
right now what we get on hover of the variable is the actual value defined which is neat
what if we could define some meta data in the comments just above the variable to be shown when some hovered over the usage

example

:root{
/***
* @description This is primary color for X Design system
*/
--primary-default:#157eba
}

and is some other css file

.button-primary {
background-color:var(--primary-default);/*when you hover over the variable you see the description defined above*/
}
@phoenisx
Copy link
Contributor

This could be a nice feature. It might need some more thinking, like the user being able to define what @prop they want to look for in the comment as a variable description, etc.

Can you send a PR? I am busy with other personal priorities atm, but I will help you.

@phoenisx phoenisx added the enhancement New feature or request label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants