chuan fdbd8dcdf1 feat: update theme to gitea-dev, adjust build and verification scripts
- Updated .gitignore to include .playwright-mcp
- Changed README.md to reflect new output file names for the dev theme
- Modified compose.dev.yaml to set the default theme to gitea-dev
- Added official-style-map.md to document the theme's baseline and structure
- Updated rules.md to clarify directory responsibilities and naming conventions
- Adjusted package.json test script to include verification against the official theme
- Refactored build.ts and preview.ts to output theme-gitea-dev.css
- Created verify-official-theme.ts to compare generated theme with the official baseline
- Removed unused css.ts and theme-types.ts files
- Cleared out components, pages, and primitives styles to start fresh
- Introduced new token files for ANSI colors, console colors, core colors, named colors, semantic colors, and target colors
- Added theme-meta.ts for theme metadata
- Deleted light.ts theme file as it is no longer needed
2026-05-16 02:33:38 +08:00
2026-05-16 02:09:59 +08:00
2026-05-16 02:09:59 +08:00
2026-05-16 02:09:59 +08:00
2026-05-16 02:09:59 +08:00

Gitea Theme Dev

用于开发 Gitea 自定义主题样式和模板覆盖的工作区。

技术选型

当前项目使用 Bun + TypeScript token + Lightning CSS + Preview。

样式按 tokens -> primitives -> components -> pages 分层聚合,主题值放在 themes/,模板覆盖放在 templates/。详细规则见 docs/rules.md

常用命令

bun install
bun run build
bun run build:min
bun run dev
bun run preview
bun run test

构建会生成 dist/theme-gitea-dev.css,并同步输出到 .gitea/custom/public/assets/css/theme-gitea-dev.css 供 Gitea custom 目录使用。

S
Description
Bun-powered Banana modern Gitea themes migrated from the old Vite project.
Readme
543 KiB
2026-06-05 12:33:57 +08:00
Languages
TypeScript 88.5%
Go Template 11.5%