Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/inter-font-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"think-app": patch
"think-extension": patch
---

Replace WorkSans font with Inter for better readability
Binary file added app/public/fonts/InterVariable.ttf
Binary file not shown.
Binary file removed app/public/fonts/WorkSans-VariableFont_wght.ttf
Binary file not shown.
6 changes: 3 additions & 3 deletions app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
}

@font-face {
font-family: 'Work Sans';
src: url('/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
font-family: 'Inter';
src: url('/fonts/InterVariable.ttf') format('truetype');
font-weight: 100 900;
font-display: swap;
}
Expand Down Expand Up @@ -101,7 +101,7 @@
}
body {
@apply bg-background text-foreground;
font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-image:
Expand Down
2 changes: 1 addition & 1 deletion app/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
extend: {
fontFamily: {
sans: [
'Work Sans',
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'sans-serif'
Expand Down
Binary file added extension/public/fonts/InterVariable.ttf
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion extension/src/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
height: 100vh !important;
z-index: 2147483647 !important;
box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: hsl(var(--background));
Expand Down
6 changes: 3 additions & 3 deletions extension/src/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ function init() {
}

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

// Build @font-face CSS
const fontFaceCSS =
'@font-face {' +
"font-family: 'Work Sans';" +
"src: url('" + workSansUrl + "') format('truetype');" +
"font-family: 'Inter';" +
"src: url('" + interUrl + "') format('truetype');" +
'font-weight: 100 900;' +
'font-display: swap;' +
'}' +
Expand Down
2 changes: 1 addition & 1 deletion extension/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
extend: {
fontFamily: {
sans: [
'Work Sans',
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'sans-serif'
Expand Down