Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from teamleadercrm/semi-bold
Browse files Browse the repository at this point in the history
Add heading-5 and change heading-1 to semi bold
  • Loading branch information
driesd authored Nov 21, 2019
2 parents acc829a + 3ab956f commit b272d38
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

### Fixed

## [0.2.2] - 2019-11-21

### Added

- `.heading-5`: added `heading-5` which is semi bold, has a `font-size 14px` and a `line-height 18px`. ([@driesd](https://github.com/driesd) in [#11](https://github.com/teamleadercrm/ui-typography/pull/11))

## [0.2.1] - 2019-09-19

### Added
Expand Down
19 changes: 17 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

--font-family-regular: 'Inter-Regular', trebuchet ms, Verdana, 'Arial', sans-serif;
--font-family-medium: 'Inter-Medium', trebuchet ms, Verdana, 'Arial', sans-serif;
--font-family-semi-bold: 'Inter-SemiBold', trebuchet ms, Verdana, 'Arial', sans-serif;
--font-family-bold: 'Inter-Bold', trebuchet ms, Verdana, 'Arial', sans-serif;
--font-family-black: 'Inter-Black', trebuchet ms, Verdana, 'Arial', sans-serif;
}
Expand All @@ -21,6 +22,13 @@
url('https://static.teamleader.eu/fonts/Inter-Medium.woff') format('woff');
}

@font-face {
font-display: swap;
font-family: 'Inter-SemiBold';
src: url('https://static.teamleader.eu/fonts/Inter-SemiBold.woff2') format('woff2'),
url('https://static.teamleader.eu/fonts/Inter-SemiBold.woff') format('woff');
}

@font-face {
font-display: swap;
font-family: 'Inter-Bold';
Expand All @@ -45,13 +53,13 @@

.text {
strong {
font-family: var(--font-family-bold);
font-family: var(--font-family-semi-bold);
font-weight: normal;
}
}

.heading-1 {
font-family: var(--font-family-bold);
font-family: var(--font-family-semi-bold);
font-size: calc(2.4 * var(--unit));
font-weight: normal;
line-height: calc(3.0 * var(--unit));
Expand Down Expand Up @@ -80,6 +88,13 @@
text-transform: uppercase;
}

.heading-5 {
font-family: var(--font-family-semi-bold);
font-size: calc(1.4 * var(--unit));
font-weight: normal;
line-height: calc(1.8 * var(--unit));
}

.heading a {
text-decoration: none;
}
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h1 class="heading heading-1">I'm a Heading H1</h1>
<h2 class="heading heading-2">I'm a Heading H2</h2>
<h3 class="heading heading-3">I'm a Heading H3</h3>
<h4 class="heading heading-4">I'm a Heading H4</h4>
<h5 class="heading heading-5">I'm a Heading H5</h5>

<p class="text text-display">I'm display text containing a <strong>strong</strong> word</p>
<p class="text text-body">I'm body text containing a <strong>strong</strong> word</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@teamleader/ui-typography",
"private": false,
"version": "0.2.1",
"version": "0.2.2",
"description": "Teamleader UI typography",
"main": "index.css",
"repository": {
Expand Down

0 comments on commit b272d38

Please sign in to comment.