diff --git a/ALRIGHT-DESIGN.md b/ALRIGHT-DESIGN.md index 8e25683..03224a2 100644 --- a/ALRIGHT-DESIGN.md +++ b/ALRIGHT-DESIGN.md @@ -88,7 +88,7 @@ | 角色 | 字体 | 说明 | | --- | --- | --- | -| 正文 | **LXGW WenKai(霞鹜文楷)** | 与演示站同一份 webfont,`cdn.staticfile.net` | +| 正文 | **LXGW Neo XiHei(霞鹜新晰黑)** | 应用当前使用;`cdn.jsdelivr.net/npm/cn-fontsource-lxgw-neo-xi-hei-regular` 按 unicode-range 分片加载,在 `stash-web/src/index.css` 覆盖 `--su-font-sans`(组件库自身默认仍是文楷) | | 回退 | `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif` | 字体加载失败时 | | 数字(主题) | `Outfit-Medium` | 仅主题的 `font-price` / `font-number` 使用,Stash 未引入 | | 等宽 | `ui-monospace, Consolas, monospace` | 路由地址等路径文本 | diff --git a/stash-web/index.html b/stash-web/index.html index 49b8e73..39c0e35 100644 --- a/stash-web/index.html +++ b/stash-web/index.html @@ -13,10 +13,10 @@ document.documentElement.dataset.scheme = dark ? 'dark' : 'light' } catch (e) {} - + Stash diff --git a/stash-web/src/index.css b/stash-web/src/index.css index ef8fa43..0a9d3c5 100644 --- a/stash-web/src/index.css +++ b/stash-web/src/index.css @@ -1,6 +1,10 @@ /* 页面级基础:字号 / 字体 / 重置。颜色与间距全部来自 @stash/ui 的令牌。 */ :root { + /* 正文字体:霞鹜新晰黑。@stash/ui 默认是霞鹜文楷,这里在应用层换掉,不影响组件库本身 */ + --su-font-sans: + 'LXGW Neo XiHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans CN', sans-serif; font-family: var(--su-font-sans); font-size: var(--su-font-size-md); line-height: var(--su-line-height-md);