cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Inherit CSS for multiple themes

Inherit CSS for multiple themes

We need a fast way to inherit CSS code in multiple themes. This is possible by importing a CSS file (@import url("/Thingworx/FileRepositories/...") under the Custom CSS but that effects the loading time of the mashups drastically. With larger amount of CSS and contained-mashups the mashups will be unusable for the end user. We would like a general template that could be overriden by the themes. 

We have tested multiple strategies to import CSS together with PTC support to maintaine the scalabillity with themes to be able to have multiples themes without copy the code between them without any luck. 

5 Comments
fredrik.tell
9-Granite

@olivierlp Please review. 

olivierlp
Community Manager

Thank you for publishing your idea. Starting in Dec 2021, we started a new process intended to guide Community users to provide more information on each idea. Your initial ideas was posted prior to this. However, I'd recommend to adopt this standard. Please see the the form submission process. (Questions below).  

 

1. What version of Thingworx are you currently running?

2. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.

3. What business value would your suggestion represent for your organization?

 

Additionally, I invite you to check out this topic where PTC executives explain product managers' approach to customer ideas and input for product roadmaps. It also includes some remarks from the IoT product manager lead.  

olivierlp
Community Manager
Status changed to: Acknowledged
 
fredrik.tell
9-Granite

As requested, here is the updated information including the questsions. 


1. What version of Thingworx are you currently running?

ThingWorx 9.1.1

 

2. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.

We need a fast way to inherit CSS code in multiple themes. This is possible by importing a CSS file (@import url("/Thingworx/FileRepositories/...") under the Custom CSS but that effects the loading time of the mashups drastically. With larger amount of CSS and contained-mashups the mashups will be unusable for the end user. We would like a general template that could be overriden by the themes. We have tested multiple strategies to import CSS together with PTC support to maintaine the scalabillity with themes to be able to have multiples themes without copy the code between them without any luck. PTC Support forwarded us to this forum because at the time there was no good solution. 

 

3. What business value would your suggestion represent for your organization?

We would be able to re-use CSS code, create themes for dark/light mode or customized themes for our customers.  

olivierlp
Community Manager
Status changed to: Acknowledged

Thank you @fredrik.tell for your idea and the information provided.