Skip to content

Commit dc53a5a

Browse files
author
Antonio Maiolo
committed
feat(app,extension): replace WorkSans font with Inter
Closes #68
1 parent 90f0ec7 commit dc53a5a

10 files changed

Lines changed: 15 additions & 9 deletions

File tree

.changeset/inter-font-update.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"think-app": patch
3+
"think-extension": patch
4+
---
5+
6+
Replace WorkSans font with Inter for better readability

app/public/fonts/InterVariable.ttf

859 KB
Binary file not shown.
-351 KB
Binary file not shown.

app/src/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
}
77

88
@font-face {
9-
font-family: 'Work Sans';
10-
src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
9+
font-family: 'Inter';
10+
src: url('/fonts/InterVariable.ttf') format('truetype');
1111
font-weight: 100 900;
1212
font-display: swap;
1313
}
@@ -101,7 +101,7 @@
101101
}
102102
body {
103103
@apply bg-background text-foreground;
104-
font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
104+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
105105
-webkit-font-smoothing: antialiased;
106106
-moz-osx-font-smoothing: grayscale;
107107
background-image:

app/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
extend: {
1010
fontFamily: {
1111
sans: [
12-
'Work Sans',
12+
'Inter',
1313
'-apple-system',
1414
'BlinkMacSystemFont',
1515
'sans-serif'
859 KB
Binary file not shown.
-351 KB
Binary file not shown.

extension/src/content.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
height: 100vh !important;
7373
z-index: 2147483647 !important;
7474
box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
75-
font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
75+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
7676
-webkit-font-smoothing: antialiased;
7777
-moz-osx-font-smoothing: grayscale;
7878
background-color: hsl(var(--background));

extension/src/content.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ function init() {
115115
}
116116

117117
// Get font URLs using chrome.runtime.getURL
118-
const workSansUrl = chrome.runtime.getURL('fonts/WorkSans-VariableFont_wght.ttf');
118+
const interUrl = chrome.runtime.getURL('fonts/InterVariable.ttf');
119119
const goudyUrl = chrome.runtime.getURL('fonts/GoudyBookletter1911-Regular.ttf');
120120

121121
// Build @font-face CSS
122122
const fontFaceCSS =
123123
'@font-face {' +
124-
"font-family: 'Work Sans';" +
125-
"src: url('" + workSansUrl + "') format('truetype');" +
124+
"font-family: 'Inter';" +
125+
"src: url('" + interUrl + "') format('truetype');" +
126126
'font-weight: 100 900;' +
127127
'font-display: swap;' +
128128
'}' +

extension/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
extend: {
1010
fontFamily: {
1111
sans: [
12-
'Work Sans',
12+
'Inter',
1313
'-apple-system',
1414
'BlinkMacSystemFont',
1515
'sans-serif'

0 commit comments

Comments
 (0)