Skip to content

Commit 314a7fa

Browse files
committed
🍱(frontend) manage Inter font locally
We now use @fontsource-variable/inter package instead of relying on a Google CDN.
1 parent 9322746 commit 314a7fa

File tree

4 files changed

+7
-26
lines changed

4 files changed

+7
-26
lines changed

src/frontend/apps/impress/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@dnd-kit/modifiers": "9.0.0",
3131
"@emoji-mart/data": "1.2.1",
3232
"@emoji-mart/react": "1.1.1",
33+
"@fontsource-variable/inter": "5.2.8",
3334
"@fontsource/material-icons": "5.2.5",
3435
"@gouvfr-lasuite/integration": "1.0.3",
3536
"@gouvfr-lasuite/ui-kit": "0.16.1",

src/frontend/apps/impress/src/cunningham/cunningham-style.css

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,3 @@
7575
.c__toast__container:has(.c__toast) {
7676
z-index: 10000;
7777
}
78-
79-
@font-face {
80-
font-family: Inter;
81-
font-style: italic;
82-
font-weight: 100 900;
83-
font-display: swap;
84-
src: url('https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwQT9g.woff2')
85-
format('woff2');
86-
unicode-range:
87-
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
88-
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
89-
U+2215, U+FEFF, U+FFFD;
90-
}
91-
92-
@font-face {
93-
font-family: Inter;
94-
font-style: normal;
95-
font-weight: 100 900;
96-
font-display: swap;
97-
src: url('https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcviYwY.woff2')
98-
format('woff2');
99-
unicode-range:
100-
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
101-
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
102-
U+2215, U+FEFF, U+FFFD;
103-
}

src/frontend/apps/impress/src/pages/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import url('../cunningham/cunningham-style.css');
22
@import url('@fontsource/material-icons');
33
@import url('@fontsource/material-icons-outlined');
4+
@import url('@fontsource-variable/inter');
45
@import url('/assets/fonts/Marianne/Marianne-font.css');
56

67
body {

src/frontend/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,11 @@
17091709
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.10.tgz#a2a1e3812d14525f725d011a73eceb41fef5bc1c"
17101710
integrity sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==
17111711

1712+
"@fontsource-variable/[email protected]":
1713+
version "5.2.8"
1714+
resolved "https://registry.yarnpkg.com/@fontsource-variable/inter/-/inter-5.2.8.tgz#29b11476f5149f6a443b4df6516e26002d87941a"
1715+
integrity sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ==
1716+
17121717
"@fontsource-variable/[email protected]":
17131718
version "5.2.5"
17141719
resolved "https://registry.yarnpkg.com/@fontsource-variable/roboto-flex/-/roboto-flex-5.2.5.tgz#38368ea754697c2fdf08df11b06e8b6d391ff4c1"

0 commit comments

Comments
 (0)