Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,20 @@ First, provide the typeface variable, and then provide `$fontsize`, `$lineheight
// Heading level 1.
h1 {
// Set font-family
font-family-of($sans);
font-family: font-family-of($sans);
// Set type settings
@include typeset($font: $sans, $fontsize: 38px, $lineheight: 38px, $leader: 2, $trailer: 2rem);
}

// Heading level 2.
h2 {
font-family-of($sans);
font-family: font-family-of($sans);
@include typeset($sans, 26px, 28px, 2, 1);
}

// Paragraph.
p {
font-family-of($sans);
font-family: font-family-of($sans);
@include typeset($sans, 16px, 2rem, 0, 2);
}
```
Expand All @@ -191,7 +191,7 @@ To set type at different breakpoints, our `typeset` mixin needs to know about th

```scss
p {
font-family-of($sans);
font-family: font-family-of($sans);
@include typeset($sans, 16px, 24px, $leader: 0, $trailer: 2);

// we can apply a single breakpoint, starting with breakpoint key: 1
Expand Down