Widget customization: brand color with automatically readable text (Pro)

未關閉
#71 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
typescript

研究方向

Read CONTRIBUTING.md first, then find the Widget appearance page that issue #347 introduces, since this work builds on it and the payload does not name its files. Check whether #347 is merged before starting. Done means a Pro user's chosen color is applied to the header, bubble, visitor messages, send button and answer cards, text contrast is picked automatically and covered by tests for light, dark and mid-tone colors, and invalid values are rejected with a message.

由索引模型根據 Issue 內容生成。

描述

backend enhancement frontend help wanted

Copied from DeadantCo/answerLoops#61 · originally opened by sethr07 on 2026-11-20

Copied from https://github.com/answerLoops/answerLoops/issues/348 — originally opened by @NathanTarbert on 2026-10-08

The problem today

The widget is always the answerLoops blue. A business wants it to match its own brand and style.

What to build

A brand color control on the Widget appearance page (#347). The chosen color is used for the header, the chat bubble, the visitor's message bubbles, the send button and the answer cards.

  • The text on top of the color is chosen automatically (white or dark) so it is always readable. An owner can't create unreadable text.
  • The color value is checked and cleaned before it is used anywhere.
  • Pro and above only; reset returns to the default.

Done when

  • A Pro or above picks a color and the live widget uses it everywhere listed above
  • Very light, very dark and mid-tone colors all keep readable text (covered by tests)
  • Invalid color values are rejected with a clear message
  • The bubble color from #345 now follows this setting
  • Looks right at 375 pixels wide

Depends on

  • #347 (the page and where settings are saved)

Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.

主要語言
TypeScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

DeadantCo/answerLoopsdev 的其他 Issue

查看 DeadantCo/answerLoopsdev 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。