Skip to content

Commit

Permalink
Expose headline and caption fint sizes as CSS varables
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed May 11, 2024
1 parent f8f0729 commit 601f503
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ export default css`
--text-color: inherit;
--text-color-active: white;
--headline-font-size: 22px;
--caption-font-size: 13px;
--inactive-background-color: inherit;
--red-level-color: var(---error-color, #db4437);
--orange-level-background-color: #ee5a24;
--yellow-level-background-color: var(--warning-color, #ffa600);
--inactive-background-color: inherit;
}
ha-card {
Expand Down Expand Up @@ -57,7 +59,7 @@ export default css`
.headline {
flex: 1;
font-size: 22px;
font-size: var(--headline-font-size);
line-height: normal;
margin: auto;
margin-left: 18px;
Expand All @@ -74,7 +76,7 @@ export default css`
display: flex;
align-items: center;
margin: 10px 12px;
font-size: 13px;
font-size: var(--caption-font-size);
line-height: normal;
}
Expand Down

0 comments on commit 601f503

Please sign in to comment.