font-stack
Return the font family (font stack) defined in config/typography/_stacks.scss.
| Parameter | Type | Description |
|---|---|---|
name | string | The 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;
}