feat: fonts with cyrillic support

This commit is contained in:
kilyabin
2026-04-18 02:16:57 +04:00
parent ee437fca5a
commit 4f188be792
5 changed files with 41 additions and 3 deletions
+4
View File
@@ -1812,6 +1812,8 @@ export default function Settings() {
{ id: 'lexend', label: 'Lexend' },
{ id: 'geist', label: 'Geist' },
{ id: 'jetbrains-mono', label: 'JetBrains Mono' },
{ id: 'golos-text', label: 'Golos Text' },
{ id: 'unbounded', label: 'Unbounded' },
] as { id: FontId; label: string }[]).find(f => f.id === fontStore.font)?.label ?? fontStore.font
}</span>
<ChevronDown size={14} style={{ color: 'var(--text-muted)', transform: fontPickerOpen ? 'rotate(180deg)' : 'none', transition: 'transform 0.2s' }} />
@@ -1832,6 +1834,8 @@ export default function Settings() {
{ id: 'lexend', label: 'Lexend', stack: "'Lexend Variable', sans-serif" },
{ id: 'geist', label: 'Geist', stack: "'Geist Variable', sans-serif" },
{ id: 'jetbrains-mono', label: 'JetBrains Mono', stack: "'JetBrains Mono Variable', monospace" },
{ id: 'golos-text', label: 'Golos Text', stack: "'Golos Text Variable', sans-serif" },
{ id: 'unbounded', label: 'Unbounded', stack: "'Unbounded Variable', sans-serif" },
] as { id: FontId; label: string; stack: string }[]
).map(f => (
<button
+1 -1
View File
@@ -1,7 +1,7 @@
import { create } from 'zustand';
import { persist } from 'zustand/middleware';
export type FontId = 'inter' | 'outfit' | 'dm-sans' | 'nunito' | 'rubik' | 'space-grotesk' | 'figtree' | 'manrope' | 'plus-jakarta-sans' | 'lexend' | 'geist' | 'jetbrains-mono';
export type FontId = 'inter' | 'outfit' | 'dm-sans' | 'nunito' | 'rubik' | 'space-grotesk' | 'figtree' | 'manrope' | 'plus-jakarta-sans' | 'lexend' | 'geist' | 'jetbrains-mono' | 'golos-text' | 'unbounded';
interface FontState {
font: FontId;
+12
View File
@@ -22,6 +22,8 @@
@import '@fontsource-variable/geist';
@import '@fontsource-variable/jetbrains-mono';
@import '@fontsource-variable/jetbrains-mono/wght-italic.css';
@import '@fontsource-variable/golos-text';
@import '@fontsource-variable/unbounded';
/* ─── Catppuccin Mocha Variables ─── */
:root,
@@ -6441,6 +6443,16 @@ input[type="range"]:hover::-webkit-slider-thumb {
--font-display: 'JetBrains Mono Variable', monospace;
}
[data-font='golos-text'] {
--font-sans: 'Golos Text Variable', system-ui, sans-serif;
--font-display: 'Golos Text Variable', sans-serif;
}
[data-font='unbounded'] {
--font-sans: 'Unbounded Variable', system-ui, sans-serif;
--font-display: 'Unbounded Variable', sans-serif;
}
/* ─── Equalizer bars animation ─── */
.eq-bar {
display: inline-block;