From f029a5c786b4b358b4f5b8a9d3463d2d97f856a5 Mon Sep 17 00:00:00 2001 From: Francis Thibault Date: Mon, 22 Apr 2024 15:20:38 -0400 Subject: [PATCH 1/2] replaced multiple inter fonts to a single one --- assets/fonts/fonts.css | 65 ++++-------------------------------------- 1 file changed, 5 insertions(+), 60 deletions(-) diff --git a/assets/fonts/fonts.css b/assets/fonts/fonts.css index 1df48a5..9b0ad28 100644 --- a/assets/fonts/fonts.css +++ b/assets/fonts/fonts.css @@ -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 { From 4a55180f1666f3b1589d81a9c80e1dc19e2831fc Mon Sep 17 00:00:00 2001 From: Francis Thibault Date: Mon, 22 Apr 2024 15:35:44 -0400 Subject: [PATCH 2/2] swapped inter font declaration --- .changeset/nasty-planes-complain.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/nasty-planes-complain.md diff --git a/.changeset/nasty-planes-complain.md b/.changeset/nasty-planes-complain.md new file mode 100644 index 0000000..744baf0 --- /dev/null +++ b/.changeset/nasty-planes-complain.md @@ -0,0 +1,5 @@ +--- +'@igloo-ui/tokens': minor +--- + +Fixed the Inter font declaration to use a woff2 variable font'