Skip to content

Commit 41be1a2

Browse files
feat: Replace ProximaNova with Figtree font family (#2844)
* feat: switch primary font from ProximaNova to Figtree * feat: remove redundant change in package.json
1 parent 61f83ba commit 41be1a2

20 files changed

Lines changed: 36 additions & 44 deletions

.storybook/manager-head.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<style>
22
@font-face {
3-
font-family: 'ProximaNova';
4-
src: url(fonts/ProximaNova-Regular.woff2) format('woff2'),
5-
url(fonts/ProximaNova-Regular.woff) format('woff');
3+
font-family: 'Figtree';
4+
src: url(fonts/Figtree-Regular.woff2) format('woff2'),
5+
url(fonts/Figtree-Regular.woff) format('woff');
66
font-weight: 400;
77
font-style: normal;
88
font-display: swap;
99
}
1010

1111
@font-face {
12-
font-family: 'ProximaNova';
13-
src: url(fonts/ProximaNova-Bold.woff2) format('woff2'),
14-
url(fonts/ProximaNova-Bold.woff) format('woff');
12+
font-family: 'Figtree';
13+
src: url(fonts/Figtree-Bold.woff2) format('woff2'),
14+
url(fonts/Figtree-Bold.woff) format('woff');
1515
font-weight: 700;
1616
font-style: normal;
1717
font-display: swap;
1818
}
1919

2020
@font-face {
21-
font-family: 'ProximaNova';
22-
src: url(fonts/ProximaNova-Black.woff2) format('woff2'),
23-
url(fonts/ProximaNova-Black.woff) format('woff');
21+
font-family: 'Figtree';
22+
src: url(fonts/Figtree-Black.woff2) format('woff2'),
23+
url(fonts/Figtree-Black.woff) format('woff');
2424
font-weight: 900;
2525
font-style: normal;
2626
font-display: swap;
2727
}
2828
</style>
29-
<link rel="stylesheet" href="manager.css" />
29+
<link rel="stylesheet" href="manager.css" />
23.3 KB
Binary file not shown.
15.7 KB
Binary file not shown.
24.1 KB
Binary file not shown.
16.3 KB
Binary file not shown.
23.9 KB
Binary file not shown.
16.3 KB
Binary file not shown.

.storybook/theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default create({
77
colorSecondary: '#000000',
88

99
// Typography
10-
fontBase: '"ProximaNova", "Helvetica", "Arial", sans-serif',
10+
fontBase: '"Figtree", "Helvetica", "Arial", sans-serif',
1111
fontCode: 'monospace',
1212
fontSize: '16px',
1313

src/components/buttons/_buttons.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ $largeButtonSize: componentSize(l);
122122
.sg-button__hover-overlay {
123123
border-radius: var(--border-radius-m);
124124
}
125-
126-
// Proxima is broken
127-
// Added to align text in the center for this font-size
128-
.sg-button__text {
129-
top: 1px;
130-
}
131125
}
132126

133127
&--reversed-order {

src/components/text/stories/text.stories.mdx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export const getValues = function (object, addUndefined = true) {
3030

3131
<PageHeader type="foundation">Typography</PageHeader>
3232

33-
The Brainly brand typeface is Proxima Nova, a geometric sans serif that works equally well with large headlines and functional copy. Use this typeface according to the following rules for consistency across the brand.
34-
35-
Proxima Nova combines modern proportions with a geometric appearance and has become one of the most popular web fonts, in use on thousands of websites around the world.
33+
The Brainly brand typeface is Figtree, a geometric sans serif that works equally well with large headlines and functional copy. Use this typeface according to the following rules for consistency across the brand.
3634

3735
Our typography system is a balanced hierarchy of text styles used throughout Brainly.
3836
This helps users quickly find information by emphasizing important parts and enhancing legibility overall.
@@ -87,7 +85,7 @@ export const TextBitExamples = extraBold => {
8785
return sizesVariants;
8886
};
8987

90-
**Font**: Proxima Nova
88+
**Font**: Figtree
9189
**Weight**: 900
9290

9391
<Typeset>{TextBitExamples(true)}</Typeset>
@@ -165,12 +163,12 @@ export const HeadlineExamples = extraBold => {
165163
return sizeVariant;
166164
};
167165

168-
**Font**: Proxima Nova
166+
**Font**: Figtree
169167
**Weight**: 900
170168

171169
<Typeset>{HeadlineExamples(true)}</Typeset>
172170

173-
**Font**: Proxima Nova
171+
**Font**: Figtree
174172
**Weight**: 700
175173

176174
<Typeset>{HeadlineExamples(false)}</Typeset>
@@ -316,12 +314,12 @@ export const TextExamples = weight => {
316314
return sizeVariant;
317315
};
318316

319-
**Font**: Proxima Nova
317+
**Font**: Figtree
320318
**Weight**: 700
321319

322320
<Typeset>{TextExamples(TEXT_WEIGHT.BOLD)}</Typeset>
323321

324-
**Font**: Proxima Nova
322+
**Font**: Figtree
325323
**Weight**: 400
326324

327325
<Typeset>{TextExamples(TEXT_WEIGHT.NORMAL)}</Typeset>

0 commit comments

Comments
 (0)