Shared CSS/Script or Theme for new Widgets

Ricky T
Tera Contributor

I want to update all my newly created widgets to have the same custom CSS. Is there some sort of way to see consistent display of tabular data for my widgets created? Do I need to create a new theme or do something else?

1 ACCEPTED SOLUTION

Barrilito van D
Kilo Guru

Hi, Best approach is to think good about which pages you want this to apply to.

In general create a portal, that portal gets a theme, and in the them you can attach several css.

In your widgets you should think well about class names etc so that styling can be picked up by either the widget's css and/or the css in the themes.

Just look at the out of the box themes and pages to see how that works.

 

If you think my answer put you in the right direction or you appreciated my effort, please mark the response as Helpful or mark my response as Correct.
Thanks in advance! Good luck!

View solution in original post

2 REPLIES 2

Barrilito van D
Kilo Guru

Hi, Best approach is to think good about which pages you want this to apply to.

In general create a portal, that portal gets a theme, and in the them you can attach several css.

In your widgets you should think well about class names etc so that styling can be picked up by either the widget's css and/or the css in the themes.

Just look at the out of the box themes and pages to see how that works.

 

If you think my answer put you in the right direction or you appreciated my effort, please mark the response as Helpful or mark my response as Correct.
Thanks in advance! Good luck!

Thank you!