Skip to content

Commit

Permalink
Merge pull request #13 from katgirl/develop
Browse files Browse the repository at this point in the history
Set Value from Theme
  • Loading branch information
denniserdmann committed Mar 14, 2021
2 parents dd02624 + 9febfcd commit 0961568
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions files/nutshell/scss/base/_type.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,28 @@ html {
$margin-top: map-get($options, margin-top);
$margin-bottom: map-get($options, margin-bottom);
$color: map-get($options, color);

$font-weight: map-get($options, font-weight);
$font-family: map-get($options, font-family);
font-size: map-get($sizes, xs); // [5]
font-family: var(--headings__font-family);
font-weight: var(--headings__font-weight);
line-height: $line-height;
margin-bottom: $margin-bottom;

@if $color {
color: $color;
}


@if $font-weight {
font-weight: $font-weight;
} @else {
font-weight: var(--headings__font-weight);
}

@if $font-family {
font-family: $font-family;
} @else {
font-family: var(--headings__font-family);
}

// [6]
@for $i from 2 through length($sizes) {
$current: nth($sizes, $i); // $i = 2 = sm, $i = 5 = xl
Expand Down

0 comments on commit 0961568

Please sign in to comment.