-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: foundations typography heading h1 h6 (#3534)
Co-authored-by: karimim <[email protected]> Co-authored-by: Philipp Gfeller <[email protected]> Co-authored-by: Alizé Debray <[email protected]>
- Loading branch information
1 parent
d6033c5
commit 5c4bbcd
Showing
7 changed files
with
69 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-documentation': patch | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Updated the style of headings (h1-h6). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@use 'reset'; | ||
@use 'body'; | ||
@use 'heading'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@use '../functions/tokens'; | ||
@use '../tokens/elements'; | ||
|
||
tokens.$default-map: elements.$post-heading; | ||
|
||
h1, | ||
.h1, | ||
h2, | ||
.h2, | ||
h3, | ||
.h3, | ||
h4, | ||
.h4, | ||
h5, | ||
.h5, | ||
h6, | ||
.h6 { | ||
line-height: tokens.get('post-heading', 'line-height'); | ||
font-weight: tokens.get('post-heading', 'font-weight'); | ||
} | ||
|
||
h1, | ||
.h1 { | ||
font-size: tokens.get('post-h1', 'font-size'); | ||
margin-block-start: tokens.get('post-h1', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h1', 'margin-block-end'); | ||
} | ||
|
||
h2, | ||
.h2 { | ||
font-size: tokens.get('post-h2', 'font-size'); | ||
margin-block-start: tokens.get('post-h2', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h2', 'margin-block-end'); | ||
} | ||
|
||
h3, | ||
.h3 { | ||
font-size: tokens.get('post-h3', 'font-size'); | ||
margin-block-start: tokens.get('post-h3', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h3', 'margin-block-end'); | ||
} | ||
|
||
h4, | ||
.h4 { | ||
font-size: tokens.get('post-h4', 'font-size'); | ||
margin-block-start: tokens.get('post-h4', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h4', 'margin-block-end'); | ||
} | ||
|
||
h5, | ||
.h5 { | ||
font-size: tokens.get('post-h5', 'font-size'); | ||
margin-block-start: tokens.get('post-h5', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h5', 'margin-block-end'); | ||
} | ||
|
||
h6, | ||
.h6 { | ||
font-size: tokens.get('post-h6', 'font-size'); | ||
margin-block-start: tokens.get('post-h6', 'margin-block-start'); | ||
margin-block-end: tokens.get('post-h6', 'margin-block-end'); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
@use './grid'; | ||
@use './subnavigation'; | ||
@use './type'; | ||
|
||
@include type.styles; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters