DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

zhangcaiqian /

zhangcaiqian/wenfang-themes

仅 Topic 仓库

Wenfang · 文房六色 — Chinese-aesthetic theme series: Codex import strings + DeepSeek Harness theme plugin

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@e4f6950f

Wenfang · 文房六色

中文 · English

Six palettes for coding agents — ink, paper, sea and porcelain, half dark and half light. One design source generates every artifact: the Codex codex-theme-v1:… import strings and the DeepSeek Harness theme plugin.

Palettes

Xuanmo — dark ink palette Xuanmo Dimmed — dark ink palette
玄墨 · Xuanmo — dark
Pine-soot ink ground, cinnabar accents. Built for long nights.
玄墨 Dimmed · Xuanmo Dimmed — dark
The same ink, one lamp lower.
Xuanzhi — warm paper palette Xuanzhi Dimmed — aged paper palette
宣纸 · Xuanzhi — light
Raw rice paper, blue-green wash. Daylight default.
宣纸 Dimmed · Xuanzhi Dimmed — light
Aged paper, deeper ink. Low glare.
Canghai — deep sea palette Qingci — celadon palette
沧海 · Canghai — dark
Deep-sea dusk, mineral teal.
青瓷 · Qingci — light
Moon-white celadon, blue-grey type.

Use with Codex

  1. Copy the line for the variant you want from dist/codex/ — e.g. dist/codex/xuanmo.txt.
  2. Codex → Settings → Appearance → choose Dark or Light to match the variant's column above → Import.
  3. Paste the whole line, including the codex-theme-v1: prefix and with no code fence. codeThemeId is a built-in Codex syntax theme — a custom id greys out the Import button.
Variant Mode File
Xuanmo Dark dist/codex/xuanmo.txt
Xuanmo Dimmed Dark dist/codex/xuanmo-dimmed.txt
Xuanzhi Light dist/codex/xuanzhi.txt
Xuanzhi Dimmed Light dist/codex/xuanzhi-dimmed.txt
Canghai Dark dist/codex/canghai.txt
Qingci Light dist/codex/qingci.txt

Use with DeepSeek Harness

One package registers all six palettes (文房·玄墨 … 文房·青瓷):

dsh plugin --profile web add github:zhangcaiqian/wenfang-themes#path:/packages/dsh
# once published on npm:
# dsh plugin --profile web add wenfang-themes

Restart DSH (or reload the page), then Settings → Plugin market → Themes → registered palettes and pick one. Switching is instant; the choice survives reloads and falls back to the closest dark/light variant on first install.

How it works

  • themes/wenfang.json — the single source: five hand-tuned colors plus the Codex syntax id and contrast per variant.
  • scripts/lib/codex.mjs — regenerates the six import strings; fixtures/codex/ pins them byte-for-byte.
  • scripts/lib/dsh.mjs — derives ~30 --dsw-* tokens per variant (surface ladder, borders, text ladder, diffs, selection, menus).
  • scripts/lib/swatch.mjs — the preview cards above.
node scripts/build.mjs        # regenerate everything
node scripts/check.mjs        # shape, Codex round-trip, swatches, WCAG report
node scripts/test-client.mjs  # DSH bundle: register / restore / opt-out rules

More clients

Claude Code, Gemini CLI and opencode adapters are planned; each is one emitter in scripts/lib plus a golden fixture, so no extra repositories are needed.

Credits

Palette inspiration: Inkstone · 墨观 (see NOTICE). Wenfang is an independent series name, not an official Inkstone theme pack. Code MIT — see LICENSE.

—/ 5

暂无评分

需要先验证清单

Commit e4f6950f3dd8

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于