Skip to content

Commit

Permalink
Adding text-semibold and text-light utility classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Apr 2, 2021
1 parent 565f550 commit fea6ea6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-swans-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/css': minor
---

Adding text-semibold and text-light utility classes
2 changes: 2 additions & 0 deletions docs/content/utilities/typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Change the font weight, styles, and alignment with these utilities.
<p class="text-normal">Normal</p>
<p class="text-italic">Italic</p>
<p class="text-bold">Bold</p>
<p class="text-semibold">Semi-bold</p>
<p class="text-light">Light</p>
<p class="text-uppercase">Uppercase</p>
<p class="no-wrap">No wrap</p>
<p class="ws-normal">Normal whitespace</p>
Expand Down
4 changes: 3 additions & 1 deletion src/utilities/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@
/* Set the font weight to normal */
.text-normal { font-weight: $font-weight-normal !important; }
/* Set the font weight to bold */
.text-bold { font-weight: $font-weight-bold !important;}
.text-bold { font-weight: $font-weight-bold !important; }
.text-semibold { font-weight: $font-weight-semibold !important; }
.text-light { font-weight: $font-weight-light !important; }
/* Set the font to italic */
.text-italic { font-style: italic !important; }
/* Make text uppercase */
Expand Down

0 comments on commit fea6ea6

Please sign in to comment.