Skip to content

Commit

Permalink
Merge pull request #474 from primer/task/add-text-mono-util
Browse files Browse the repository at this point in the history
Add text-mono utility class
  • Loading branch information
jonrohan authored May 8, 2018
2 parents 5657a4f + 6c3c4f9 commit 9262814
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/primer-utilities/docs/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Change the font weight, styles, and alignment with these utilities.
<p class="text-emphasized">Emphasized</p>
<p class="text-small">Small</p>
<p class="lead">Bacon ipsum dolor amet tri-tip chicken kielbasa, cow swine beef corned beef ground round prosciutto hamburger porchetta sausage alcatra tail.</p>
<p class="text-mono">Monospace</p>
```

## Text alignment
Expand Down
5 changes: 5 additions & 0 deletions modules/primer-utilities/lib/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,8 @@
.text-shadow-light {
text-shadow: 0 1px 0 rgba($white, 0.5);
}

/* Set to monospace font */
.text-mono {
font-family: $mono-font;
}
1 change: 1 addition & 0 deletions modules/primer-utilities/stories/Typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ storiesOf('Typography utilities', module)
<p className='text-emphasized'>text-emphasized</p>
<p className='text-small'>text-small</p>
<p className='lead'>lead</p>
<p className='text-mono'>text-mono</p>
</div>
))
.add('text alignment', () => (
Expand Down

0 comments on commit 9262814

Please sign in to comment.