diff --git a/mindspace-page-tag.mjs b/mindspace-page-tag.mjs index 721772a..c34d7bd 100644 --- a/mindspace-page-tag.mjs +++ b/mindspace-page-tag.mjs @@ -2,6 +2,8 @@ export const MINDSPACE_PAGE_TAG_ATTR = 'data-mindspace-page-tag'; export const MINDSPACE_PAGE_TAG_PLATFORM_BRAND = 'platform-brand'; export const PLATFORM_BRAND_TEXT = 'TKMind · 智趣'; export const PLATFORM_BRAND_STYLE_ID = 'mindspace-platform-brand-style'; +export const MINDSPACE_PAGE_FONT_STACK = + '-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'; const PLATFORM_BRAND_VISIBILITY_STYLE = ``; diff --git a/mindspace-page-tag.test.mjs b/mindspace-page-tag.test.mjs index d69cbe8..736a5f0 100644 --- a/mindspace-page-tag.test.mjs +++ b/mindspace-page-tag.test.mjs @@ -39,6 +39,7 @@ test('injectPlatformBrandVisibilityStyle adds readable brand css', () => { const result = injectPlatformBrandVisibilityStyle(html); assert.match(result, new RegExp(`id="${PLATFORM_BRAND_STYLE_ID}"`)); assert.match(result, /opacity:\s*1 !important/); + assert.match(result, /font-family:.*PingFang SC/); }); test('ensurePlatformBrandFooter appends brand line when marker is missing', () => { diff --git a/mindspace-pages.mjs b/mindspace-pages.mjs index c3d5815..1a3dfda 100644 --- a/mindspace-pages.mjs +++ b/mindspace-pages.mjs @@ -185,7 +185,7 @@ function renderPreviewHtml(page) { ${escapeHtml(page.title)}