Calculated CSS color
已回答
Hello there!
I'm trying to build my first Intellij plugin which should highlight CSS classes with the calculated color (like what Intellij is doing when editing a CSS file directly).
I did the code to highlight the list of CSS classes in an HTML file, as you can see in the screenshot below, what remains now is to calculate the color of a CSS class.

I think it should be possible since that's what you're currently doing with the autocomplete of CSS classes, as you can see in screenshot below.
Could you please tell me how I could retrieve this calculated value ?
Thank you :)
请先登录再写评论。
`com.intellij.psi.css.impl.util.CssPsiColorUtil#getColor`
Thank you for your answer Yann!
Could you just tell me if there is any kind of documentation about this ?
Not sure what kind of `PsiElement` I need to pass..
Thank you for your help
There is no documentation for CSS plugin, unfortunately. You should try passing the actual PsiElement containing the color literal value definition.