Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Bump fonts (#2036)

Bogdan Chadkinbcc4556f2612
diff --git a/apps/builder/app/routes/vercel-deploy-workaround.tsx b/apps/builder/app/routes/vercel-deploy-workaround.tsx
index 89c6779ef9..22534b571b 100644
--- a/apps/builder/app/routes/vercel-deploy-workaround.tsx
+++ b/apps/builder/app/routes/vercel-deploy-workaround.tsx
@@ -1,11 +1,8 @@
import type { LinksFunction } from "@remix-run/node";
import { Root } from "~/shared/remix";
-// eslint-disable-next-line import/no-internal-modules
-import interFont from "@fontsource/inter/variable.css";
-// eslint-disable-next-line import/no-internal-modules
-import manropeVariableFont from "@fontsource/manrope/variable.css";
-// eslint-disable-next-line import/no-internal-modules
+import interFont from "@fontsource-variable/inter/index.css";
+import manropeVariableFont from "@fontsource-variable/manrope/index.css";
import robotoMonoFont from "@fontsource/roboto-mono/index.css";
// eslint-disable-next-line import/no-internal-modules
import appCss from "../shared/app.css";
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 537fa3f21b..be7922d743 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -18,9 +18,9 @@
},
"dependencies": {
"@floating-ui/dom": "^1.4.5",
- "@fontsource/inter": "^4.5.15",
- "@fontsource/manrope": "^4.5.13",
- "@fontsource/roboto-mono": "^4.5.10",
+ "@fontsource-variable/inter": "^5.0.7",
+ "@fontsource-variable/manrope": "^5.0.7",
+ "@fontsource/roboto-mono": "^5.0.7",
"@lexical/headless": "^0.11.3",
"@lexical/link": "^0.11.3",
"@lexical/react": "^0.11.3",
diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.js
index eb3f02b9fa..cde17c98f7 100644
--- a/packages/eslint-config-custom/index.js
+++ b/packages/eslint-config-custom/index.js
@@ -49,6 +49,8 @@ module.exports = {
"colord/plugins/*",
"react/*",
"react-dom/*",
+ "@fontsource/**",
+ "@fontsource-variable/**",
],
},
],
diff --git a/packages/storybook-config/package.json b/packages/storybook-config/package.json
index 20d947acfb..26a86fefd7 100644
--- a/packages/storybook-config/package.json
+++ b/packages/storybook-config/package.json
@@ -5,9 +5,9 @@
"license": "AGPL-3.0-or-later",
"main": "index.ts",
"dependencies": {
- "@fontsource/inter": "^4.5.15",
- "@fontsource/manrope": "^4.5.13",
- "@fontsource/roboto-mono": "^4.5.10",
+ "@fontsource-variable/inter": "^5.0.7",
+ "@fontsource-variable/manrope": "^5.0.7",
+ "@fontsource/roboto-mono": "^5.0.7",
"@storybook/addon-essentials": "^7.1.0",
"@storybook/addon-links": "^7.1.0",
"@storybook/react": "^7.1.0",
diff --git a/packages/storybook-config/setup-fonts.js b/packages/storybook-config/setup-fonts.js
index d5a59a02f4..59620db51e 100644
--- a/packages/storybook-config/setup-fonts.js
+++ b/packages/storybook-config/setup-fonts.js
@@ -4,6 +4,6 @@
// import "@webstudio-is/storybook-config/setup-fonts";
// this adds <style> tags to the <head> of the document
-import "@fontsource/inter/variable.css";
-import "@fontsource/manrope/variable.css";
+import "@fontsource-variable/inter";
+import "@fontsource-variable/manrope";
import "@fontsource/roboto-mono";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bcf13728b5..f2d94b5585 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -51,15 +51,15 @@ importers:
'@floating-ui/dom':
specifier: ^1.4.5
version: 1.4.5
- '@fontsource/inter':
- specifier: ^4.5.15
- version: 4.5.15
- '@fontsource/manrope':
- specifier: ^4.5.13
- version: 4.5.13
+ '@fontsource-variable/inter':
+ specifier: ^5.0.7
+ version: 5.0.7
+ '@fontsource-variable/manrope':
+ specifier: ^5.0.7
+ version: 5.0.7
'@fontsource/roboto-mono':
- specifier: ^4.5.10
- version: 4.5.10
+ specifier: ^5.0.7
+ version: 5.0.7
'@lexical/headless':
specifier: ^0.11.3
version: 0.11.3([email protected])
@@ -1488,15 +1488,15 @@ importers:
packages/storybook-config:
dependencies:
- '@fontsource/inter':
- specifier: ^4.5.15
- version: 4.5.15
- '@fontsource/manrope':
- specifier: ^4.5.13
- version: 4.5.13
+ '@fontsource-variable/inter':
+ specifier: ^5.0.7
+ version: 5.0.7
+ '@fontsource-variable/manrope':
+ specifier: ^5.0.7
+ version: 5.0.7
'@fontsource/roboto-mono':
- specifier: ^4.5.10
- version: 4.5.10
+ specifier: ^5.0.7
+ version: 5.0.7
'@storybook/addon-essentials':
specifier: ^7.1.0
@@ -3776,16 +3776,16 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
- /@fontsource/[email protected]:
- resolution: {integrity: sha512-FzleM9AxZQK2nqsTDtBiY0PMEVWvnKnuu2i09+p6DHvrHsuucoV2j0tmw+kAT3L4hvsLdAIDv6MdGehsPIdT+Q==}
+ /@fontsource-variable/[email protected]:
+ resolution: {integrity: sha512-aOG0xPnkjV9w5Iw9maGWYyM3P2ivRKCFHkzbSVN2MAmwsMQJP3Dkr6Og1FSHoQBZjGx4SfMWTU72h+dXthND5g==}
dev: false
- /@fontsource/[email protected]:
- resolution: {integrity: sha512-UFN5DMGBp8nFpwhPQXfpSbsEm4OVISqUKQy+rA+pb1zYGoH+OGN1woKEND8VLx+pC7rY3nrPRCJvSuuOaNdW7Q==}
+ /@fontsource-variable/[email protected]:
+ resolution: {integrity: sha512-oINx3CaHesmOXHTcrKyAKhXCPZC5Lk7ozNJ27iS74uKfgbBXUWhrEYLDPnNB1UrzLg8kui+TqI8VbfeSltzObQ==}
dev: false
- /@fontsource/[email protected]:
- resolution: {integrity: sha512-KrJdmkqz6DszT2wV/bbhXef4r0hV3B0vw2mAqei8A2kRnvq+gcJLmmIeQ94vu9VEXrUQzos5M9lH1TAAXpRphw==}
+ /@fontsource/[email protected]:
+ resolution: {integrity: sha512-P7VYxIxAGBxqH3ZyWCGi0zKg9kdO6YGu2U3IJKl6rQyRAZ29Y5V1VBY2XocfRaIocGqIaB5t+0P/RBt9alDn4w==}
dev: false