Skip to content

Commit

Permalink
feat: line height heading token
Browse files Browse the repository at this point in the history
  • Loading branch information
ella-etch committed Feb 21, 2024
1 parent ec0c30b commit d18900f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/content/Text/Text.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.diamond-text-font-h3,
.diamond-text-font-h4 {
font-weight: var(--diamond-font-weight-bold);
line-height: var(--diamond-font-line-height-sm);
line-height: var(--diamond-font-line-height-heading);
text-wrap: balance;
}

Expand Down
3 changes: 1 addition & 2 deletions styles/base/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ h3,
h4 {
color: var(--diamond-theme-heading-color);
font-weight: var(--diamond-font-weight-bold);
line-height: var(--diamond-font-line-height-sm);
line-height: var(--diamond-font-line-height-heading);
margin-bottom: var(--diamond-spacing-sm);
margin-top: 0;
text-wrap: balance;
}

h1 {
font-size: var(--diamond-font-size-h1);
line-height: var(--diamond-font-line-height-sm);
}

h2 {
Expand Down
1 change: 1 addition & 0 deletions styles/tokens/font.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

--diamond-font-line-height: 1.5;
--diamond-font-line-height-sm: 1.25;
--diamond-font-line-height-heading: var(--diamond-font-line-height-sm);

--diamond-font-size-default: 1rem;
--diamond-font-size-xs: 0.75em;
Expand Down

0 comments on commit d18900f

Please sign in to comment.