From c16f1502e5fb0d45207bac73e249fe8d52952e7a Mon Sep 17 00:00:00 2001 From: Cold Fry Date: Wed, 8 Apr 2026 15:10:43 +0000 Subject: [PATCH] playground: drop Iosevka font, use defaults --- website/package-lock.json | 10 ---------- website/package.json | 1 - website/src/components/playground/Editor.tsx | 2 +- website/src/components/playground/playground.css | 7 ++----- 4 files changed, 3 insertions(+), 17 deletions(-) diff --git a/website/package-lock.json b/website/package-lock.json index d558f68..b1134e7 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "@astrojs/react": "5.0.2", "@astrojs/starlight": "^0.38.2", - "@fontsource/iosevka": "5.2.5", "@monaco-editor/react": "4.7.0", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", @@ -1082,15 +1081,6 @@ "@expressive-code/core": "^0.41.7" } }, - "node_modules/@fontsource/iosevka": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/@fontsource/iosevka/-/iosevka-5.2.5.tgz", - "integrity": "sha512-Zv/UHJodDug1LcnWv2u2+GPp3oWP3U6Xp16cJOsqqZQNsCu8sA/ttT331N0NypxBZ+7c8szlSRlYDcy9liZ8pw==", - "license": "OFL-1.1", - "funding": { - "url": "https://github.com/sponsors/ayuhito" - } - }, "node_modules/@img/colour": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", diff --git a/website/package.json b/website/package.json index 6196469..c6b46cd 100644 --- a/website/package.json +++ b/website/package.json @@ -12,7 +12,6 @@ "dependencies": { "@astrojs/react": "5.0.2", "@astrojs/starlight": "^0.38.2", - "@fontsource/iosevka": "5.2.5", "@monaco-editor/react": "4.7.0", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", diff --git a/website/src/components/playground/Editor.tsx b/website/src/components/playground/Editor.tsx index 34db985..20e129c 100644 --- a/website/src/components/playground/Editor.tsx +++ b/website/src/components/playground/Editor.tsx @@ -52,7 +52,7 @@ export function Editor({ readOnly, fixedOverflowWidgets: true, minimap: { enabled: false }, - fontFamily: '"Iosevka", "JetBrains Mono", "Fira Code", monospace', + fontFamily: '"JetBrains Mono", "Fira Code", monospace', fontSize: 14, lineNumbers: "on", scrollBeyondLastLine: false, diff --git a/website/src/components/playground/playground.css b/website/src/components/playground/playground.css index 62ca25e..876d6c6 100644 --- a/website/src/components/playground/playground.css +++ b/website/src/components/playground/playground.css @@ -1,6 +1,3 @@ -@import "@fontsource/iosevka/400.css"; -@import "@fontsource/iosevka/600.css"; - /* ---- Theme variables ---- */ .pg-root { --pg-bg: #1e1e2e; @@ -304,7 +301,7 @@ padding: 0.75rem; background: var(--pg-error-bg); color: var(--pg-output-err); - font-family: "Iosevka", "JetBrains Mono", monospace; + font-family: "JetBrains Mono", monospace; font-size: 0.75rem; border-top: 1px solid var(--pg-input-border); max-height: 6rem; @@ -330,7 +327,7 @@ flex: 1; overflow-y: auto; padding: 0.75rem; - font-family: "Iosevka", "JetBrains Mono", monospace; + font-family: "JetBrains Mono", monospace; font-size: 0.875rem; } .pg-output-empty {