Skip to main content

Theme

Set a theme dictionary at the root level to configure unified styles for the page. All components and sub-pages inherit every field from the root theme dictionary.

If you need to style a component individually, set a theme dictionary inside that component. Fields inside a component-level theme override the same keys from the root theme during a merge. Different components may have their own theme keys; see each component’s Theme table.

If a component links to a non-XUI sub-page (e.g. Option/MultipleOption/OrderedOption/EditableList), the sub-page uses the component’s theme. If a component links to another XUI sub-page (e.g. Link), the sub-page can set its own theme, which will be merged with its parent page’s theme.

XUI-Dark.png

Page

KeyTypeDescription
styleStylePage style
tintColorColorForeground color
backgroundColorColorBackground color
separatorColorColorSeparator color between cells
backgroundImagestringRelative path to background image

Navigation Bar

KeyTypeDescription
navigationBarColorColorNavigation bar background color
navigationTitleColorColorNavigation title color

Header & Footer

KeyTypeDescription
headerTextColorColorheader text color
subheaderTextColorColorsubheader text color
footerTextColorColorFooter text color
headerBackgroundColorColorheader background color
footerBackgroundColorColorFooter background color

Common Cells

KeyTypeDescription
cellBackgroundColorColorCell background color
disclosureIndicatorColorColorDisclosure indicator color
selectedColorColorSelected color
highlightedColorColorHighlighted color
labelColorColorTitle text color
valueColorColorValue text color

Status

KeyTypeDescription
dangerColorColorError color
warningColorColorWarning color
successColorColorSuccess color

Styles

styleDescription
GroupedGrouped style (default)
PlainPlain list style

Type Color is a hex RGB/RGBA string beginning with #, e.g. #FF0000 is red.