flexmeasures.ui.utils.color_defaults

Functions

flexmeasures.ui.utils.color_defaults.darken_color(hex_color: str, percentage: int) str
flexmeasures.ui.utils.color_defaults.get_color_settings(account: Account | None) dict

This function returns the primary and secondary color settings for the UI.

It also provides variations of the primary and secondary colors, such as border color, hover color, and transparent color.

flexmeasures.ui.utils.color_defaults.lighten_color(hex_color: str, percentage: int) str
flexmeasures.ui.utils.color_defaults.rgba_color(hex_color: str, alpha: float) str