# Frontend 自定义暗色主题 — Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Restyle `src/views/frontend/` pages with a dark, IDE-style theme inspired by `image.png`, with Shiki code highlighting and responsive breakpoints — without changing any JS behavior or affecting admin system pages.
**Architecture:** A new `theme.scss` defines CSS custom properties scoped to `.frontend-container` and overrides Element Plus variables in that scope. Each component's `
```
Note: this is an additional `
```
- [ ] **Step 2: Replace the trailing global `
```
- [ ] **Step 3: Verify**
Run: `cd "D:/数科智联/项目/agent-frontend-web" && yarn dev`
Open `/frontend/index`. Confirm:
- Sidebar background dark, conversation items legible
- Hover state shows subtle dark gray highlight
- Active conversation shows soft teal background (`--fe-accent-soft`)
- Right-click menu appears dark with red danger item
- [ ] **Step 4: Build check**
Run: `cd "D:/数科智联/项目/agent-frontend-web" && yarn build:prod 2>&1 | tail -10`
Expected: build succeeds.
- [ ] **Step 5: Commit (skip — not a git repo)**
---
## Task 4: Restyle `UserArea.vue`
**Files:**
- Modify: `src/views/frontend/components/UserArea.vue:88-167`
- [ ] **Step 1: Replace the scoped SCSS block**
Replace lines 88-167 with:
```scss
```
- [ ] **Step 2: Verify**
Run: `cd "D:/数科智联/项目/agent-frontend-web" && yarn dev`
Confirm: user row text white/light, hover background subtle dark, marketplace button teal-on-dark, hover inverts to teal background.
- [ ] **Step 3: Build check**
Run: `yarn build:prod 2>&1 | tail -5`
---
## Task 5: Restyle `ChatHeader.vue`
**Files:**
- Modify: `src/views/frontend/components/ChatHeader.vue` — entire `
```
- [ ] **Step 2: Verify**
Run: `cd "D:/数科智联/项目/agent-frontend-web" && yarn dev`
Open `/frontend/index`. Send a test message. Confirm:
- User bubble is teal background with dark text
- Assistant bubble is dark gray (`--fe-bg-elevated`) with light text
- Code blocks render with dark base background (Shiki integration comes in Task 11+; for now blocks will be unstyled inside)
- Tool panels (thinking, tool_use, tool_result) show appropriate soft-tinted dark backgrounds
- Loading dots visible on dark
- [ ] **Step 3: Build check**
Run: `yarn build:prod 2>&1 | tail -5`
---
## Task 7: Restyle `InputArea.vue`
**Files:**
- Modify: `src/views/frontend/components/InputArea.vue` — entire ``).
- [ ] **Step 2: Replace all hard-coded colors with tokens**
In the entire `
```
- [ ] **Step 2: Verify dialog body**
Run: `cd "D:/数科智联/项目/agent-frontend-web" && yarn dev`
Click user avatar at bottom of sidebar → dialog opens. Confirm:
- Dialog header is dark (EP variable override applies)
- Avatar uploader border uses dark border token
- Preview circle background dark
If the dialog body text appears too dark to read on the dark background, the EP variables in `theme.scss` need additional override — add to `theme.scss`:
```scss
--el-dialog-bg-color: var(--fe-bg-elevated);
--el-text-color-regular: var(--fe-text-primary);
```
(Re-run build to confirm.)
- [ ] **Step 3: Build check**
Run: `yarn build:prod 2>&1 | tail -5`
---
## Task 10: Restyle `index.vue` file preview panel
**Files:**
- Modify: `src/views/frontend/index.vue` — `