Skip to content

2. Theme Dictionary

i_82 edited this page May 24, 2018 · 7 revisions

Global

Key Type Description
style style tableView.style
tintColor color tableView.tintColor
backgroundColor color tableView.backgroundColor
separatorColor color color of separators between cells
backgroundImage string relative path of background image
style Description
Grouped UITableViewStyleGrouped
Plain UITableViewStylePlain

Type color, i.e. RGB (RGBA) in hex string, for example, #FF0000 is red.

Header & Footer

Key Type Description
headerTextColor color text color of header
subheaderTextColor color text color of subheader
footerTextColor color color of extra footer text
headerBackgroundColor color background color of header
footerBackgroundColor color background color of footer

Sections

Key Type Description
sectionHeaderTextColor color color of section header title
sectionFooterTextColor color color of section footer title, i.e. footerText
sectionHeaderBackgroundColor color color of section header background
sectionFooterBackgroundColor color color of section footer background

Components

Key Type Description
cellBackgroundColor color cell.backgroundColor
disclosureIndicatorColor color color of disclosure indicator
selectedColor color color of selected cells
highlightedColor color color of highlighted cells
labelColor color cell.textLabel.textColor
valueColor color cell.detailTextLabel.textColor

Navigation Bar

Key Type Description
navigationBarColor color navigationBar.barTintColor
navigationTitleColor color navigationBar.titleTextAttributes[NSForegroundColorAttributeName]

Status

Key Type Description
dangerColor color color of error
warningColor color color of warning
successColor color color of success

Theme dictionary can be set for different cells/headers/footers separately.

Clone this wiki locally