mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-06 17:46:23 +00:00
🎨 feat(web/default): add Anthropic theme preset and configurable serif typography
Introduce a switchable Anthropic-inspired color preset and a new Font customization axis so users can adopt the editorial serif look across the entire UI, including sidebar navigation, tabs, form controls, buttons, and table headers. Theme preset Add anthropic to the theme preset registry with warm cream canvas, slate foreground, and clay/coral accent tokens for light and dark modes Define explicit surface colors for the Anthropic preset instead of relying on the semantic surface bridge Exclude anthropic from the primary-color surface bridge so bespoke warm neutrals are not overridden by accent-tinted mixes Typography system Add @fontsource-variable/lora and a global --font-serif token with CJK serif fallbacks (Noto Serif SC, Source Han Serif, Songti SC, etc.) Introduce a --font-body token and drive <body> font-family from it Add a Font axis (default | sans | serif) parallel to radius/scale Resolve font: 'default' against preset defaults (anthropic → serif) Persist font preference via cookie and apply data-theme-font on <body> Apply serif OpenType features (kern, liga, calt, tnum) and heading display tuning when serif is active Remove per-component sans opt-outs so serif inherits through sidebar, tabs, inputs, buttons, badges, and table headers via natural CSS cascade Keep monospace contexts unchanged via Tailwind preflight and .font-mono UI and i18n Add Font selector to the theme config drawer (Auto / Sans / Serif) Add "Font" and "Select body font" translations for en, zh, fr, ja, ru, vi Misc Tighten group and status badge sizing for better balance with serif text
This commit is contained in:
Vendored
+3
@@ -1756,6 +1756,7 @@
|
||||
"FluentRead extension not detected. Please ensure it is installed and active.": "FluentRead 拡張機能が検出されませんでした。インストールされていて有効になっていることを確認してください。",
|
||||
"Flush interval (minutes)": "書き込み間隔(分)",
|
||||
"Follow the guided steps to prepare your workspace before the first login.": "初回ログイン前に、ガイド付きの手順に従ってワークスペースを準備してください。",
|
||||
"Font": "フォント",
|
||||
"Footer": "フッター",
|
||||
"Footer text displayed at the bottom of pages": "ページ下部に表示されるフッターテキスト",
|
||||
"footer.columns.about.links.aboutProject": "プロジェクトについて",
|
||||
@@ -3009,6 +3010,7 @@
|
||||
"Preset recharge amounts displayed to users": "ユーザーに表示されるプリセットチャージ金額",
|
||||
"Preset Template": "プリセットテンプレート",
|
||||
"Preset templates": "プリセットのテンプレート",
|
||||
"preset.anthropic": "Anthropic",
|
||||
"preset.default": "デフォルト",
|
||||
"preset.forest-whisper": "フォレストウィスパー",
|
||||
"preset.lake-view": "レイクビュー",
|
||||
@@ -3519,6 +3521,7 @@
|
||||
"Select announcement type": "アナウンスメントタイプを選択",
|
||||
"Select at least one field to overwrite.": "上書きするフィールドを少なくとも 1 つ選択してください。",
|
||||
"Select at least one target model": "少なくとも1つの対象モデルを選択してください",
|
||||
"Select body font": "本文フォントを選択",
|
||||
"Select border radius": "角丸を選択",
|
||||
"Select channel type": "チャネルタイプを選択",
|
||||
"Select color preset": "カラープリセットを選択",
|
||||
|
||||
Reference in New Issue
Block a user