Skip to content
Merged
Show file tree
Hide file tree
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
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