A local-first personal finance app
Switch to Inter’s variable font version (#444)
Jed Foxd1f04b1292e9
diff --git a/packages/desktop-client/package.json b/packages/desktop-client/package.jsonindex 48a15647f5..def1ab15bf 100644--- a/packages/desktop-client/package.json+++ b/packages/desktop-client/package.json@@ -99,6 +99,7 @@"@react-aria/utils": "^3.13.3","@react-stately/collections": "^3.4.3","@react-stately/list": "^3.5.3",+ "inter-ui": "^3.19.3","react-router-dom-v5-compat": "^6.4.1"}}diff --git a/packages/desktop-client/public/Inter/Inter-Black.woff2 b/packages/desktop-client/public/Inter/Inter-Black.woff2deleted file mode 100644index b16b995bee..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Black.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-BlackItalic.woff2 b/packages/desktop-client/public/Inter/Inter-BlackItalic.woff2deleted file mode 100644index a3f1b70cdf..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-BlackItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Bold.woff2 b/packages/desktop-client/public/Inter/Inter-Bold.woff2deleted file mode 100644index 835dd4977a..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Bold.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-BoldItalic.woff2 b/packages/desktop-client/public/Inter/Inter-BoldItalic.woff2deleted file mode 100644index 1a41a14ff1..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-BoldItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-ExtraBold.woff2 b/packages/desktop-client/public/Inter/Inter-ExtraBold.woff2deleted file mode 100644index ae956b1501..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-ExtraBold.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-ExtraBoldItalic.woff2 b/packages/desktop-client/public/Inter/Inter-ExtraBoldItalic.woff2deleted file mode 100644index 86578995d2..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-ExtraBoldItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-ExtraLight.woff2 b/packages/desktop-client/public/Inter/Inter-ExtraLight.woff2deleted file mode 100644index 694b2df9fa..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-ExtraLight.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-ExtraLightItalic.woff2 b/packages/desktop-client/public/Inter/Inter-ExtraLightItalic.woff2deleted file mode 100644index 9a7bd11090..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-ExtraLightItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Italic.woff2 b/packages/desktop-client/public/Inter/Inter-Italic.woff2deleted file mode 100644index deca637d81..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Italic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Light.woff2 b/packages/desktop-client/public/Inter/Inter-Light.woff2deleted file mode 100644index 65a7dadddb..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Light.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-LightItalic.woff2 b/packages/desktop-client/public/Inter/Inter-LightItalic.woff2deleted file mode 100644index 555fc55955..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-LightItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Medium.woff2 b/packages/desktop-client/public/Inter/Inter-Medium.woff2deleted file mode 100644index 871ce4ce5d..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Medium.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-MediumItalic.woff2 b/packages/desktop-client/public/Inter/Inter-MediumItalic.woff2deleted file mode 100644index aa8057992b..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-MediumItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Regular.woff2 b/packages/desktop-client/public/Inter/Inter-Regular.woff2deleted file mode 100644index b52dd0a0b7..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Regular.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-SemiBold.woff2 b/packages/desktop-client/public/Inter/Inter-SemiBold.woff2deleted file mode 100644index ece5204a19..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-SemiBold.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-SemiBoldItalic.woff2 b/packages/desktop-client/public/Inter/Inter-SemiBoldItalic.woff2deleted file mode 100644index b32c0ba3bd..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-SemiBoldItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-Thin.woff2 b/packages/desktop-client/public/Inter/Inter-Thin.woff2deleted file mode 100644index c56bc7ca6d..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-Thin.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/Inter-ThinItalic.woff2 b/packages/desktop-client/public/Inter/Inter-ThinItalic.woff2deleted file mode 100644index eca5608c0f..0000000000Binary files a/packages/desktop-client/public/Inter/Inter-ThinItalic.woff2 and /dev/null differdiff --git a/packages/desktop-client/public/Inter/inter.css b/packages/desktop-client/public/Inter/inter.cssdeleted file mode 100644index 19565c2755..0000000000--- a/packages/desktop-client/public/Inter/inter.css+++ /dev/null@@ -1,178 +0,0 @@-@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 100;- font-display: swap;- src: url("Inter-Thin.woff2?v=3.12") format("woff2"),- url("Inter-Thin.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 100;- font-display: swap;- src: url("Inter-ThinItalic.woff2?v=3.12") format("woff2"),- url("Inter-ThinItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 200;- font-display: swap;- src: url("Inter-ExtraLight.woff2?v=3.12") format("woff2"),- url("Inter-ExtraLight.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 200;- font-display: swap;- src: url("Inter-ExtraLightItalic.woff2?v=3.12") format("woff2"),- url("Inter-ExtraLightItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 300;- font-display: swap;- src: url("Inter-Light.woff2?v=3.12") format("woff2"),- url("Inter-Light.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 300;- font-display: swap;- src: url("Inter-LightItalic.woff2?v=3.12") format("woff2"),- url("Inter-LightItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 400;- font-display: swap;- src: url("Inter-Regular.woff2?v=3.12") format("woff2"),- url("Inter-Regular.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 400;- font-display: swap;- src: url("Inter-Italic.woff2?v=3.12") format("woff2"),- url("Inter-Italic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 500;- font-display: swap;- src: url("Inter-Medium.woff2?v=3.12") format("woff2"),- url("Inter-Medium.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 500;- font-display: swap;- src: url("Inter-MediumItalic.woff2?v=3.12") format("woff2"),- url("Inter-MediumItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 600;- font-display: swap;- src: url("Inter-SemiBold.woff2?v=3.12") format("woff2"),- url("Inter-SemiBold.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 600;- font-display: swap;- src: url("Inter-SemiBoldItalic.woff2?v=3.12") format("woff2"),- url("Inter-SemiBoldItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 700;- font-display: swap;- src: url("Inter-Bold.woff2?v=3.12") format("woff2"),- url("Inter-Bold.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 700;- font-display: swap;- src: url("Inter-BoldItalic.woff2?v=3.12") format("woff2"),- url("Inter-BoldItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 800;- font-display: swap;- src: url("Inter-ExtraBold.woff2?v=3.12") format("woff2"),- url("Inter-ExtraBold.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 800;- font-display: swap;- src: url("Inter-ExtraBoldItalic.woff2?v=3.12") format("woff2"),- url("Inter-ExtraBoldItalic.woff?v=3.12") format("woff");-}--@font-face {- font-family: 'Inter';- font-style: normal;- font-weight: 900;- font-display: swap;- src: url("Inter-Black.woff2?v=3.12") format("woff2"),- url("Inter-Black.woff?v=3.12") format("woff");-}-@font-face {- font-family: 'Inter';- font-style: italic;- font-weight: 900;- font-display: swap;- src: url("Inter-BlackItalic.woff2?v=3.12") format("woff2"),- url("Inter-BlackItalic.woff?v=3.12") format("woff");-}--/* --------------------------------------------------------Variable font.-Usage:-- html { font-family: 'Inter', sans-serif; }- @supports (font-variation-settings: normal) {- html { font-family: 'Inter var', sans-serif; }- }-*/-@font-face {- font-family: 'Inter var';- font-weight: 100 900;- font-display: swap;- font-style: normal;- font-named-instance: 'Regular';- src: url("Inter-roman.var.woff2?v=3.12") format("woff2");-}-@font-face {- font-family: 'Inter var';- font-weight: 100 900;- font-display: swap;- font-style: italic;- font-named-instance: 'Italic';- src: url("Inter-italic.var.woff2?v=3.12") format("woff2");-}diff --git a/packages/desktop-client/public/index.html b/packages/desktop-client/public/index.htmlindex 70e89f208b..109f672189 100644--- a/packages/desktop-client/public/index.html+++ b/packages/desktop-client/public/index.html@@ -35,7 +35,6 @@<meta name="msapplication-TileColor" content="#da532c" /><meta name="theme-color" content="#ffffff" />- <link rel="stylesheet" href="%PUBLIC_URL%/Inter/inter.css" /><style type="text/css">html,body {@@ -49,7 +48,7 @@body,button,input {- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',+ font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', 'Helvetica', 'Arial', sans-serif;}@@ -73,7 +72,7 @@input,textarea {font-size: 1em;- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',+ font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', 'Helvetica', 'Arial', sans-serif;}diff --git a/packages/desktop-client/src/index.js b/packages/desktop-client/src/index.jsindex 0cea1e10e6..1a7b31c9ec 100644--- a/packages/desktop-client/src/index.js+++ b/packages/desktop-client/src/index.js@@ -5,6 +5,8 @@ import './browser-preload';// A hack for now: this makes sure it's appended before glamorimport '@reach/listbox/styles.css';+import 'inter-ui/inter.css';+import React from 'react';import ReactDOM from 'react-dom';import { Provider } from 'react-redux';diff --git a/packages/desktop-electron/index.js b/packages/desktop-electron/index.jsindex 6318108088..7428e4f92a 100644--- a/packages/desktop-electron/index.js+++ b/packages/desktop-electron/index.js@@ -269,7 +269,7 @@ app.on('ready', async () => {const pathname = parsedUrl.pathname;- if (pathname.startsWith('/static') || pathname.startsWith('/Inter')) {+ if (pathname.startsWith('/static')) {callback({path: path.normalize(`${__dirname}/client-build${pathname}`)});diff --git a/yarn.lock b/yarn.lockindex 4c722e1364..c8bb3944d9 100644--- a/yarn.lock+++ b/yarn.lock@@ -95,6 +95,7 @@ __metadata:glamor: ^2.20.40html-webpack-plugin: 4.0.0-alpha.2identity-obj-proxy: 3.0.0+ inter-ui: ^3.19.3load-js: ^3.0.3mini-css-extract-plugin: 0.4.3mitt: ^1.1.2@@ -13112,6 +13113,13 @@ __metadata:languageName: nodelinkType: hard+"inter-ui@npm:^3.19.3":+ version: 3.19.3+ resolution: "inter-ui@npm:3.19.3"+ checksum: 74435e742e9829402cf15ac08aa48541c93e96d7528a29ba3bc2a14b059ccd3f330ddba8b1c96f06bfdda46b0c7e1a406db22a309045b3412b66ec4dcb5efa2a+ languageName: node+ linkType: hard+"internal-ip@npm:^4.3.0":version: 4.3.0resolution: "internal-ip@npm:4.3.0"