From ccaeebf9ac6100e8cb355c5f60acf74c5d9ca3d5 Mon Sep 17 00:00:00 2001 From: Wendelin Date: Tue, 27 May 2025 16:27:30 +0200 Subject: [PATCH] Fix prettier --- src/common/dom/apply_themes_on_element.ts | 4 +++- src/resources/theme/color.globals.ts | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/common/dom/apply_themes_on_element.ts b/src/common/dom/apply_themes_on_element.ts index 0873b3f3e2..6fae2bce39 100644 --- a/src/common/dom/apply_themes_on_element.ts +++ b/src/common/dom/apply_themes_on_element.ts @@ -77,7 +77,9 @@ export const applyThemesOnElement = ( const rgbLightPrimaryColor = lab2rgb(labBrighten(labPrimaryColor)); themeRules["light-primary-color"] = rgb2hex(rgbLightPrimaryColor); themeRules["dark-primary-color"] = lab2hex(labDarken(labPrimaryColor)); - themeRules["darker-primary-color"] = lab2hex(labDarken(labPrimaryColor, 2)); + themeRules["darker-primary-color"] = lab2hex( + labDarken(labPrimaryColor, 2) + ); themeRules["text-primary-color"] = rgbContrast(rgbPrimaryColor, [33, 33, 33]) < 6 ? "#fff" : "#212121"; themeRules["text-light-primary-color"] = diff --git a/src/resources/theme/color.globals.ts b/src/resources/theme/color.globals.ts index 003f28f48c..4a30ef2f2f 100644 --- a/src/resources/theme/color.globals.ts +++ b/src/resources/theme/color.globals.ts @@ -296,9 +296,9 @@ export const colorStyles = css` --ha-button-primary-light-color: var(--light-primary-color); --ha-button-primary-dark-color: var(--dark-primary-color); --ha-button-primary-darker-color: var(--darker-primary-color); - - --ha-button-error-color: #B30532; - --ha-button-error-light-color: #FFDEDC; + + --ha-button-error-color: #b30532; + --ha-button-error-light-color: #ffdedc; --ha-button-error-dark-color: #6e021f; --ha-button-error-darker-color: #530016;