These examples show how to create color palettes and color scales for your custom themes. All properties referenced in the examples below are described in detail in Custom theme JSON properties.
What is being used where?
The color palettes and color scales you define are being used in different places in Qlik Sense.
Sheet title styling
Sheet title styling objects
Object
Colors defined in
Background color
"palettes": {"ui": [0]}
Font color
"palettes": {"ui": [0]}
Properties panel
Properties panel objects
Object
Colors defined in
Auto
"palettes": {"data": [ 0 ]}
That is, the first palette defined in data.
Information noteCharts set to color="auto" uses the primaryColor when only one color is used, for example in one-dimensional bar charts. Charts with more colors uses the first palette defined in data, for example in pie charts or multi-dimensional bar charts.
Single color
"palettes": {"ui": [0]}
by Dimension
"palettes": {"data": [...]}
by Measure
"scales": [{...}]
Master items
Master item objects
Object
Colors defined in
Measure color
"palettes": {"ui": [0]}
Dimension color
"palettes": {"ui": [0]}
Dimension value colors
"palettes": {"ui": [0]}
Storytelling
Storytelling objects
Object
Colors defined in
Shape background color
"palettes": {"ui": [0]}
Defining the color palettes (data, ui)
The colors defined in the data palette are used for Color by dimension in the properties panel.
Though you can define several palettes in ui, the first palette defined here is used in the color picker for example when coloring by single color.
Information noteColors should be defined using hexadecimal values.