jd-opensource / jd-opensource/taro-ui
[Major] 暗色主题 / CSS Variables 支持
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
### 背景
现代 UI 库普遍支持暗色模式。当前 taro-ui 使用 SCSS 变量,需要引入 CSS Variables 以支持运行时换肤。
### 目标
引入 CSS Variables 主题方案,支持暗色模式。
### 验收标准
- [ ] 将 SCSS 变量映射为 CSS Variables
- [ ] 提供暗色主题包
- [ ] 支持运行时切换主题
- [ ] 验证主题覆盖能力
### 参考
- ROADMAP: v4.0.0 — 暗色主题 / CSS Variables
Contributor guide
Research direction
Start by locating the SCSS variable definitions and the package entry points responsible for theme styles. Map the requested CSS Variables, dark-theme package, runtime switching, and theme override validation to the existing structure; done means all four acceptance criteria are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, scss
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100