Rendering themes is a experimental features that allows a Cockpitdecks developer to provide different sets of default values.
Theme Declaration
cockpit-theme: night
Theme default value is an empty string (no theme).
If a theme is used, its name is prepended to attribute name:
theme-default-label-color: purple
If no such attribute is found, the default-label-color
attribute name is looked up (without the theme-
prepended.)
Theme Usage
When a theme is defined, its name is prepended to some default values.
Default values affected by themes are:
cockpit-color
andcockpit-texture
- All attributes that end with
color
. Exampledefault-color
. - All attributes that end with
texture
. Exampleannunciator-bg-texture
. - All attributes that end with or contain the word
font
. Examplelabel-font
.
theme: light
# Alternate theme is 'dark'
default-label-color: white
dark-default-label-color: coral