feat: add selectable interface and code fonts (10 for each)

Adds separate UI and code font choices in settings
Applies font changes immediately
Lazy-loads selected remote fonts
This commit is contained in:
Bohdan Triapitsyn
2026-04-26 18:48:43 +03:00
parent a3b300f7a9
commit 799998c5f8
15 changed files with 356 additions and 4 deletions
+6 -2
View File
@@ -1,4 +1,5 @@
import type { MonoFontOption, UiFontOption } from '@/lib/fontOptions';
import { useUIStore } from '@/stores/useUIStore';
interface FontPreferences {
uiFont: UiFontOption;
@@ -6,8 +7,11 @@ interface FontPreferences {
}
export const useFontPreferences = (): FontPreferences => {
const uiFont = useUIStore(state => state.uiFont);
const monoFont = useUIStore(state => state.monoFont);
return {
uiFont: 'ibm-plex-sans',
monoFont: 'ibm-plex-mono',
uiFont,
monoFont,
};
};