Adding New CSS Rules for Custom Widgets

When developing custom widgets, the developer is in complete control of the HTML that is generated for their custom widget and what CSS classes it references. The developer should ensure the CSS is as specific as possible to their widget. The developer must also be aware of how their widget can inherit styling from the Cúram application's default CSS without adding any custom CSS for the widget. The developer has two choices:

Every visual aspect (color, font size, borders, margin padding etc.) for a custom widget should be analyzed and the developer should decide on whether it should be inherited or specific. Also, it is impossible to guarantee there will never be impact on custom CSS, even if it is as specific as possible. As a guideline, it would be expected that with minor service pack releases of the Cúram application, the underlying HTML and CSS will not change drastically. However, a major release of the Cúram application may bring a new user interface and with it major changes to HTML structure and CSS. Even if a custom widget has specific CSS, it may need to be updated to adhere to the Cúram application's new look and feel.