Skip to content

Commit 5fc384a

Browse files
Font naming conventions and merges, T-20761
1 parent 77ff5a7 commit 5fc384a

File tree

9 files changed

+19
-28
lines changed

9 files changed

+19
-28
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Remove stylelint-file-max-lines, T-20765
1111
* Add more breakpoints like $container-desktop, T-20758
1212
* Fix burger navigation sometimes not being centered vertically
13+
* Change to new dev.docs.dude.fi way of naming conventions, combine font partials under variables to one _typography.scss file
14+
* Move font-face include under _typography.scss
1315

1416
### 9.4.4: 2024-09-13
1517

css/dev/global.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/dev/gutenberg-editor-styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sass/global.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// Variables
1616
@import 'variables/colors';
1717
@import 'variables/breakpoints';
18-
@import 'variables/font-face';
1918
@import 'variables/typography';
2019
@import 'variables/forms';
2120
@import 'variables/spacings';

sass/gutenberg-editor-styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@import 'base/accessibility';
2525

2626
// Gutenberg editor specific webfonts
27-
@import 'gutenberg/variables/font-face';
27+
@import 'gutenberg/variables/typography';
2828

2929
// Components needed by gutenberg
3030
@import 'components/components';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Font family settings for Gutenberg
1+
// Needed typography exceptions for Gutenberg
22

33
// Variable fonts
44
@include variablefont('Inter', '../../../../../content/themes/air-light/fonts/inter-variablefont', 1 999);

sass/variables/_font-face.scss

Lines changed: 0 additions & 13 deletions
This file was deleted.

sass/variables/_typography-family.scss

Lines changed: 0 additions & 10 deletions
This file was deleted.

sass/variables/_typography.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Self-hosted fonts
2+
// Remember to add these also to gutenberg/variables/_typography.scss with correct paths
3+
4+
// Variable fonts
5+
@include variablefont('Inter', '../../fonts/inter-variablefont', 1 999);
6+
7+
// Regular fonts
8+
// @include font('Inter', '../../fonts/inter-400', 400);
9+
// @include font('Inter', '../../fonts/inter-400-italic', 400, italic);
10+
// @include font('Inter', '../../fonts/inter-500', 500);
11+
// @include font('Inter', '../../fonts/inter-600', 600);
12+
// @include font('Inter', '../../fonts/inter-700', 700);
13+
114
// stylelint-disable rem-over-px/rem-over-px
215
// CSS Variables for responsive fonts
316
:root {

0 commit comments

Comments
 (0)