Skip to content

Commit

Permalink
Denote private nature of heading/body mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Sep 26, 2024
1 parent a533871 commit e719972
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,66 @@
* Typography
*/

@mixin text-heading() {
@mixin _text-heading() {
font-family: $font-family-headings;
font-weight: $font-weight-medium;
}

@mixin text-body() {
@mixin _text-body() {
font-family: $font-family-body;
font-weight: $font-weight-regular;
}

@mixin heading-small() {
@include text-heading();
@include _text-heading();
font-size: $font-size-x-small;
line-height: $line-height-x-small;
}

@mixin heading-medium() {
@include text-heading();
@include _text-heading();
font-size: $font-size-medium;
line-height: $line-height-small;
}

@mixin heading-large() {
@include text-heading();
@include _text-heading();
font-size: $font-size-large;
line-height: $line-height-small;
}

@mixin heading-x-large() {
@include text-heading();
@include _text-heading();
font-size: $font-size-x-large;
line-height: $line-height-medium;
}

@mixin heading-2x-large() {
@include text-heading();
@include _text-heading();
font-size: $font-size-2x-large;
line-height: $font-line-height-2x-large;
}

@mixin body-small() {
@include text-body();
@include _text-body();
font-size: $font-size-small;
line-height: $line-height-x-small;
}

@mixin body-medium() {
@include text-body();
@include _text-body();
font-size: $font-size-medium;
line-height: $line-height-small;
}

@mixin body-large() {
@include text-body();
@include _text-body();
font-size: $font-size-large;
line-height: $line-height-medium;
}

@mixin body-x-large() {
@include text-body();
@include _text-body();
font-size: $font-size-x-large;
line-height: $line-height-x-large;
}
Expand Down

0 comments on commit e719972

Please sign in to comment.