Skip to main content
Oct 6, 2020 12:04 PM UTC
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?

 

Oct 7, 2020 9:27 AM UTC

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

Oct 7, 2020 9:27 AM UTC

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.

 

 

Oct 7, 2020 11:46 AM UTC

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.

Oct 26, 2020 7:52 PM UTC

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