I am trying to use variables in my CSS3 file, I have used following code
:root{
--nvc-theme: green;
--nvc-themelite: grey;
}
this is the css I am using to declare two variables in my project but when I compile CSS with csslint it is showing error
ERROR: Expected RBRACE at line 17, col 3. This rule looks for recoverable syntax
errors. (errors) Browsers: All
and it is also showing
WARNING: Rule is empty. Rules without any properties specified should be removed.
(empty-rules) Browsers: All
I know this warning because in the root element I have used only variables I didn't declare any css properties just variables so it is showing a warning, but how can I overcome this situation. Any solution helps a lot. Thank you