Skip to content

Commit

Permalink
Merge pull request #34 from gsoft-inc/feature/variable-font
Browse files Browse the repository at this point in the history
Feature/variable font
  • Loading branch information
fraincs authored Apr 26, 2024
2 parents 22d5c08 + 4a55180 commit f5a7c49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 60 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-planes-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@igloo-ui/tokens': minor
---

Fixed the Inter font declaration to use a woff2 variable font'
65 changes: 5 additions & 60 deletions assets/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -1,64 +1,9 @@
@font-face {
font-weight: 100;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Thin.ttf');
}

@font-face {
font-weight: 200;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-ExtraLight.ttf');
}

@font-face {
font-weight: 300;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Light.ttf');
}

@font-face {
font-weight: 400;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Regular.ttf');
}

@font-face {
font-weight: 500;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Medium.ttf');
}

@font-face {
font-weight: 600;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-SemiBold.ttf');
}

@font-face {
font-weight: 700;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Bold.ttf');
}

@font-face {
font-weight: 800;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-ExtraBold.ttf');
}

@font-face {
font-weight: 900;
font-family: 'Inter';
font-style: normal;
src: url('https://cdn.officevibe.com/assets/Fonts/Inter-Black.ttf');
font-family: Inter;
font-style: normal;
font-weight: 100 900;
src: url("https://cdn.platform.workleap.com/hopper/fonts/inter/v4/InterVariable.woff2") format("woff2-variations");
font-display: fallback;
}

@font-face {
Expand Down

0 comments on commit f5a7c49

Please sign in to comment.