Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 45c7812

Browse files
author
Joseph Cortbawi
committed
Add Calibre Thin font
1 parent b81ddf1 commit 45c7812

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/typography/_fonts_config.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @todo Create a mixin for fonts. https://trello.com/c/pjMl9MoQ
88
*/
99

10+
$calibre-thin: "Calibre Thin";
1011
$calibre-light: "Calibre Light";
1112
$calibre-medium: "Calibre Medium";
1213
$verlag-black: "Verlag Black";
@@ -16,6 +17,20 @@ $chronicle-deck-italic: "Chronicle Deck Italic";
1617
$sans-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
1718
$serif-stack: Georgia, serif;
1819

20+
@mixin calibre-thin {
21+
font-family: $sans-stack;
22+
font-weight: 400;
23+
font-style: normal;
24+
25+
.fonts-1 & {
26+
font-family: $calibre-light;
27+
}
28+
29+
.fonts-2 & {
30+
font-family: $calibre-thin;
31+
}
32+
}
33+
1934
@mixin calibre-light {
2035
font-family: $sans-stack;
2136
font-weight: 400;

src/typography/_load_fonts.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
* @see app/assets/js/load-fonts.js
66
*/
77

8+
@font-face {
9+
font-family: "Calibre Thin";
10+
src: url('https://s3.amazonaws.com/nightshade-fonts/CalibreThin.woff2') format('woff2'),
11+
url('https://s3.amazonaws.com/nightshade-fonts/CalibreThin.woff') format('woff');
12+
}
13+
814
@font-face {
915
font-family: "Calibre Light";
1016
src: url('https://s3.amazonaws.com/nightshade-fonts/CalibreWeb-Light.woff2') format('woff2'),

0 commit comments

Comments
 (0)