refactor(ui-kit): theme.css.ts 迁 themes 目录 #76

Merged
arnold.cui merged 2 commits from refactor/theme-css-to-themes into main 2026-12-03 01:46:31 +00:00
2 Commits
Author SHA1 Message Date
arnold.cui-agent 326cb7a0ad refactor(ui-kit): 包内按目录引用 themes,themeVars 随 themes 入口导出
CI / check (pull_request) Successful in 3m52s
组件样式模块对契约 themeVars 的引用从 '../themes/theme.css' 改为 '../themes',
与包出口按目录、不带文件名的写法一致;themes/index.ts 相应导出 themeVars。
tokens/refs.ts 的 type 导入同样改为 '../themes'。

stack CLI 的 relativeResolve 会探测目录 index,ve 编译内部的 esbuild 与 TS
bundler 模式同样支持目录说明符,三条链路均已实证。代价是经 barrel 引用后每个
样式模块的编译产物会多带一份 site 主题的 CSS 块,规则集合与渲染不变。
2026-12-03 09:07:32 +08:00
arnold.cui-agent e1b6e01c55 refactor(ui-kit): theme.css.ts 迁 themes 目录
CI / check (pull_request) Successful in 3m2s
themeClass 的定义一直在 tokens、消费 barrel 却在 themes,跨目录反向
导入不自洽。迁到 src/themes/theme.css.ts 后 themes 目录自有定义,
themes/index.ts 改 './theme.css' 直连;包内 10 处 import 与 README
两处路径同步更新。
2026-12-02 21:13:36 +08:00