Skip to content

Commit

Permalink
[core] feat(typography): muted text modifier for headings (#6304)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Jul 25, 2023
1 parent b383527 commit 38504a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/core/src/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ Headings
Markup:
<div>
<h1 class="@ns-heading">H1 heading</h1>
<h2 class="@ns-heading">H2 heading</h2>
<h3 class="@ns-heading">H3 heading</h3>
<h4 class="@ns-heading">H4 heading</h4>
<h5 class="@ns-heading">H5 heading</h5>
<h6 class="@ns-heading">H6 heading</h6>
<h1 class="@ns-heading {{.modifier}}">H1 heading</h1>
<h2 class="@ns-heading {{.modifier}}">H2 heading</h2>
<h3 class="@ns-heading {{.modifier}}">H3 heading</h3>
<h4 class="@ns-heading {{.modifier}}">H4 heading</h4>
<h5 class="@ns-heading {{.modifier}}">H5 heading</h5>
<h6 class="@ns-heading {{.modifier}}">H6 heading</h6>
</div>
.#{$ns}-text-muted - Change text color to a gentler gray.
Styleguide headings
*/

Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/common/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ $pt-dark-intent-text-colors: (
.#{$ns}-dark & {
color: $pt-dark-heading-color;
}

&.#{$ns}-text-muted {
color: $pt-text-color-muted;

.#{$ns}-dark & {
color: $pt-dark-text-color-muted;
}
}
}

@mixin monospace-typography() {
Expand Down

1 comment on commit 38504a6

@adidahiya
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[core] feat(typography): muted text modifier for headings (#6304)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.