Update more font sizes

This commit is contained in:
Wendelin 2025-04-28 16:58:11 +02:00
parent b36b4d734b
commit 335b876fec
No known key found for this signature in database
12 changed files with 21 additions and 12 deletions

View File

@ -387,7 +387,7 @@ export class HaBaseTimeInput extends LitElement {
--mdc-typography-body2-font-family, --mdc-typography-body2-font-family,
var(--mdc-typography-font-family, Roboto, sans-serif) var(--mdc-typography-font-family, Roboto, sans-serif)
); );
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
line-height: var(--mdc-typography-body2-line-height, 1.25rem); line-height: var(--mdc-typography-body2-line-height, 1.25rem);
font-weight: var( font-weight: var(
--mdc-typography-body2-font-weight, --mdc-typography-body2-font-weight,

View File

@ -69,7 +69,7 @@ export class HaSettingsRow extends LitElement {
var(--mdc-typography-font-family, Roboto, sans-serif) var(--mdc-typography-font-family, Roboto, sans-serif)
); );
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
font-weight: var( font-weight: var(
--mdc-typography-body2-font-weight, --mdc-typography-body2-font-weight,
var(--ha-font-weight-normal) var(--ha-font-weight-normal)

View File

@ -14,7 +14,7 @@ export const configFlowContentStyles = css`
--mdc-typography-headline6-font-family, --mdc-typography-headline6-font-family,
var(--mdc-typography-font-family, Roboto, sans-serif) var(--mdc-typography-font-family, Roboto, sans-serif)
); );
font-size: var(--mdc-typography-headline6-font-size, 1.25rem); font-size: var(--mdc-typography-headline6-font-size, var(--ha-font-size-l));
line-height: var(--mdc-typography-headline6-line-height, 2rem); line-height: var(--mdc-typography-headline6-line-height, 2rem);
font-weight: var( font-weight: var(
--mdc-typography-headline6-font-weight, --mdc-typography-headline6-font-weight,

View File

@ -528,7 +528,10 @@ class OnboardingLocation extends LitElement {
--mdc-typography-caption-font-family, --mdc-typography-caption-font-family,
var(--mdc-typography-font-family, Roboto, sans-serif) var(--mdc-typography-font-family, Roboto, sans-serif)
); );
font-size: var(--mdc-typography-caption-font-size, 0.75rem); font-size: var(
--mdc-typography-caption-font-size,
var(--ha-font-size-xs)
);
font-weight: var( font-weight: var(
--mdc-typography-caption-font-weight, --mdc-typography-caption-font-weight,
var(--ha-font-weight-normal) var(--ha-font-weight-normal)

View File

@ -771,7 +771,10 @@ class AddIntegrationDialog extends LitElement {
margin-inline-end: initial; margin-inline-end: initial;
padding: 24px 24px 0 24px; padding: 24px 24px 0 24px;
color: var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87)); color: var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87));
font-size: var(--mdc-typography-headline6-font-size, 1.25rem); font-size: var(
--mdc-typography-headline6-font-size,
var(--ha-font-size-l)
);
line-height: var(--mdc-typography-headline6-line-height, 2rem); line-height: var(--mdc-typography-headline6-line-height, 2rem);
font-weight: var( font-weight: var(
--mdc-typography-headline6-font-weight, --mdc-typography-headline6-font-weight,

View File

@ -102,7 +102,7 @@ export class AssistPipelineDetailConfig extends LitElement {
} }
p { p {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -139,7 +139,7 @@ export class AssistPipelineDetailConversation extends LitElement {
} }
p { p {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -99,7 +99,7 @@ export class AssistPipelineDetailSTT extends LitElement {
} }
p { p {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -146,7 +146,7 @@ export class AssistPipelineDetailTTS extends LitElement {
} }
p { p {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -153,7 +153,7 @@ export class AssistPipelineDetailWakeWord extends LitElement {
} }
p { p {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--mdc-typography-body2-font-size, 0.875rem); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -440,7 +440,10 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard {
} }
mwc-button.numberkey { mwc-button.numberkey {
--mdc-typography-button-font-size: var(--keypad-font-size, 0.875rem); --mdc-typography-button-font-size: var(
--keypad-font-size,
var(--ha-font-size-s)
);
} }
`; `;
} }

View File

@ -107,7 +107,7 @@ export const haTheme = EditorView.theme({
color: "var(--primary-color)", color: "var(--primary-color)",
fontFamily: fontFamily:
"var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif))", "var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif))",
fontSize: "var(--mdc-typography-button-font-size, 0.875rem)", fontSize: "var(--mdc-typography-button-font-size, var(--ha-font-size-s))",
height: "36px", height: "36px",
fontWeight: fontWeight:
"var(--mdc-typography-button-font-weight, var(--ha-font-weight-semibold))", "var(--mdc-typography-button-font-weight, var(--ha-font-weight-semibold))",