Skip to content

Commit

Permalink
fix(core): add missing inter fontface for weights 800+900 (#5490)
Browse files Browse the repository at this point in the history
* fix(core): add missing inter wwoff fontface for weights 800+900

* fix(dep): update sanity/ui dependecy to 2.0.0-beta.18
  • Loading branch information
ninaandal authored Jan 12, 2024
1 parent ee9f89f commit ec84a42
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dev/design-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@sanity/icons": "^2.8.0",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanity": "3.24.1",
Expand Down
2 changes: 1 addition & 1 deletion dev/embedded-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview"
},
"dependencies": {
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanity": "3.24.1",
Expand Down
2 changes: 1 addition & 1 deletion dev/studio-e2e-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@sanity/google-maps-input": "^3.0.1",
"@sanity/icons": "^2.8.0",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"@sanity/vision": "3.24.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@sanity/portable-text-editor": "3.24.1",
"@sanity/tsdoc": "1.0.0-alpha.38",
"@sanity/types": "3.24.1",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"@sanity/ui-workshop": "^1.0.0",
"@sanity/util": "3.24.1",
"@sanity/uuid": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/ecommerce-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@sanity/cli": "3.24.1",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"react": "^18.2.0",
"react-barcode": "^1.4.1",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/portable-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@playwright/test": "^1.39.0",
"@portabletext/toolkit": "^2.0.10",
"@sanity/diff-match-patch": "^3.1.1",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"@testing-library/react": "^13.4.0",
"@types/debug": "^4.1.5",
"@types/express": "^4.16.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@rexxars/react-split-pane": "^0.1.93",
"@sanity/color": "3.0.0-beta.9",
"@sanity/icons": "^2.8.0",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"@uiw/react-codemirror": "^4.11.4",
"hashlru": "^2.3.0",
"is-hotkey": "^0.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
"@sanity/schema": "3.24.1",
"@sanity/telemetry": "^0.7.5",
"@sanity/types": "3.24.1",
"@sanity/ui": "2.0.0-beta.17",
"@sanity/ui": "2.0.0-beta.18",
"@sanity/util": "3.24.1",
"@sanity/uuid": "^3.0.1",
"@tanstack/react-virtual": "3.0.0-beta.54",
Expand Down
28 changes: 28 additions & 0 deletions packages/sanity/src/core/components/DefaultDocument.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,34 @@ const globalStyles = `
font-display: swap;
src: url("https://studio-static.sanity.io/Inter-BoldItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 800;
font-display: swap;
src: url("https://studio-static.sanity.io/Inter-ExtraBold.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 800;
font-display: swap;
src: url("https://studio-static.sanity.io/Inter-ExtraBoldItalic.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("https://studio-static.sanity.io/Inter-Black.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 900;
font-display: swap;
src: url("https://studio-static.sanity.io/Inter-BlackItalic.woff2") format("woff2");
}
html {
background-color: #f1f3f6;
}
Expand Down

2 comments on commit ec84a42

@vercel
Copy link

@vercel vercel bot commented on ec84a42 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

performance-studio – ./

performance-studio.sanity.build
performance-studio-git-next.sanity.build

@vercel
Copy link

@vercel vercel bot commented on ec84a42 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.