Some checks failed
Release Binaries / release (push) Has been cancelled
Features: - Binary-Free Mode: No OpenCode binary required - NomadArch Native mode with free Zen models - Native session management - Provider routing (Zen, Qwen, Z.AI) - Fixed MCP connection with explicit connectAll() - Updated installers and launchers for all platforms - UI binary selector with Native option Free Models Available: - GPT-5 Nano (400K context) - Grok Code Fast 1 (256K context) - GLM-4.7 (205K context) - Doubao Seed Code (256K context) - Big Pickle (200K context)
1.7 KiB
1.7 KiB
Task 053 - Markdown & Code Block Styling Refactor
Goal
Extract the remaining markdown/code-block styling from src/index.css into token-aware utilities and ensure all prose rendering uses the shared system.
Prerequisites
- Task 052 complete (panels cleaned up).
Acceptance Criteria
src/index.cssno longer contains.prose,.markdown-code-block,.code-block-header,.code-block-copy, or.code-block-inlineblocks; equivalent styling lives in a newsrc/styles/markdown.css(imported fromindex.css) and/or token helpers.- New markdown helpers rely on tokens for colors, borders, and typography (no hard-coded hex values).
- Code block copy button, language label, and inline code maintain current interaction and contrast in both themes.
MessagePartmarkdown rendering (src/components/markdown.tsx) automatically picks up the new styling without component changes.
Steps
- Move markdown-related CSS into a dedicated
styles/markdown.cssfile, rewriting colors with tokens. - Replace any legacy values (e.g.,
text-gray-700) with token references. - Update
src/index.cssto import the new stylesheet after tokens/components layers. - Verify formatted markdown in the message stream (headings, lists, code blocks, copy button).
Testing Checklist
- Run
npm run build. - Manually view messages with markdown (headings, inline code, block code, tables) in both themes.
Dependencies
- Depends on Task 052.
- Blocks final cleanup task for attachment/keyboard chips.
Estimated Time
0.75 hours
Notes
- Branch suggestion:
feature/task-053-markdown-style-refactor. - If additional tokens are needed (e.g.,
--surface-prose), document them in the PR.