Skip to content

Commit

Permalink
Font naming conventions and merges, T-20761
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Oct 25, 2024
1 parent 77ff5a7 commit 5fc384a
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 28 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Remove stylelint-file-max-lines, T-20765
* Add more breakpoints like $container-desktop, T-20758
* Fix burger navigation sometimes not being centered vertically
* Change to new dev.docs.dude.fi way of naming conventions, combine font partials under variables to one _typography.scss file
* Move font-face include under _typography.scss

### 9.4.4: 2024-09-13

Expand Down
2 changes: 1 addition & 1 deletion css/dev/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion sass/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// Variables
@import 'variables/colors';
@import 'variables/breakpoints';
@import 'variables/font-face';
@import 'variables/typography';
@import 'variables/forms';
@import 'variables/spacings';
Expand Down
2 changes: 1 addition & 1 deletion sass/gutenberg-editor-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@import 'base/accessibility';

// Gutenberg editor specific webfonts
@import 'gutenberg/variables/font-face';
@import 'gutenberg/variables/typography';

// Components needed by gutenberg
@import 'components/components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Font family settings for Gutenberg
// Needed typography exceptions for Gutenberg

// Variable fonts
@include variablefont('Inter', '../../../../../content/themes/air-light/fonts/inter-variablefont', 1 999);
Expand Down
13 changes: 0 additions & 13 deletions sass/variables/_font-face.scss

This file was deleted.

10 changes: 0 additions & 10 deletions sass/variables/_typography-family.scss

This file was deleted.

13 changes: 13 additions & 0 deletions sass/variables/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Self-hosted fonts
// Remember to add these also to gutenberg/variables/_typography.scss with correct paths

// Variable fonts
@include variablefont('Inter', '../../fonts/inter-variablefont', 1 999);

// Regular fonts
// @include font('Inter', '../../fonts/inter-400', 400);
// @include font('Inter', '../../fonts/inter-400-italic', 400, italic);
// @include font('Inter', '../../fonts/inter-500', 500);
// @include font('Inter', '../../fonts/inter-600', 600);
// @include font('Inter', '../../fonts/inter-700', 700);

// stylelint-disable rem-over-px/rem-over-px
// CSS Variables for responsive fonts
:root {
Expand Down

0 comments on commit 5fc384a

Please sign in to comment.