Add a Design work mode: brand kits, visual editing, template gallery

Problem

Qoder today exposes two work modes — Coding and General. Both are optimised for
producing code or text. Nothing in the product is optimised for producing design
deliverables
: a brand-consistent landing page, a slide deck, a poster, a short video.

The pieces are already in Qoder, but they are scattered and mode-agnostic:

  • Qoder Sites ships starter templates (landing / portfolio / dashboard / internal tools)
  • /canvas renders live .canvas.tsx panels and already supports on-canvas annotation
  • /gen-image generates raster assets
  • the desktop app can open and edit PPTX, and the marketplace lists ~40+ PPT/PDF/DOCX/XLSX/chart skills
  • @qoder-ai/better-harness defines a DESIGN.md contract with YAML design tokens, sitting
    beside AGENTS.md as a Rules asset
  • plugins such as Design Review and Product Design already exist in the Extensions marketplace

So the gap is not capability, it is assembly. In a normal design task I have to hand-wire
these together myself, in a mode whose defaults (diff views, file trees, terminal output) are
shaped around code, and there is no shared source of truth that all of them read from. The
result is the failure mode everyone recognises as “AI slop”: a published audit of 1,590 Show HN
landing pages found the same indigo accent, the same card layout, Inter on an 8px grid, and
generated dark themes that routinely ship body text failing WCAG AA.

Solution

A third work mode, Design, that reorganises existing primitives around a deliverable instead
of a repository. Five parts, in priority order:

A. Brand kits as first-class objects. Built-in multi-brand palette library (a curated set of
real brand systems — main / supporting / detail colour roles, type scale, radius, spacing, motion),
selectable per project and re-themeable across an entire deliverable in one action. Ingest and emit
the standard formats rather than a proprietary one: W3C DTCG .tokens.json (first stable spec,
Oct 2025), Figma variables, Tailwind v4 @theme, shadcn theme JSON, and prose rules in DESIGN.md.
DESIGN.md already exists in Qoder — this just makes every tool read it as the single source of truth.

B. Element-level visual editing, on Canvas. Click any element in the live preview to select it;
sliders and pickers for colour, spacing, typography, radius, shadow; direct text edits; annotations
drawn on a frozen frame. /canvas already renders and already has annotation — this extends it into
an editing surface instead of a viewing one. Every visual change should land as a diffable,
revertable commit, and edits should queue while an agent is still running.

C. Deeper file editing than “open and rewrite”. PPTX edited per shape (not regenerated wholesale),
PDF edited at layout level rather than by re-exporting the whole document, images edited regionally with
layer awareness. Add the formats General can’t handle well today, and keep an export gate that
distinguishes a pixel-perfect deliverable from a structured editable one.

D. A curated template gallery of finished, high-aesthetic work — spanning screenshots-level images,
video, slide decks, web pages and print — applicable mid-project, not only at creation, and instantly
re-skinnable by the active brand kit. This is where the anti-slop fix belongs: the gallery teaches by
example. Pair it with a token-plan-before-build step (4–6 named hex, semantic foreground pairs, type
roles, one “signature element”) reviewed as an artifact before anything is built, and a named blocklist
of the defaults models regress to.

E. A pre-export quality gate. WCAG contrast (4.5:1 body, 3:1 large), text overflow / clipping /
overlap, responsive breakpoint and device preview, focus visibility, reduced motion, alt text,
minimum type size, font-licensing checks. Blocking export on these is more persuasive to an agent
than a style guide it can ignore.

Use Case

I build client-facing marketing pages and pitch decks. Today: I ask for a page, accept an indigo-and-
gradient default, then spend 6–10 agent turns guessing CSS values to nudge it toward our brand — the
same request already on record at forum.qoder.com/t/design/9106.
In Design mode I’d pick our brand kit once, get two or three distinct directions in parallel, click
the headline to fix the tracking myself instead of describing it, run the QA gate, and export a PPTX
whose text boxes are still editable. Same flow for a poster or a launch video, driven off the same tokens.

Priority

:yellow_circle: Medium - Important improvement

Not blocking — Sites, Canvas and /gen-image are usable today. But the design half of the market has
already consolidated into dedicated surfaces (Claude Design, Cursor Design Mode, v0 Design Mode,
Replit Design, Google Stitch, Figma Make), and Qoder has the components to join it without building
from scratch.

Additional Info

  • Please consolidate with /cc @-able prior request: 建议提供可视化 Design 侧栏 (#9106) — same underlying
    need, framed as a sidebar rather than a mode.
  • MVP that would deliver most of the value: A1 + B on Canvas (built-in brand palettes + click-to-edit
    on the existing canvas surface). C/D/E can follow.
  • Suggested tags: agent, others. If a design tag could be added, it would help these cluster.
  • Happy to prototype the token-ingest format against DESIGN.md if that’s a scoping question.