digitransit-ui/sass/base/_helper-mixins.scss
Vesa Meskanen 208c420972 fix: more consistent font weights
- Use weight variables, not hard coded values
- Remove too specialized weight variables
2026-04-13 13:28:10 +03:00

32 lines
784 B
SCSS

/* Using these avoids making mistakes when some font settings are inherited
from a parent using different font-family. */
@mixin font-book {
font-family: $font-family;
font-weight: $font-weight-book;
letter-spacing: $letter-spacing;
}
@mixin font-medium {
font-family: $font-family;
font-weight: $font-weight-medium;
letter-spacing: $letter-spacing;
}
@mixin font-map-container {
font-family: $font-family;
font-weight: $font-weight-book;
letter-spacing: $letter-spacing;
}
@mixin font-narrow-book {
font-family: $font-family-narrow;
font-weight: $font-weight-book;
letter-spacing: $narrow-letter-spacing;
}
@mixin font-narrow-medium {
font-family: $font-family-narrow;
font-weight: $font-weight-medium;
letter-spacing: $narrow-letter-spacing;
}