Skip to main content
1-Visitor
Solved

Not able to define Native Variables in Custom CSS

I want to define my Custom CSS for the widgets but, unable to define the native variables in the ThingWorx Custom CSS. Can anyone let me know how this can be achieved in thingworx platform?

 

5-Regular Member

Hello @ @salmandandekar_338811 ,

 

Have you tried using CSS generator tool to develop custom css for widgets, you can find more information in the following article.

There is a guide to Add Style to Your UI with CSS that might be of help as well.

 

 

3 replies

5-Regular Member

Hello @ @salmandandekar_338811 ,

 

Have you tried using CSS generator tool to develop custom css for widgets, you can find more information in the following article.

There is a guide to Add Style to Your UI with CSS that might be of help as well.

 

 

Translate
19-Tanzanite

Have you tried disabling the CSS Linting?

I believe the internal CSSLint component that validates the CSS queries does not support CSS variables, and as such, I disable only in this case.

Translate
Support

Hi @salmandandekar_310994.

 

If you found a solution to this post with the help of one of the previous responses, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Translate