Skip to content

Commit 305ea20

Browse files
authored
Add "Alliance" font (#16012)
* Add font files * Add @font-face bits * Use it once
1 parent 6ade353 commit 305ea20

File tree

6 files changed

+46
-1
lines changed

6 files changed

+46
-1
lines changed
61.2 KB
Binary file not shown.
Binary file not shown.
59.5 KB
Binary file not shown.
59.5 KB
Binary file not shown.

layouts/product-landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<header class="d-flex gutter mb-6">
1313
<div class="col-12 col-lg-7">
1414
<span class="text-mono text-gray">Product</span>
15-
<h1 class="mb-3">{{ page.shortTitle }}</h1>
15+
<h1 class="mb-3 font-mktg">{{ page.shortTitle }}</h1>
1616
<div class="lead-mktg text-gray">{{ page.intro }}</div>
1717

1818
<a href="{{ gettingStartedLinks[0].href }}" class="btn btn-large f4 btn-blue mt-3">

stylesheets/new-mktg.scss

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,48 @@
5454
.bg-blue-dark {
5555
background-color: $blue-800 !important;
5656
}
57+
58+
// stylelint-disable primer/no-unused-vars
59+
60+
// Typography
61+
62+
$marketing-font-path: "/assets/fonts/alliance/";
63+
$font-family-mktg: "Alliance No.1", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
64+
$font-weight-extrabold: 800 !default;
65+
66+
.font-mktg {
67+
font-family: $font-family-mktg;
68+
}
69+
70+
// Type
71+
@font-face {
72+
font-family: "Alliance No.1";
73+
font-style: normal;
74+
font-weight: $font-weight-normal;
75+
src: local("Alliance No.1 Regular"), local("alliance-no-1-regular"), url("#{$marketing-font-path}alliance-no-1-regular.woff") format("woff");
76+
font-display: swap;
77+
}
78+
79+
@font-face {
80+
font-family: "Alliance No.1";
81+
font-style: normal;
82+
font-weight: $font-weight-semibold;
83+
src: local("Alliance No.1 Medium"), local("alliance-no-1-medium"), url("#{$marketing-font-path}alliance-no-1-medium.woff") format("woff");
84+
font-display: swap;
85+
}
86+
87+
@font-face {
88+
font-family: "Alliance No.1";
89+
font-style: normal;
90+
font-weight: $font-weight-bold;
91+
src: local("Alliance No.1 Bold"), local("alliance-no-1-bold"), url("#{$marketing-font-path}alliance-no-1-bold.woff") format("woff");
92+
font-display: swap;
93+
}
94+
95+
@font-face {
96+
font-family: "Alliance No.1";
97+
font-style: normal;
98+
font-weight: $font-weight-extrabold;
99+
src: local("Alliance No.1 ExtraBold"), local("alliance-no-1-extrabold"), url("#{$marketing-font-path}alliance-no-1-extrabold.woff") format("woff");
100+
font-display: swap;
101+
}

0 commit comments

Comments
 (0)