Skip to content

Commit 8e70c8b

Browse files
feat: Remove UntitledSerif font usage (#2851)
* Remove Untitled serif usage * Undo storybook command modification
1 parent 27853ca commit 8e70c8b

5 files changed

Lines changed: 4 additions & 16 deletions

File tree

src/components/text/_subheadlines.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ $subheadlineSizeRules: (
6666

6767
.sg-subheadline {
6868
@include subheadlineTypeSizeVariant(medium);
69-
font-family: $fontFamilyUntitledSerif;
69+
font-family: $fontFamilyPrimary;
70+
font-feature-settings: $fontFeatureSettings;
7071
display: block;
7172
color: $black;
7273
font-weight: $fontWeightNormal;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const HeadlineExamples = extraBold => {
175175

176176
## Subheadlines
177177

178-
Subheadlines is reserved for marketing use only. Do not apply it on product pages and in the mobile application.
178+
Subheadlines are reserved for marketing use only. Do not apply it on product pages and in the mobile application.
179179

180180
We assumed that a ratio between line height and font size of subheadlines will be always constant and close as much as possible to a value of 1.125. This will provide us with the same proportions of text for each level on the scale.
181181

@@ -237,7 +237,7 @@ export const SubheadlineExamples = () => {
237237
return sizeVariant;
238238
};
239239

240-
**Font**: Untitled Serif
240+
**Font**: Figtree
241241
**Weight**: 400
242242

243243
<Typeset>{SubheadlineExamples()}</Typeset>

src/css/config/fontFamily.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
sans: ['Figtree', 'Helvetica', 'Arial', 'sans-serif'],
3-
serif: ['UntitledSerif', 'serif'],
43
mono: [
54
'ui-monospace',
65
'SFMono-Regular',

src/sass/_config.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ $shadowLarge: 0 8px 32px 0 rgba($gray-70, 0.2);
1010

1111
// Fonts
1212
$fontFamilyFigtree: 'Figtree';
13-
$fontFamilyUntitledSerif: 'UntitledSerif';
1413
$fontFamilyPrimary: $fontFamilyFigtree, 'Helvetica', 'Arial', sans-serif;
1514
$fontFeatureSettings: 'ss01' 1; /* enables single-storey 'a' */
1615
$fontWeightNormal: 400;

src/sass/_fonts.scss

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ $figtreeBoldWoff2Path: $sgFontsPath + 'Figtree-Bold.woff2';
66
$figtreeBoldWoffPath: $sgFontsPath + 'Figtree-Bold.woff';
77
$figtreeBlackWoff2Path: $sgFontsPath + 'Figtree-Black.woff2';
88
$figtreeBlackWoffPath: $sgFontsPath + 'Figtree-Black.woff';
9-
$untitledSerifRegularWoff2Path: $sgFontsPath + 'UntitledSerif-Regular.woff2';
10-
$untitledSerifRegularWoffPath: $sgFontsPath + 'UntitledSerif-Regular.woff';
119

1210
@if ($includeHtml and $includeFonts) {
1311
@font-face {
@@ -36,13 +34,4 @@ $untitledSerifRegularWoffPath: $sgFontsPath + 'UntitledSerif-Regular.woff';
3634
font-style: normal;
3735
font-display: swap;
3836
}
39-
40-
@font-face {
41-
font-family: $fontFamilyUntitledSerif;
42-
src: url($untitledSerifRegularWoff2Path) format('woff2'),
43-
url($untitledSerifRegularWoffPath) format('woff');
44-
font-weight: $fontWeightNormal;
45-
font-style: normal;
46-
font-display: swap;
47-
}
4837
}

0 commit comments

Comments
 (0)