Skip to content

Commit

Permalink
feat(theme): add card text line height variable (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed May 17, 2022
1 parent 766218c commit 54dcc28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/state-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class StateItem extends LitElement {
.primary {
font-weight: var(--card-primary-font-weight);
font-size: var(--card-primary-font-size);
line-height: var(--card-primary-line-height);
color: var(--primary-text-color);
text-overflow: ellipsis;
overflow: hidden;
Expand All @@ -42,6 +43,7 @@ export class StateItem extends LitElement {
.secondary {
font-weight: var(--card-secondary-font-weight);
font-size: var(--card-secondary-font-size);
line-height: var(--card-secondary-line-height);
color: var(--secondary-text-color);
text-overflow: ellipsis;
overflow: hidden;
Expand Down
2 changes: 2 additions & 0 deletions src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const themeVariables = css`
--card-secondary-font-size: var(--mush-card-secondary-font-size, 12px);
--card-primary-font-weight: var(--mush-card-primary-font-weight, bold);
--card-secondary-font-weight: var(--mush-card-secondary-font-weight, bolder);
--card-primary-line-height: var(--mush-card-primary-line-height, 1.5);
--card-secondary-line-height: var(--mush-card-secondary-line-height, 1.5);
/* Chips */
--chip-spacing: var(--mush-chip-spacing, 8px);
Expand Down

0 comments on commit 54dcc28

Please sign in to comment.