import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { hbs } from 'ember-cli-htmlbars';
import { action } from '@storybook/addon-actions';
import { text, boolean, select } from '@storybook/addon-knobs';
# Typography
To specify custom typography, use the SCSS mixin.
The type mixin accepts two parameters: a font size name
(required) and an optional font weight name (normal, semibold, bold).
This mixin sets both font size and line height, and optionally weight.
For example...
```scss
@import "utilities/type";
.my-component {
@include type.type(m, bold);
}
```
| Name | Font Size | SCSS | Note |
|---|---|---|---|
xl
|
28 |
@include type.type(xl);
|
|
l
|
20 |
@include type.type(l);
|
|
m
|
16 |
@include type.type(m);
|
|
s
|
14 |
@include type.type(s);
|
|
xs
|
12 |
@include type.type(xs);
|
|
h1
|
28 |
@include type.type(h1);
|
Same as xl, but different line height. |
h2
|
20 |
@include type.type(h2);
|
Same as l, but different line height. |
h3
|
16 |
@include type.type(h3);
|
Same as m, but different line height. |
button
|
13 |
@include type.type(button);
|