fix: design-typography 整页无样式——tokens 靠组件链副作用加载,纯字阶页 import 链只剩 type-only(编译期擦除);两 app 的 ui.tsx 显式运行时引 @stack/design-system 兜底

This commit is contained in:
cqh963852 committed 2026-10-08 15:06:55 +08:00
1 parent 9ad5685bd6
commit 4f4a8df74a
2 files changed
+2

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
/** 页面公共骨架 */ /** 页面公共骨架 */
import '@stack/design-system'
import type { ReactNode } from 'react' import type { ReactNode } from 'react'
export function Page({ tag, title, desc, children }: { tag: string; title: string; desc: string; children: ReactNode }) { export function Page({ tag, title, desc, children }: { tag: string; title: string; desc: string; children: ReactNode }) {
+1
View File
@@ -1,5 +1,6 @@
/** 教程站页面骨架:站头导航跨页常驻(view-transition-name 共享元素,页间不闪烁)。 /** 教程站页面骨架:站头导航跨页常驻(view-transition-name 共享元素,页间不闪烁)。
* 选中项背景色=该章色(与章头 title 横幅统一);书架/设计册选中为 ink。 */ * 选中项背景色=该章色(与章头 title 横幅统一);书架/设计册选中为 ink。 */
import '@stack/design-system'
import type { ReactNode } from 'react' import type { ReactNode } from 'react'
import type { ChapterId } from '@stack/design-system' import type { ChapterId } from '@stack/design-system'
import { CHAPTERS } from './chapters' import { CHAPTERS } from './chapters'