Compare commits

...

7 Commits

Author SHA1 Message Date
Wendelin
cea80d9830 Fix more font sizes 2025-04-28 17:44:21 +02:00
Wendelin
fd279ea2b4 Update line-height 2025-04-28 17:33:26 +02:00
Wendelin
335b876fec Update more font sizes 2025-04-28 16:58:11 +02:00
Wendelin
b36b4d734b Update font-weight 2025-04-28 16:55:39 +02:00
Wendelin
514b6568e5 Update rem to use vars 2025-04-28 16:40:09 +02:00
Wendelin
4750a59719 Merge branch 'dev' of github.com:home-assistant/frontend into update-typography 2025-04-28 16:25:33 +02:00
Wendelin
404d6c75b5 Update font-size 2025-04-28 14:58:22 +02:00
266 changed files with 724 additions and 711 deletions

View File

@@ -302,7 +302,7 @@ export class HcConnect extends LitElement {
} }
.error { .error {
color: red; color: red;
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.error a { .error a {

View File

@@ -86,9 +86,9 @@ class HcLayout extends LitElement {
.card-header { .card-header {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 32px; line-height: var(--ha-line-height-normal);
padding: 24px 16px 16px; padding: 24px 16px 16px;
display: block; display: block;
margin: 0; margin: 0;
@@ -98,7 +98,7 @@ class HcLayout extends LitElement {
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
} }
.subtitle { .subtitle {
font-size: 14px; font-size: var(--ha-font-size-m);
color: var(--secondary-text-color); color: var(--secondary-text-color);
line-height: initial; line-height: initial;
} }
@@ -113,7 +113,7 @@ class HcLayout extends LitElement {
} }
:host ::slotted(.section-header) { :host ::slotted(.section-header) {
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
padding: 4px 16px; padding: 4px 16px;
text-transform: uppercase; text-transform: uppercase;
} }
@@ -135,7 +135,7 @@ class HcLayout extends LitElement {
.footer { .footer {
text-align: center; text-align: center;
font-size: 12px; font-size: var(--ha-font-size-s);
padding: 8px 0 24px; padding: 8px 0 24px;
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }

View File

@@ -29,7 +29,7 @@ class HcLaunchScreen extends LitElement {
display: block; display: block;
height: 100vh; height: 100vh;
background-color: #f2f4f9; background-color: #f2f4f9;
font-size: 24px; font-size: var(--ha-font-size-2xl);
} }
.container { .container {
display: flex; display: flex;

View File

@@ -50,7 +50,7 @@
font-family: Roboto, Noto, sans-serif; font-family: Roboto, Noto, sans-serif;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
height: 100vh; height: 100vh;
margin: 0; margin: 0;
padding: 0; padding: 0;

View File

@@ -37,13 +37,13 @@ class PageDescription extends HaMarkdown {
border-bottom: 1px solid var(--secondary-background-color); border-bottom: 1px solid var(--secondary-background-color);
} }
.title { .title {
font-size: 42px; font-size: var(--ha-font-size-5xl);
line-height: 56px; line-height: var(--ha-line-height-normal);
padding-bottom: 8px; padding-bottom: 8px;
} }
.subtitle { .subtitle {
font-size: 18px; font-size: var(--ha-font-size-l);
line-height: 24px; line-height: var(--ha-line-height-normal);
} }
.root { .root {
max-width: 800px; max-width: 800px;

View File

@@ -34,7 +34,7 @@ class HaDemoOptions extends LitElement {
height: 64px; height: 64px;
padding: 0 16px; padding: 0 16px;
pointer-events: none; pointer-events: none;
font-size: 20px; font-size: var(--ha-font-size-xl);
} }
`, `,
]; ];

View File

@@ -250,14 +250,14 @@ class HaGallery extends LitElement {
} }
.page-footer .header { .page-footer .header {
font-size: 16px; font-size: var(--ha-font-size-l);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
line-height: 28px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
} }
.page-footer .secondary { .page-footer .secondary {
line-height: 23px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
} }

View File

@@ -150,7 +150,7 @@ export class DemoHaBarButton extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
--control-button-icon-color: var(--primary-color); --control-button-icon-color: var(--primary-color);

View File

@@ -86,7 +86,7 @@ export class DemoHarControlNumberButtons extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
color: #2196f3; color: #2196f3;

View File

@@ -125,7 +125,7 @@ export class DemoHaControlSelectMenu extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
--control-button-icon-color: var(--primary-color); --control-button-icon-color: var(--primary-color);

View File

@@ -181,7 +181,7 @@ export class DemoHaControlSelect extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
--mdc-icon-size: 24px; --mdc-icon-size: 24px;

View File

@@ -144,7 +144,7 @@ export class DemoHaBarSlider extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
--control-slider-color: #ffcf4c; --control-slider-color: #ffcf4c;

View File

@@ -112,7 +112,7 @@ export class DemoHaControlSwitch extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
} }
.custom { .custom {
--control-switch-on-color: var(--green-color); --control-switch-on-color: var(--green-color);

View File

@@ -105,8 +105,8 @@ export class DemoHaHsColorPicker extends LitElement {
width: 400px; width: 400px;
} }
.value { .value {
font-size: 22px; font-size: var(--ha-font-size-2xl);
font-weight: bold; font-weight: var(--ha-font-weight-bold);
margin: 0 0 12px 0; margin: 0 0 12px 0;
} }
`; `;

View File

@@ -123,7 +123,7 @@ export class DemoHaSelectBox extends LitElement {
margin: 0; margin: 0;
} }
label { label {
font-weight: 600; font-weight: var(--ha-font-weight-bold);
margin-bottom: 8px; margin-bottom: 8px;
display: block; display: block;
} }

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeDateTimeNumeric extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeDateTimeSeconds extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeDateTimeShortYear extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeDateTimeShort extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeDateTime extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -92,7 +92,7 @@ export class DemoDateTimeDate extends LitElement {
static styles = css` static styles = css`
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeTimeSeconds extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeTimeWeekday extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -106,7 +106,7 @@ export class DemoDateTimeTime extends LitElement {
margin: 12px auto; margin: 12px auto;
} }
.header { .header {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.center { .center {
text-align: center; text-align: center;

View File

@@ -428,13 +428,13 @@ class HassioAddonConfig extends LitElement {
.header h2 { .header h2 {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
padding: 12px 16px 16px; padding: 12px 16px 16px;
display: block; display: block;
margin-block: 0px; margin-block: 0px;
font-weight: normal; font-weight: var(--ha-font-weight-normal);
} }
.card-actions.right { .card-actions.right {
justify-content: flex-end; justify-content: flex-end;

View File

@@ -1280,12 +1280,12 @@ class HassioAddonInfo extends LitElement {
padding-left: 8px; padding-left: 8px;
padding-inline-start: 8px; padding-inline-start: 8px;
padding-inline-end: initial; padding-inline-end: initial;
font-size: 24px; font-size: var(--ha-font-size-2xl);
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
} }
.addon-version { .addon-version {
float: var(--float-end); float: var(--float-end);
font-size: 15px; font-size: var(--ha-font-size-m);
vertical-align: middle; vertical-align: middle;
} }
.errors { .errors {

View File

@@ -391,7 +391,7 @@ export class HassioBackups extends LitElement {
top: -4px; top: -4px;
} }
.selected-txt { .selected-txt {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
padding-left: 16px; padding-left: 16px;
padding-inline-start: 16px; padding-inline-start: 16px;
padding-inline-end: initial; padding-inline-end: initial;
@@ -401,7 +401,7 @@ export class HassioBackups extends LitElement {
margin-top: 20px; margin-top: 20px;
} }
.header-toolbar .selected-txt { .header-toolbar .selected-txt {
font-size: 16px; font-size: var(--ha-font-size-l);
} }
.header-toolbar .header-btns { .header-toolbar .header-btns {
margin-right: -12px; margin-right: -12px;

View File

@@ -101,7 +101,7 @@ class HassioCardContent extends LitElement {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
height: 2.4em; height: 2.4em;
line-height: 1.2em; line-height: var(--ha-line-height-condensed);
} }
.icon_image img { .icon_image img {
max-height: 40px; max-height: 40px;

View File

@@ -131,7 +131,7 @@ export class HassioUpdate extends LitElement {
} }
.update-heading { .update-heading {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
margin-bottom: 0.5em; margin-bottom: 0.5em;
color: var(--primary-text-color); color: var(--primary-text-color);
} }

View File

@@ -169,7 +169,7 @@ class HassioHardwareDialog extends LitElement {
pre { pre {
padding: 16px; padding: 16px;
overflow: auto; overflow: auto;
line-height: 1.45; line-height: var(--ha-line-height-normal);
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
} }
code { code {

View File

@@ -8,7 +8,7 @@ body {
font-family: Roboto, sans-serif; font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100vh; height: 100vh;

View File

@@ -340,12 +340,12 @@ class HassioIngressView extends LitElement {
.header { .header {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 16px; font-size: var(--ha-font-size-l);
height: 40px; height: 40px;
padding: 0 16px; padding: 0 16px;
pointer-events: none; pointer-events: none;
background-color: var(--app-header-background-color); background-color: var(--app-header-background-color);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
color: var(--app-header-text-color, white); color: var(--app-header-text-color, white);
border-bottom: var(--app-header-border-bottom, none); border-bottom: var(--app-header-border-bottom, none);
box-sizing: border-box; box-sizing: border-box;
@@ -354,7 +354,7 @@ class HassioIngressView extends LitElement {
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-normal);
flex-grow: 1; flex-grow: 1;
} }

View File

@@ -101,7 +101,7 @@ export class HaAuthFlow extends LitElement {
a.forgot-password { a.forgot-password {
color: var(--primary-color); color: var(--primary-color);
text-decoration: none; text-decoration: none;
font-size: 0.875rem; font-size: var(--ha-font-size-s);
} }
.space-between { .space-between {
display: flex; display: flex;

View File

@@ -93,8 +93,8 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
background-color: var(--primary-background-color, #fafafa); background-color: var(--primary-background-color, #fafafa);
} }
p { p {
font-size: 14px; font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-normal);
} }
.card-content { .card-content {
background: var( background: var(
@@ -151,8 +151,8 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
margin-inline-start: initial; margin-inline-start: initial;
} }
h1 { h1 {
font-size: 28px; font-size: var(--ha-font-size-3xl);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
margin-top: 16px; margin-top: 16px;
margin-bottom: 16px; margin-bottom: 16px;
} }

View File

@@ -57,9 +57,9 @@ export class HaPickAuthProvider extends LitElement {
position: relative; position: relative;
z-index: 1; z-index: 1;
text-align: center; text-align: center;
font-size: 14px; font-size: var(--ha-font-size-m);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-normal);
} }
h3:before { h3:before {
border-top: 1px solid var(--divider-color); border-top: 1px solid var(--divider-color);

View File

@@ -96,7 +96,7 @@ const customGenerator = (colors: Swatch[]) => {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log( console.log(
"%cPicked colors", "%cPicked colors",
`color: ${foregroundColor}; background-color: ${backgroundColor.hex}; font-weight: bold; padding: 16px;` `color: ${foregroundColor}; background-color: ${backgroundColor.hex}; font-weight: var(--ha-font-weight-bold); padding: 16px;`
); );
colors.forEach((color) => logColor(color)); colors.forEach((color) => logColor(color));
// eslint-disable-next-line no-console // eslint-disable-next-line no-console

View File

@@ -719,7 +719,7 @@ export class HaChartBase extends LitElement {
max-height: 60%; max-height: 60%;
overflow-y: auto; overflow-y: auto;
padding: 12px 0 0; padding: 12px 0 0;
font-size: 12px; font-size: var(--ha-font-size-s);
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.chart-legend ul { .chart-legend ul {

View File

@@ -293,7 +293,7 @@ export class StateHistoryCharts extends LitElement {
.info { .info {
text-align: center; text-align: center;
line-height: 60px; line-height: var(--ha-line-height-expanded);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }

View File

@@ -634,7 +634,7 @@ export class StatisticsChart extends LitElement {
} }
.info { .info {
text-align: center; text-align: center;
line-height: 60px; line-height: var(--ha-line-height-expanded);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
`; `;

View File

@@ -931,9 +931,9 @@ export class HaDataTable extends LitElement {
font-family: Roboto, sans-serif; font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: 0.875rem; font-size: var(--ha-font-size-s);
line-height: 1.25rem; line-height: var(--ha-line-height-condensed);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
letter-spacing: 0.0178571429em; letter-spacing: 0.0178571429em;
text-decoration: inherit; text-decoration: inherit;
text-transform: inherit; text-transform: inherit;
@@ -1051,9 +1051,9 @@ export class HaDataTable extends LitElement {
font-family: Roboto, sans-serif; font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: 0.875rem; font-size: var(--ha-font-size-s);
line-height: 1.25rem; line-height: var(--ha-line-height-normal);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
letter-spacing: 0.0178571429em; letter-spacing: 0.0178571429em;
text-decoration: inherit; text-decoration: inherit;
text-transform: inherit; text-transform: inherit;
@@ -1173,9 +1173,9 @@ export class HaDataTable extends LitElement {
font-family: Roboto, sans-serif; font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: 0.875rem; font-size: var(--ha-font-size-s);
line-height: 1.375rem; line-height: var(--ha-line-height-normal);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
letter-spacing: 0.0071428571em; letter-spacing: 0.0071428571em;
text-decoration: inherit; text-decoration: inherit;
text-transform: inherit; text-transform: inherit;
@@ -1199,7 +1199,7 @@ export class HaDataTable extends LitElement {
padding-inline-start: 12px; padding-inline-start: 12px;
padding-inline-end: initial; padding-inline-end: initial;
width: 100%; width: 100%;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;

View File

@@ -108,7 +108,7 @@ class StateInfo extends LitElement {
.name.in-dialog, .name.in-dialog,
:host([secondary-line]) .name { :host([secondary-line]) .name {
line-height: 20px; line-height: var(--ha-line-height-normal);
} }
.time-ago, .time-ago,

View File

@@ -129,7 +129,7 @@ class HaAlert extends LitElement {
} }
.title { .title {
margin-top: 2px; margin-top: 2px;
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.action mwc-button, .action mwc-button,
.action ha-icon-button { .action ha-icon-button {

View File

@@ -56,7 +56,7 @@ export class HaAnsiToHtml extends LitElement {
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.bold { .bold {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.italic { .italic {
font-style: italic; font-style: italic;

View File

@@ -595,7 +595,7 @@ export class HaAssistChat extends LitElement {
} }
.message { .message {
white-space: pre-line; white-space: pre-line;
font-size: 18px; font-size: var(--ha-font-size-l);
clear: both; clear: both;
margin: 8px 0; margin: 8px 0;
padding: 8px; padding: 8px;
@@ -604,7 +604,7 @@ export class HaAssistChat extends LitElement {
@media all and (max-width: 450px), all and (max-height: 500px) { @media all and (max-width: 450px), all and (max-height: 500px) {
.message { .message {
font-size: 16px; font-size: var(--ha-font-size-l);
} }
} }

View File

@@ -95,18 +95,18 @@ export class HaBadge extends LitElement {
text-align: center; text-align: center;
} }
.label { .label {
font-size: 10px; font-size: var(--ha-font-size-xs);
font-style: normal; font-style: normal;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
line-height: 10px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
.content { .content {
font-size: var(--ha-font-size-badge, var(--ha-font-size-s)); font-size: var(--ha-font-size-badge, var(--ha-font-size-s));
font-style: normal; font-style: normal;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
line-height: 16px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }

View File

@@ -387,9 +387,15 @@ 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(
font-weight: var(--mdc-typography-body2-font-weight, 400); --mdc-typography-body2-line-height,
var(--ha-line-height-normal)
);
font-weight: var(
--mdc-typography-body2-font-weight,
var(--ha-font-weight-normal)
);
letter-spacing: var( letter-spacing: var(
--mdc-typography-body2-letter-spacing, --mdc-typography-body2-letter-spacing,
0.0178571429em 0.0178571429em
@@ -403,7 +409,7 @@ export class HaBaseTimeInput extends LitElement {
} }
ha-input-helper-text { ha-input-helper-text {
padding-top: 8px; padding-top: 8px;
line-height: normal; line-height: var(--ha-line-height-normal);
} }
`; `;
} }

View File

@@ -59,7 +59,7 @@ export class HaBigNumber extends LitElement {
css` css`
:host { :host {
font-size: 57px; font-size: 57px;
line-height: 1.12; line-height: var(--ha-line-height-condensed);
letter-spacing: -0.25px; letter-spacing: -0.25px;
} }
.value { .value {
@@ -87,12 +87,12 @@ export class HaBigNumber extends LitElement {
} }
.value .decimal { .value .decimal {
font-size: 0.42em; font-size: 0.42em;
line-height: 1.33; line-height: var(--ha-line-height-condensed);
min-height: 1.33em; min-height: 1.33em;
} }
.value .unit { .value .unit {
font-size: 0.33em; font-size: 0.33em;
line-height: 1.26; line-height: var(--ha-line-height-condensed);
} }
/* Accessibility */ /* Accessibility */
.visually-hidden { .visually-hidden {

View File

@@ -41,14 +41,14 @@ export class HaCard extends LitElement {
:host ::slotted(.card-header) { :host ::slotted(.card-header) {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
padding: 12px 16px 16px; padding: 12px 16px 16px;
display: block; display: block;
margin-block-start: 0px; margin-block-start: 0px;
margin-block-end: 0px; margin-block-end: 0px;
font-weight: normal; font-weight: var(--ha-font-weight-normal);
} }
:host ::slotted(.card-content:not(:first-child)), :host ::slotted(.card-content:not(:first-child)),

View File

@@ -154,7 +154,7 @@ class HaClimateState extends LitElement {
} }
.state-label { .state-label {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.unit { .unit {

View File

@@ -18,13 +18,13 @@ export class HaComboBoxItem extends HaMdListItem {
border-top: 1px solid var(--divider-color); border-top: 1px solid var(--divider-color);
} }
[slot="headline"] { [slot="headline"] {
line-height: 22px; line-height: var(--ha-line-height-normal);
font-size: 14px; font-size: var(--ha-font-size-m);
white-space: nowrap; white-space: nowrap;
} }
[slot="supporting-text"] { [slot="supporting-text"] {
line-height: 18px; line-height: var(--ha-line-height-normal);
font-size: 12px; font-size: var(--ha-font-size-s);
white-space: nowrap; white-space: nowrap;
} }
::slotted(state-badge), ::slotted(state-badge),

View File

@@ -59,7 +59,7 @@ export class HaControlButton extends LitElement {
box-sizing: border-box; box-sizing: border-box;
line-height: inherit; line-height: inherit;
font-family: Roboto; font-family: Roboto;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
outline: none; outline: none;
overflow: hidden; overflow: hidden;
background: none; background: none;

View File

@@ -194,7 +194,7 @@ export class HaControlNumberButton extends LitElement {
color: var(--primary-text-color); color: var(--primary-text-color);
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
transition: color 180ms ease-in-out; transition: color 180ms ease-in-out;
} }
:host([disabled]) { :host([disabled]) {

View File

@@ -179,8 +179,8 @@ export class HaControlSelectMenu extends SelectBase {
--control-select-menu-padding: 6px 10px; --control-select-menu-padding: 6px 10px;
--mdc-icon-size: 20px; --mdc-icon-size: 20px;
--ha-ripple-color: var(--secondary-text-color); --ha-ripple-color: var(--secondary-text-color);
font-size: 14px; font-size: var(--ha-font-size-m);
line-height: 1.4; line-height: var(--ha-line-height-condensed);
width: auto; width: auto;
color: var(--primary-text-color); color: var(--primary-text-color);
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
@@ -208,7 +208,7 @@ export class HaControlSelectMenu extends SelectBase {
width: 100%; width: 100%;
user-select: none; user-select: none;
font-style: normal; font-style: normal;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
letter-spacing: 0.25px; letter-spacing: 0.25px;
} }
.content { .content {

View File

@@ -207,7 +207,7 @@ export class HaControlSelect extends LitElement {
outline: none; outline: none;
transition: box-shadow 180ms ease-in-out; transition: box-shadow 180ms ease-in-out;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
color: var(--primary-text-color); color: var(--primary-text-color);
user-select: none; user-select: none;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;

View File

@@ -368,7 +368,7 @@ export class HaControlSlider extends LitElement {
--control-slider-background-opacity: 0.2; --control-slider-background-opacity: 0.2;
--control-slider-thickness: 40px; --control-slider-thickness: 40px;
--control-slider-border-radius: 10px; --control-slider-border-radius: 10px;
--control-slider-tooltip-font-size: 14px; --control-slider-tooltip-font-size: var(--ha-font-size-m);
height: var(--control-slider-thickness); height: var(--control-slider-thickness);
width: 100%; width: 100%;
border-radius: var(--control-slider-border-radius); border-radius: var(--control-slider-border-radius);

View File

@@ -53,13 +53,13 @@ export class HaDialogHeader extends LitElement {
white-space: nowrap; white-space: nowrap;
} }
.header-title { .header-title {
font-size: 22px; font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
} }
.header-subtitle { .header-subtitle {
font-size: 14px; font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-condensed);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
@media all and (min-width: 450px) and (min-height: 500px) { @media all and (min-width: 450px) and (min-height: 500px) {

View File

@@ -85,8 +85,8 @@ export class HaDialog extends DialogBase {
var(--dialog-backdrop-filter, none) var(--dialog-backdrop-filter, none)
); );
--mdc-dialog-box-shadow: var(--dialog-box-shadow, none); --mdc-dialog-box-shadow: var(--dialog-box-shadow, none);
--mdc-typography-headline6-font-weight: 400; --mdc-typography-headline6-font-weight: var(--ha-font-weight-normal);
--mdc-typography-headline6-font-size: 1.574rem; --mdc-typography-headline6-font-size: var(--ha-font-size-xl);
} }
.mdc-dialog__actions { .mdc-dialog__actions {
justify-content: var(--justify-action-buttons, flex-end); justify-content: var(--justify-action-buttons, flex-end);

View File

@@ -188,7 +188,7 @@ export class HaExpansionPanel extends LitElement {
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
overflow: hidden; overflow: hidden;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
outline: none; outline: none;
} }
#summary.noCollapse { #summary.noCollapse {
@@ -218,7 +218,7 @@ export class HaExpansionPanel extends LitElement {
.secondary { .secondary {
display: block; display: block;
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 12px; font-size: var(--ha-font-size-s);
} }
`; `;
} }

View File

@@ -294,7 +294,7 @@ export class HaFileUpload extends LitElement {
} }
.supports { .supports {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 12px; font-size: var(--ha-font-size-s);
} }
:host([disabled]) .secondary { :host([disabled]) .secondary {
color: var(--disabled-text-color); color: var(--disabled-text-color);
@@ -324,7 +324,7 @@ export class HaFileUpload extends LitElement {
box-sizing: border-box; box-sizing: border-box;
} }
.header { .header {
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
.progress { .progress {
color: var(--secondary-text-color); color: var(--secondary-text-color);
@@ -333,7 +333,7 @@ export class HaFileUpload extends LitElement {
background: none; background: none;
border: none; border: none;
padding: 0; padding: 0;
font-size: 14px; font-size: var(--ha-font-size-m);
color: var(--primary-color); color: var(--primary-color);
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;

View File

@@ -208,10 +208,10 @@ export class HaFilterBlueprints extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -303,10 +303,10 @@ export class HaFilterCategories extends SubscribeMixin(LitElement) {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -232,10 +232,10 @@ export class HaFilterDevices extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -189,10 +189,10 @@ export class HaFilterDomains extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -246,10 +246,10 @@ export class HaFilterEntities extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -303,10 +303,10 @@ export class HaFilterFloorAreas extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -195,10 +195,10 @@ export class HaFilterIntegrations extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -233,10 +233,10 @@ export class HaFilterLabels extends SubscribeMixin(LitElement) {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -177,10 +177,10 @@ export class HaFilterStates extends LitElement {
min-width: 16px; min-width: 16px;
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 11px; font-size: var(--ha-font-size-xs);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@@ -70,8 +70,11 @@ export class HaFormBoolean extends LitElement implements HaFormElement {
padding-top: 4px; padding-top: 4px;
box-sizing: border-box; box-sizing: border-box;
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 0.875rem; font-size: var(--ha-font-size-s);
font-weight: var(--mdc-typography-body2-font-weight, 400); font-weight: var(
--mdc-typography-body2-font-weight,
var(--ha-font-weight-normal)
);
} }
`; `;
} }

View File

@@ -20,7 +20,7 @@ export class HaFormConstant extends LitElement implements HaFormElement {
display: block; display: block;
} }
.label { .label {
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
`; `;
} }

View File

@@ -46,7 +46,7 @@ export class HaHeaderBar extends LitElement {
flex: none; flex: none;
} }
.mdc-top-app-bar__title { .mdc-top-app-bar__title {
font-size: 20px; font-size: var(--ha-font-size-xl);
padding-inline-start: 24px; padding-inline-start: 24px;
padding-inline-end: initial; padding-inline-end: initial;
} }

View File

@@ -34,8 +34,11 @@ export class HaBadge extends LitElement {
align-items: center; align-items: center;
gap: 3px; gap: 3px;
color: var(--ha-heading-badge-text-color, var(--secondary-text-color)); color: var(--ha-heading-badge-text-color, var(--secondary-text-color));
font-size: var(--ha-heading-badge-font-size, 14px); font-size: var(--ha-heading-badge-font-size, var(--ha-font-size-m));
font-weight: var(--ha-heading-badge-font-weight, 400); font-weight: var(
--ha-heading-badge-font-weight,
var(--ha-font-weight-normal)
);
line-height: var(--ha-heading-badge-line-height, 20px); line-height: var(--ha-heading-badge-line-height, 20px);
letter-spacing: 0.1px; letter-spacing: 0.1px;
--mdc-icon-size: 14px; --mdc-icon-size: 14px;

View File

@@ -103,7 +103,7 @@ class HaHumidifierState extends LitElement {
} }
.state-label { .state-label {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.unit { .unit {

View File

@@ -12,7 +12,7 @@ class InputHelperText extends LitElement {
:host { :host {
display: block; display: block;
color: var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6)); color: var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6));
font-size: 0.75rem; font-size: var(--ha-font-size-xs);
padding-left: 16px; padding-left: 16px;
padding-right: 16px; padding-right: 16px;
padding-inline-start: 16px; padding-inline-start: 16px;

View File

@@ -80,7 +80,7 @@ class HaLabelBadge extends LitElement {
/* Make the label as wide as container+border. (parent_borderwidth / font-size) */ /* Make the label as wide as container+border. (parent_borderwidth / font-size) */
left: -0.2em; left: -0.2em;
right: -0.2em; right: -0.2em;
line-height: 1em; line-height: var(--ha-line-height-condensed);
font-size: 0.5em; font-size: 0.5em;
} }
.label-badge .label span { .label-badge .label span {
@@ -91,7 +91,7 @@ class HaLabelBadge extends LitElement {
color: var(--ha-label-badge-label-color, white); color: var(--ha-label-badge-label-color, white);
border-radius: 1em; border-radius: 1em;
padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */ padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
overflow: hidden; overflow: hidden;
text-transform: uppercase; text-transform: uppercase;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -102,7 +102,10 @@ class HaLabelBadge extends LitElement {
margin-top: 1em; margin-top: 1em;
font-size: var(--ha-label-badge-title-font-size, 0.9em); font-size: var(--ha-label-badge-title-font-size, 0.9em);
width: var(--ha-label-badge-title-width, 5em); width: var(--ha-label-badge-title-width, 5em);
font-weight: var(--ha-label-badge-title-font-weight, 400); font-weight: var(
--ha-label-badge-title-font-weight,
var(--ha-font-weight-normal)
);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: normal; line-height: normal;

View File

@@ -32,9 +32,9 @@ class HaLabel extends LitElement {
display: inline-flex; display: inline-flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
font-size: 12px; font-size: var(--ha-font-size-s);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
vertical-align: middle; vertical-align: middle;
height: 32px; height: 32px;

View File

@@ -73,7 +73,7 @@ export class HaMarkdown extends LitElement {
pre { pre {
padding: 16px; padding: 16px;
overflow: auto; overflow: auto;
line-height: 1.45; line-height: var(--ha-line-height-normal);
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
} }
h1, h1,
@@ -86,7 +86,7 @@ export class HaMarkdown extends LitElement {
} }
h2 { h2 {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
hr { hr {
border-color: var(--divider-color); border-color: var(--divider-color);

View File

@@ -155,10 +155,10 @@ export class HaMdDialog extends Dialog {
--md-dialog-supporting-text-color: var(--primary-text-color); --md-dialog-supporting-text-color: var(--primary-text-color);
--md-sys-color-scrim: #000000; --md-sys-color-scrim: #000000;
--md-dialog-headline-weight: 400; --md-dialog-headline-weight: var(--ha-font-weight-normal);
--md-dialog-headline-size: 1.574rem; --md-dialog-headline-size: var(--ha-font-size-xl);
--md-dialog-supporting-text-size: 1rem; --md-dialog-supporting-text-size: var(--ha-font-size-m);
--md-dialog-supporting-text-line-height: 1.5rem; --md-dialog-supporting-text-line-height: var(--ha-line-height-normal);
} }
:host([type="alert"]) { :host([type="alert"]) {

View File

@@ -154,18 +154,18 @@ export class HaSelectBox extends LitElement {
} }
.option .content .text .label { .option .content .text .label {
color: var(--primary-text-color); color: var(--primary-text-color);
font-size: 14px; font-size: var(--ha-font-size-m);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-normal);
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.option .content .text .description { .option .content .text .description {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 13px; font-size: var(--ha-font-size-s);
font-weight: 400; font-weight: var(--ha-font-weight-normal);
line-height: 16px; line-height: var(--ha-line-height-condensed);
} }
img { img {
position: relative; position: relative;

View File

@@ -45,7 +45,7 @@ export class HaActionSelector extends LitElement {
label { label {
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
`; `;
} }

View File

@@ -61,8 +61,11 @@ export class HaBooleanSelector extends LitElement {
padding-top: 4px; padding-top: 4px;
box-sizing: border-box; box-sizing: border-box;
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 0.875rem; font-size: var(--ha-font-size-s);
font-weight: var(--mdc-typography-body2-font-weight, 400); font-weight: var(
--mdc-typography-body2-font-weight,
var(--ha-font-weight-normal)
);
} }
`; `;
} }

View File

@@ -36,7 +36,7 @@ export class HaConditionSelector extends LitElement {
label { label {
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
`; `;
} }

View File

@@ -247,7 +247,7 @@ export class HaMediaSelector extends LitElement {
--mdc-icon-size: calc(var(--media-browse-item-size, 175px) * 0.4); --mdc-icon-size: calc(var(--media-browse-item-size, 175px) * 0.4);
} }
.title { .title {
font-size: 16px; font-size: var(--ha-font-size-l);
padding-top: 16px; padding-top: 16px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@@ -290,7 +290,7 @@ export class HaSelectorSelector extends LitElement {
padding: 0px 16px 16px 16px; padding: 0px 16px 16px 16px;
} }
.title { .title {
font-size: 16px; font-size: var(--ha-font-size-l);
padding-top: 16px; padding-top: 16px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@@ -45,7 +45,7 @@ export class HaTriggerSelector extends LitElement {
label { label {
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
`; `;
} }

View File

@@ -69,9 +69,12 @@ 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(--mdc-typography-body2-font-weight, 400); font-weight: var(
line-height: normal; --mdc-typography-body2-font-weight,
var(--ha-font-weight-normal)
);
line-height: var(--ha-line-height-normal);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
.body[two-line] { .body[two-line] {

View File

@@ -827,7 +827,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
padding: 0 4px; padding: 0 4px;
border-bottom: 1px solid transparent; border-bottom: 1px solid transparent;
white-space: nowrap; white-space: nowrap;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
color: var( color: var(
--sidebar-menu-button-text-color, --sidebar-menu-button-text-color,
var(--primary-text-color) var(--primary-text-color)
@@ -837,7 +837,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
--sidebar-menu-button-background-color, --sidebar-menu-button-background-color,
inherit inherit
); );
font-size: 20px; font-size: var(--ha-font-size-xl);
align-items: center; align-items: center;
padding-left: calc(4px + env(safe-area-inset-left)); padding-left: calc(4px + env(safe-area-inset-left));
padding-inline-start: calc(4px + env(safe-area-inset-left)); padding-inline-start: calc(4px + env(safe-area-inset-left));
@@ -939,8 +939,8 @@ class HaSidebar extends SubscribeMixin(LitElement) {
ha-md-list-item .item-text { ha-md-list-item .item-text {
display: none; display: none;
max-width: calc(100% - 56px); max-width: calc(100% - 56px);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
font-size: 14px; font-size: var(--ha-font-size-m);
} }
:host([expanded]) ha-md-list-item .item-text { :host([expanded]) ha-md-list-item .item-text {
display: block; display: block;
@@ -962,8 +962,8 @@ class HaSidebar extends SubscribeMixin(LitElement) {
align-items: center; align-items: center;
min-width: 8px; min-width: 8px;
border-radius: 10px; border-radius: 10px;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
line-height: normal; line-height: var(--ha-line-height-normal);
background-color: var(--accent-color); background-color: var(--accent-color);
padding: 2px 6px; padding: 2px 6px;
color: var(--text-accent-color, var(--text-primary-color)); color: var(--text-accent-color, var(--text-primary-color));
@@ -975,7 +975,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
left: 26px; left: 26px;
border-radius: 10px; border-radius: 10px;
font-size: 0.65em; font-size: 0.65em;
line-height: 2; line-height: var(--ha-line-height-expanded);
padding: 0 4px; padding: 0 4px;
} }
@@ -996,8 +996,8 @@ class HaSidebar extends SubscribeMixin(LitElement) {
.subheader { .subheader {
color: var(--sidebar-text-color); color: var(--sidebar-text-color);
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
font-size: 14px; font-size: var(--ha-font-size-m);
padding: 16px; padding: 16px;
white-space: nowrap; white-space: nowrap;
} }
@@ -1011,7 +1011,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
color: var(--sidebar-background-color); color: var(--sidebar-background-color);
background-color: var(--sidebar-text-color); background-color: var(--sidebar-text-color);
padding: 4px; padding: 4px;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
.menu ha-icon-button { .menu ha-icon-button {

View File

@@ -30,7 +30,7 @@ export class HaTextArea extends TextAreaBase {
content: attr(data-value); content: attr(data-value);
margin-top: 23px; margin-top: 23px;
margin-bottom: 9px; margin-bottom: 9px;
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
min-height: 42px; min-height: 42px;
padding: 0px 32px 0 16px; padding: 0px 32px 0 16px;
letter-spacing: var( letter-spacing: var(

View File

@@ -38,7 +38,7 @@ class HaTip extends LitElement {
} }
.prefix { .prefix {
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
} }
`; `;
} }

View File

@@ -16,7 +16,7 @@ export class HaTopAppBarFixed extends TopAppBarFixedBase {
padding-top: var(--header-height); padding-top: var(--header-height);
} }
.mdc-top-app-bar { .mdc-top-app-bar {
--mdc-typography-headline6-font-weight: 400; --mdc-typography-headline6-font-weight: var(--ha-font-weight-normal);
color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff)); color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff));
background-color: var( background-color: var(
--app-header-background-color, --app-header-background-color,
@@ -24,7 +24,7 @@ export class HaTopAppBarFixed extends TopAppBarFixedBase {
); );
} }
.mdc-top-app-bar__title { .mdc-top-app-bar__title {
font-size: 20px; font-size: var(--ha-font-size-xl);
padding-inline-start: 24px; padding-inline-start: 24px;
padding-inline-end: initial; padding-inline-end: initial;
} }

View File

@@ -16,7 +16,7 @@ export class HaTopAppBar extends TopAppBarBase {
padding-top: var(--header-height); padding-top: var(--header-height);
} }
.mdc-top-app-bar { .mdc-top-app-bar {
--mdc-typography-headline6-font-weight: 400; --mdc-typography-headline6-font-weight: var(--ha-font-weight-normal);
color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff)); color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff));
background-color: var( background-color: var(
--app-header-background-color, --app-header-background-color,

View File

@@ -268,7 +268,7 @@ export class TopAppBarBaseBase extends BaseElement {
); );
} }
.mdc-top-app-bar { .mdc-top-app-bar {
--mdc-typography-headline6-font-weight: 400; --mdc-typography-headline6-font-weight: var(--ha-font-weight-normal);
color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff)); color: var(--app-header-text-color, var(--mdc-theme-on-primary, #fff));
background-color: var( background-color: var(
--app-header-background-color, --app-header-background-color,
@@ -321,7 +321,7 @@ export class TopAppBarBaseBase extends BaseElement {
overflow: auto; overflow: auto;
} }
.mdc-top-app-bar__title { .mdc-top-app-bar__title {
font-size: 20px; font-size: var(--ha-font-size-xl);
padding-inline-start: 24px; padding-inline-start: 24px;
padding-inline-end: initial; padding-inline-end: initial;
} }

View File

@@ -71,7 +71,7 @@ export class HaWaterHeaterState extends LitElement {
} }
.state-label { .state-label {
font-weight: bold; font-weight: var(--ha-font-weight-bold);
} }
.label { .label {

View File

@@ -688,11 +688,11 @@ export class HaMap extends ReactiveElement {
border-radius: 20px; border-radius: 20px;
text-align: center; text-align: center;
color: var(--text-primary-color); color: var(--text-primary-color);
font-size: 14px; font-size: var(--ha-font-size-m);
} }
.marker-cluster span { .marker-cluster span {
line-height: 30px; line-height: var(--ha-line-height-expanded);
} }
`; `;
} }

View File

@@ -959,9 +959,9 @@ export class HaMediaPlayerBrowse extends LitElement {
padding-top: 16px; padding-top: 16px;
} }
.breadcrumb .title { .breadcrumb .title {
font-size: 32px; font-size: var(--ha-font-size-4xl);
line-height: 1.2; line-height: var(--ha-line-height-condensed);
font-weight: bold; font-weight: var(--ha-font-weight-bold);
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
@@ -970,7 +970,7 @@ export class HaMediaPlayerBrowse extends LitElement {
padding-right: 8px; padding-right: 8px;
} }
.breadcrumb .previous-title { .breadcrumb .previous-title {
font-size: 14px; font-size: var(--ha-font-size-m);
padding-bottom: 8px; padding-bottom: 8px;
color: var(--secondary-text-color); color: var(--secondary-text-color);
overflow: hidden; overflow: hidden;
@@ -979,7 +979,7 @@ export class HaMediaPlayerBrowse extends LitElement {
--mdc-icon-size: 14px; --mdc-icon-size: 14px;
} }
.breadcrumb .subtitle { .breadcrumb .subtitle {
font-size: 16px; font-size: var(--ha-font-size-l);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
margin-bottom: 0; margin-bottom: 0;
@@ -1138,7 +1138,7 @@ export class HaMediaPlayerBrowse extends LitElement {
} }
.child .title { .child .title {
font-size: 16px; font-size: var(--ha-font-size-l);
padding-top: 16px; padding-top: 16px;
padding-left: 2px; padding-left: 2px;
overflow: hidden; overflow: hidden;
@@ -1203,7 +1203,7 @@ export class HaMediaPlayerBrowse extends LitElement {
} }
:host([narrow]) .breadcrumb .title { :host([narrow]) .breadcrumb .title {
font-size: 24px; font-size: var(--ha-font-size-2xl);
} }
:host([narrow]) .header { :host([narrow]) .header {
padding: 0; padding: 0;

View File

@@ -34,16 +34,16 @@ export class HaTileInfo extends LitElement {
width: 100%; width: 100%;
} }
.primary { .primary {
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
font-size: 14px; font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.secondary { .secondary {
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 12px; font-size: var(--ha-font-size-s);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.4px; letter-spacing: 0.4px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }

View File

@@ -164,7 +164,7 @@ export class HatGraphNode extends LitElement {
stroke-width: 0; stroke-width: 0;
} }
.number text { .number text {
font-size: 10px; font-size: var(--ha-font-size-xs);
fill: var(--text-primary-color); fill: var(--text-primary-color);
} }
path.icon { path.icon {

View File

@@ -14,9 +14,15 @@ 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(
font-weight: var(--mdc-typography-headline6-font-weight, 500); --mdc-typography-headline6-line-height,
var(--ha-line-height-expanded)
);
font-weight: var(
--mdc-typography-headline6-font-weight,
var(--ha-font-weight-semibold)
);
letter-spacing: var(--mdc-typography-headline6-letter-spacing, 0.0125em); letter-spacing: var(--mdc-typography-headline6-letter-spacing, 0.0125em);
text-decoration: var(--mdc-typography-headline6-text-decoration, inherit); text-decoration: var(--mdc-typography-headline6-text-decoration, inherit);
text-transform: var(--mdc-typography-headline6-text-transform, inherit); text-transform: var(--mdc-typography-headline6-text-transform, inherit);

View File

@@ -228,7 +228,7 @@ export class DialogEnterCode
height: 56px; height: 56px;
--control-button-border-radius: 28px; --control-button-border-radius: 28px;
--mdc-icon-size: 24px; --mdc-icon-size: 24px;
font-size: 24px; font-size: var(--ha-font-size-2xl);
} }
.submit { .submit {
--control-button-background-color: var(--green-color); --control-button-background-color: var(--green-color);

View File

@@ -74,15 +74,15 @@ export class HaMoreInfoStateHeader extends LitElement {
} }
.state { .state {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: var(--ha-font-weight-normal);
font-size: 36px; font-size: var(--ha-font-size-5xl);
line-height: 44px; line-height: var(--ha-line-height-condensed);
} }
.last-changed { .last-changed {
font-style: normal; font-style: normal;
font-weight: 500; font-weight: var(--ha-font-weight-semibold);
font-size: 16px; font-size: var(--ha-font-size-l);
line-height: 24px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.1px; letter-spacing: 0.1px;
padding: 4px 0; padding: 4px 0;
margin-bottom: 20px; margin-bottom: 20px;

Some files were not shown because too many files have changed in this diff Show More