tiny-engine/packages/engine-cli/template/theme
xuanlid ee01af8ecb
feat: Modify the theme switching logic and add a new theme template to CLI. (#1143)
1.修改主题切换逻辑,默认值改成从注册表中的themes获取。
只有亮色和暗色两种默认主题的情况下,保持原来的逻辑,点击直接切换主题
用户添加了自定义主题,出现选择列表,在列表中切换主题
2.添加新主题模板
在终端中,用命令创建新主题,选择theme类型,添加主题模板,输入主题名称:demo-theme
在demo-theme下可以看到新创建的主题,cd demo-theme && pnpm i
将主题接入设计器
2025-03-13 11:26:47 +08:00
..
src feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00
README.md feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00
index.js feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00
meta.js feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00
package.json feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00
vite.config.js feat: Modify the theme switching logic and add a new theme template to CLI. (#1143) 2025-03-13 11:26:47 +08:00

README.md

tiny-engine Theme demo