ColorsThemeProtocol
public protocol ColorsThemeProtocol
A container of pre-defined colors to be used in SearchUI
Important
This is a Public Preview API. It may be changed or removed at any time.-
A color to define background of the views
Declaration
Swift
var background: StyledColor { get set }
-
A color defined from “Hero” color palette
Declaration
Swift
var hero: StyledColor { get set }
-
A light color defined from “Hero” color palette
Declaration
Swift
var heroLight: StyledColor { get set }
-
A background color for the
primary
-based labelsDeclaration
Swift
var normal: StyledColor { get set }
-
A color to use for disabled state
Note
for example when a button is disabledDeclaration
Swift
var disabled: StyledColor { get set }
-
A color that suppose to highlight UI elements
Declaration
Swift
var highlight: StyledColor { get set }
-
The most contrasting color
Declaration
Swift
var primary: StyledColor { get set }
-
A less contrasting color than primary
Declaration
Swift
var secondary: StyledColor { get set }
-
A less contrasting color than secondary
Declaration
Swift
var tertiary: StyledColor { get set }
-
A color to use in separators
Declaration
Swift
var separator: StyledColor { get set }
-
A color that defines
on
stateDeclaration
Swift
var on: StyledColor { get set }
-
A color that defines
off
stateDeclaration
Swift
var off: StyledColor { get set }
-
A color that defines “positive” state
Note
for example to be used in alerts for “accepting” responsesDeclaration
Swift
var positive: StyledColor { get set }
-
A color that defines “negative” state
Note
for example to be used in alerts for “declining” responsesDeclaration
Swift
var negative: StyledColor { get set }
-
A white-black combination of colors
Declaration
Swift
var whiteBlack: StyledColor { get set }
-
A color to use in notifications
Declaration
Swift
var notification: StyledColor { get set }
-
A dimmed version of primary
Note
makes actual primary color more contrasting when used togetherDeclaration
Swift
var dimmedPrimary: StyledColor { get set }