CommandCodeAI / CommandCodeAI/command-code
feat: Inline Hex Color Swatch rendering
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Feature Description
Ive buiit a mod to show hex color swatches in a prompt transform and also in some response output.
But, native feed support might be better as then the feed isn't generic and have to resort to a list summary of colors detected.
See: https://github.com/dthyresson/hex-color-swatch-mod
Use Case
Some examples ...
What it does
Two jobs, nothing else:
1. Inline swatches in your input
When you type a hex color like #fefefe, the prompt is transformed before
the model sees it — each color becomes a 2-wide solid box painted the actual
color, inline:
type: use #fefefe and #0af for the theme
becomes: use ██ #fefefe and ██ #0af for the theme
The model sees the annotated color too, so it can reason about it.
2. Color list from model output
When the model's reply contains hex colors, the response is not
rewritten or echoed back. Instead, each unique color is extracted and rendered
as a compact list of swatches in the feed:
██ #fefefe ██ #3b82f6 ██ #00aaff
The model's original answer stays exactly as written — the list is just a
visual aid so you can see the colors at a glance.
Example prompts to try
Ask for colors in any of these ways and the mod will render a swatch list
from the reply:
Rainbow
Give me the hex colors of a rainbow
Color variants
Show me 5 shades of blue from dark to light with their hex codes
Gradient builder
Give me a hex gradient from #ff6b6b to #4ecdc4 in 6 steps
Sports team colors
Do a web search for the San Diego Padres' official colors and list their hex codes
Search for the Vegas Golden Knights' team colors and show them as hex codes
What are the MLB team colors? List a few teams with their brand hexes
More ideas
Give me the Tailwind 500 palette
What's the hex for bright green?
List 10 material design colors
Shwocase
Seattle Kraken Colors
Gradient
TailwindCSS Colors
Inline Prompt Transform
Additional Context
No response
How important is this to you?
Nice to have
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查链接的 hex-color-swatch-mod,并定位 command-code 中的 prompt-transform 和 feed response 入口点。确定输入注释和仅用于响应的 swatch 列表应如何与原生 feed 支持集成。完成的标准是:为 prompt 内联渲染十六进制颜色,将唯一颜色作为模型回复的 feed 辅助信息显示,并保持原始回复不变。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 45/100