Files
NomadArch/tasks/done/053-markdown-style-refactor.md
Gemini AI 1d427f4cf5
Some checks failed
Release Binaries / release (push) Has been cancelled
v0.5.0: NomadArch - Binary-Free Mode Release
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)
2025-12-26 11:27:03 +04:00

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.css no longer contains .prose, .markdown-code-block, .code-block-header, .code-block-copy, or .code-block-inline blocks; equivalent styling lives in a new src/styles/markdown.css (imported from index.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.
  • MessagePart markdown rendering (src/components/markdown.tsx) automatically picks up the new styling without component changes.

Steps

  1. Move markdown-related CSS into a dedicated styles/markdown.css file, rewriting colors with tokens.
  2. Replace any legacy values (e.g., text-gray-700) with token references.
  3. Update src/index.css to import the new stylesheet after tokens/components layers.
  4. 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.