Skip to main content

font-stack

Return the font family (font stack) defined in config/typography/_stacks.scss.

ParameterTypeDescription
namestringThe name of the font stack.

Example

assets/styles/config/typography/_stacks.scss
$main: 'Calibri', sans-serif;
$secondary: 'Example Font', sans-serif;

Components/ExampleComponent/_style.scss
.m-my-component {
font-family: font-stack(main); // => 'Calibri', sans-serif;
}