Version: 2022.1
Style individual inline elements
Styling USS selectors with UI Builder

Creating and managing StyleSheets (USS)

Add a StyleSheet

To add a StyleSheet to the current UI Document (UXML), use the + dropdown menu and select one of the following options:

  1. Create New USS: This opens a Save File Dialog to create a new StyleSheet in your project.
  2. Add Existing USS: This opens the Open File Dialog to add an existing StyleSheet to the UI Document.

You can also right-click anywhere inside the StyleSheets pane tree view to access these option menu.

Remove a StyleSheet

To remove a StyleSheet from the active UI Document, right-click on the StyleSheet and select Remove USS. This requires a full save of all unsaved changes.

A single Active StyleSheet always appears bold. If you create a new USS Selector from the Create new selector… field, it’s added to the Active StyleSheet. To change the Active StyleSheet, right-click on a StyleSheet and select Set as Active USS.

When editing Sub-Documents, the StyleSheets that belong to parent documents appear grayed out. These provide context but are otherwise read-only.

Style individual inline elements
Styling USS selectors with UI Builder