![]() Note that the variables will be used in the listed order, so if multiple match your entity, the first matching variable (= most specific one) will be used. The color rules can be customized using theme variables: Here is a list of domains that support colors: alarm_control_panel, alert, automation, binary_sensor, calendar, camera, climate, cover, device_tracker, fan, group, humidifier, input_boolean, light, lock, media_player, person, plant, remote, schedule, script, siren, sun, switch, timer, update, and vacuum. Home Assistant has default color rules that fit most use cases. Theses colors are used in dashboards and history. State colorĮach entity has its own color, based on domain, device_class, and state, to be easily recognizable. They can be changed it using primary-color and accent-color variables. ![]() Primary and accent colors are the main colors of the application. ![]() Supported theme variables Primary and accent color If you want to provide hex color values, wrap those in quotation marks, since otherwise, YAML would consider them a comment ( primary-color: "#123456"). For each theme, you can set values for CSS variables. The example above defines two themes named happy and sad. # Example configuration.yaml entry frontend : themes : happy : primary-color : pink accent-color : orange sad : primary-color : steelblue accent-color : darkred
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |