1
1
mirror of https://github.com/primer/css.git synced 2024-11-10 16:07:25 +03:00

Use a variable for font feature settings

This commit is contained in:
Tobias Ahlin 2021-05-04 13:38:31 +02:00
parent e90451c9ce
commit f1429dcfba
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
$marketing-font-path: "/fonts/" !default;
$font-mktg: $body-font !default;
$mktg-font-feature-settings: 'ss02' on, 'ss01' on !default;
$mktg-header-spacing-large: -0.03em !default;
$mktg-header-spacing-default: -0.01em !default;

View File

@ -7,7 +7,7 @@
.h5-mktg,
.h6-mktg {
font-family: $font-mktg;
font-feature-settings: "salt" 2;
font-feature-settings: $mktg-font-feature-settings;
font-weight: $font-weight-bold !important;
letter-spacing: $mktg-header-spacing-default;
}