From d5a15bce78f52d97fc4102f38934acfae71d85f4 Mon Sep 17 00:00:00 2001 From: abdullahalam123 Date: Wed, 22 Oct 2025 21:37:03 +0530 Subject: [PATCH] remove(simpleanalytics): remove simple analytics for self hosted version feat(fonts): replace google fonts with self-hosted fontsource packages Add fontsource packages for all fonts previously loaded from Google Fonts. Remove google fonts CDN links and update CSS to use local font imports. This improves privacy by removing external dependencies and tracking. --- index.html | 22 -------------- package-lock.json | 74 ++++++++++++++++++++++++++++++++++++++++++++-- package.json | 7 +++++ src/css/styles.css | 44 +++++++++++++++++++++++++++ 4 files changed, 123 insertions(+), 24 deletions(-) diff --git a/index.html b/index.html index 6ade8a4e..a1b371c2 100644 --- a/index.html +++ b/index.html @@ -4,28 +4,6 @@ BentoPDF - The Privacy First PDF Toolkit - - - - - - - diff --git a/package-lock.json b/package-lock.json index dfeed83f..6b46b8d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,21 @@ { "name": "bento-pdf", - "version": "1.0.1", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bento-pdf", - "version": "1.0.1", + "version": "1.1.0", "license": "Apache-2.0", "dependencies": { + "@fontsource/cedarville-cursive": "^5.2.7", + "@fontsource/dancing-script": "^5.2.8", + "@fontsource/dm-sans": "^5.2.8", + "@fontsource/great-vibes": "^5.2.8", + "@fontsource/kalam": "^5.2.8", + "@fontsource/lato": "^5.2.7", + "@fontsource/merriweather": "^5.2.11", "@neslinesli93/qpdf-wasm": "^0.3.0", "@tailwindcss/vite": "^4.1.15", "blob-stream": "^0.1.3", @@ -2576,6 +2583,69 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/@fontsource/cedarville-cursive": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/@fontsource/cedarville-cursive/-/cedarville-cursive-5.2.7.tgz", + "integrity": "sha512-G1Wcc8U9MsFV7t4vmxSaWEDVcJj86qbkuS/V27S5UngxkX6CoTpEdvDeGUIKBlF8FoHCDOQxSNZCFuCafRmvUg==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/dancing-script": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource/dancing-script/-/dancing-script-5.2.8.tgz", + "integrity": "sha512-zHVVgIQ5/rAIM0VVp1QMsqvJm9INHO5/C82E9rHT6NlabjaPTFYn8wl9lT4vPWizfB0TublGQM1999kfdA+XFA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/dm-sans": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource/dm-sans/-/dm-sans-5.2.8.tgz", + "integrity": "sha512-tlovG42m9ESG28WiHpLq3F5umAlm64rv0RkqTbYowRn70e9OlRr5a3yTJhrhrY+k5lftR/OFJjPzOLQzk8EfCA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/great-vibes": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource/great-vibes/-/great-vibes-5.2.8.tgz", + "integrity": "sha512-/PATz436NGixjNaigierUpv50wfNv2UhAAijcCPkn4ynvl41x66TCLbXVSVfp4pth9gjWnGqgoj0lVIhHapAuw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/kalam": { + "version": "5.2.8", + "resolved": "https://registry.npmjs.org/@fontsource/kalam/-/kalam-5.2.8.tgz", + "integrity": "sha512-9WDYPX1llS28xRjrqAoz3IOLeaBhCtL3HCtNanYnF1fthFPmSD5aESL6s7C1SJxAlxq/qzTlpIpw4S1W9+q3OA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/lato": { + "version": "5.2.7", + "resolved": "https://registry.npmjs.org/@fontsource/lato/-/lato-5.2.7.tgz", + "integrity": "sha512-k5mum1ADbDW5cTw1Ett1eQVWeoZ6gq0ct6SFBibEhB4LRxhniChJZTBgd6ph5yBxLkN1fcnsnmicBNA4S/3nbw==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/merriweather": { + "version": "5.2.11", + "resolved": "https://registry.npmjs.org/@fontsource/merriweather/-/merriweather-5.2.11.tgz", + "integrity": "sha512-ZiIMeUh5iT8d73o6xlSF8GKgjV5pgiFrufYc5jZTVAfExtWKqM2vQHnsqXSFMv4ELhAcjt6Vf+5T3oVGXhAizQ==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", diff --git a/package.json b/package.json index 582df8c1..a128f69a 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,13 @@ "vitest": "^3.2.4" }, "dependencies": { + "@fontsource/cedarville-cursive": "^5.2.7", + "@fontsource/dancing-script": "^5.2.8", + "@fontsource/dm-sans": "^5.2.8", + "@fontsource/great-vibes": "^5.2.8", + "@fontsource/kalam": "^5.2.8", + "@fontsource/lato": "^5.2.7", + "@fontsource/merriweather": "^5.2.11", "@neslinesli93/qpdf-wasm": "^0.3.0", "@tailwindcss/vite": "^4.1.15", "blob-stream": "^0.1.3", diff --git a/src/css/styles.css b/src/css/styles.css index 38dbcbdd..79d53ff3 100644 --- a/src/css/styles.css +++ b/src/css/styles.css @@ -1,5 +1,49 @@ +@import '@fontsource/dm-sans/400.css'; +@import '@fontsource/dm-sans/500.css'; +@import '@fontsource/dm-sans/600.css'; +@import '@fontsource/dm-sans/700.css'; +@import '@fontsource/dancing-script/400.css'; +@import '@fontsource/great-vibes/400.css'; +@import '@fontsource/kalam/300.css'; +@import '@fontsource/kalam/400.css'; +@import '@fontsource/kalam/700.css'; +@import '@fontsource/lato/400.css'; +@import '@fontsource/lato/700.css'; +@import '@fontsource/lato/400-italic.css'; +@import '@fontsource/merriweather/400.css'; +@import '@fontsource/merriweather/700.css'; +@import '@fontsource/merriweather/400-italic.css'; +@import '@fontsource/cedarville-cursive/400.css'; +@import 'cropperjs/dist/cropper.css'; @import 'tailwindcss'; +@theme { + --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif; + --font-dancing: 'Dancing Script', cursive; + --font-vibes: 'Great Vibes', cursive; + --font-kalam: 'Kalam', cursive; + --font-lato: 'Lato', sans-serif; + --font-merriweather: 'Merriweather', serif; + --font-cedarville: 'Cedarville Cursive', cursive; +} + +@layer base { + body { + @apply antialiased; + font-family: var(--font-sans); + } +} + +@theme { + --font-sans: 'DM Sans', ui-sans-serif, system-ui; + --font-dancing: 'Dancing Script', cursive; + --font-vibes: 'Great Vibes', cursive; + --font-kalam: 'Kalam', cursive; + --font-lato: 'Lato', sans-serif; + --font-merriweather: 'Merriweather', serif; + --font-cedarville: 'Cedarville Cursive', cursive; +} + html { scroll-behavior: smooth; }