Use the Mixins tab to define mixins (reusable style patterns). Mixins can define a reusable typography, border, or background style, or a style that is a combination of these styles. Using mixins helps ensure consistency across your user interface, maximize re-use, and minimize future maintenance.
Mixins enable you to create incremental styling changes which provide a natural cascading of styles. You can reuse mixins in other mixins and component styles. A mixin can inherit styles from other mixins. Components can also inherit styles from mixins. You can reference one or multiple mixins to define the appearance of UI components, such as buttons or links.
You can change mixins at any time. A change to a mixin cascades throughout all elements in the skin that reference the mixin.
You can modify, add, and delete mixins in the following categories:
To create a mixin that is a combination of text, background, or border styling, add a mixin in the Combinations category. You cannot move a mixin to another category. However, you can re-name existing mixins.
The arrow indicates the currently selected mixin.
The Overall Font field, which you use to specify the default font for all mixins in this skin, has been moved to the Base settings tab. As a best practice, use the Overall Font when defining mixins. If you define the presentation of components using mixins that reference the Overall Font, then you can change the font used throughout the skin in a single location.
To modify an existing mixin:
Remove | remove the styles from the element. You can then add styles or inherit styles from another mixin. | |
Inherit from a mixin | remove the style from the element and select another mixin from which to inherit styles for this element. | |
Custom styles | define a style for this element, rather than inherit styles from an existing mixin. |
You can inherit the majority of styles for a mixin from other mixins, and override individual style elements as necessary.
Text | Define text styling for the mixin by inheriting styles from another mixin or specifying styles for the following:
If a text element, such as Font Weight, inherits styles from another mixin, you can override the inherited style by clicking Override. You can then define another style for this text element. To remove a style override and inherit styles from the mixin displayed in the Inherits From field, select Remove override. |
Border | Define border styling for the mixin by inheriting styles from another mixin or specifying styles for the following:
|
Background | Define border styling for the mixin by inheriting styles from another mixin or specifying styles for the following:
|
To preview the mixin in use by the mixins and components that reference it, select a component from the Preview with list on the right. This list displays all the components that reference the selected mixin. After selecting a component in which to preview the mixin, click Details to view a summary of where the mixin is used within the component styles. For example, Mixin text style used in Header>>Expanded Text.
To create a new mixin, click Add. The mixin is populated with default values.
If you want to create a new mixin that:
You cannot delete a mixin if another mixin or component inherits styles from that mixin. Mixins and components that reference the selected mixin display in the Preview with list on the right.
Update elements that reference the mixin you want to delete — the delete option is not available until you remove all references to the selected mixin.
To delete a mixin, select the mixin that you want to delete and then click Remove from skin. On the dialog that displays, click Delete.
To preview the mixin in use by the mixins and components that reference it, select a component from the Preview with list on the right. This list displays all the components that reference the selected mixin.
After selecting a component in which to preview the mixin, click Details to view a summary of where the mixin is used within the component styles.
If you upgraded a skin rule from PRPC Version 5.X through PRPC Version 6.2 SP2, the Standard Active, Standard Inactive, Sub Active, and Sub Inactive mixins are populated with the values from your Quick Create settings.