feat: 重构前端架构并添加主题支持

删除旧的示例代码和资源文件
添加新的主题样式和全局CSS配置
更新Tauri窗口配置和权限
引入SolidJS路由并优化入口文件
This commit is contained in:
Vixalie
2025-07-21 22:50:20 +08:00
parent 5f59735e94
commit 3dde386be8
12 changed files with 315 additions and 184 deletions

16
src/index.css Normal file
View File

@@ -0,0 +1,16 @@
@import 'tailwindcss';
@import './theme.css';
@layer base {
html,
body {
@apply scheme-dark size-full bg-surface text-on-surface select-none overflow-hidden;
&[data-scheme='dark'] {
@apply scheme-dark;
}
}
#root {
@apply size-full overflow-hidden;
}
}