Style formats are grouped by the UI element that they define. The same component can have many style formats, and Pega Platform already includes a number of predefined formats that you can use in your application. While the out-of-the-box styles for different UI elements often share generic names, such as Strong, Standard, or Simple, each represents a different format that you must edit separately.
You can decide which formats to add to your skin, and remove the formats that you do not need. Removing or disabling unused formats helps improve performance by optimizing CSS at run time. If your application has many style formats of the same type that vary only slightly, you might also consider using CSS helper classes instead of creating custom style formats. Applying a CSS helper class saves development time, reduces maintenance work, and improves the consistency of the UI.
- Creating style formats
Build reusable styles that define the visual presentation of UI components in your application. By associating style formats with controls and sections, you can quickly adapt the appearance of your UI to the branding requirements of your company, and maintain a consistent, user-friendly interface.
- Styling a layout
Customize the appearance of your interface by attaching style formats to layouts. Layout style formats contain settings that define the look of section elements such as borders, backgrounds, and text. By using out-of-the-box or custom style formats throughout your application, you can create a consistent user interface with less effort.
- Styling a control
Customize an application to match the branding requirements of your business by changing the look of the interactive elements of the user interface. You can modify an application at run time by attaching format styles to individual controls, such as buttons or text fields.
- Removing style formats
Improve the performance of your application by removing style formats that you no longer need. Because the CSS for the application is sourced from the skin rule, you can reduce the CSS file size by removing unused style formats, which then improves load times.
- Finding sections that use a specific format
Predict how the change that you want to introduce to a style affects screens throughout your application by generating a list of all sections styled with a specific format. With this tool, you can quickly identify sections that use the same style format.