Replace the Pages site color palette

未关闭
#102 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, go, html

调研方向

Start with the palette tokens in docs/index.html (lines 29-61) and the copy in docs/404.html, then trace the same hex values into docs/favicon.svg, docs/assets/, tools/demosvg/main.go and internal/report/html.go with its golden file. The palette itself is a maintainer decision, so confirm the target colors before editing. Done means no old values remain in those files, text and status colors pass WCAG AA contrast in both schemes, and make demo-check passes.

由索引模型根据 Issue 内容生成。

描述

enhancement severity: medium

Summary

The maintainer wants a new color palette for the GitHub Pages site. Today it is a warm brown and cream scheme with an orange accent, and the same hex values are copied into ten files, so a change made only in index.html would leave the 404 page, favicon, social card and demo picture on the old colors.

Where

  • docs/index.html:29-45 (dark tokens, for example --bg: #1B1714, --accent: #FF8A4C)
  • docs/index.html:46-61 (light tokens, --bg: #F6F1EA, --accent: #C2521A, --link: #A8440F)
  • docs/index.html:25-26 (theme-color meta)
  • docs/404.html:12-26 (a second copy of the tokens)
  • docs/favicon.svg, docs/assets/wordmark.svg, docs/assets/social-preview.svg (and the exported social-preview.png)
  • docs/assets/demo.svg, generated by tools/demosvg/main.go
  • internal/report/html.go and its golden file internal/report/testdata/golden/report.html (the HTML report uses the same palette)

Suggested fix

  1. Choose a new palette with light and dark variants (2 or 3 candidates to compare). For each, check WCAG AA contrast (4.5:1) for body text, muted text, links, and the severity and confidence colors on both backgrounds.
  2. Put the tokens in one place shared by index.html and 404.html (for example docs/assets/site.css, which the CSP already allows if style-src 'self' is added) so the two pages cannot drift.
  3. Update favicon, wordmark and social preview, re-export the PNG, and regenerate demo.svg with tools/demosvg.
  4. Decide whether the HTML report follows the site. If it does, update internal/report/html.go and regenerate the golden file with go test ./internal/report -update, reading the diff.

Acceptance criteria

  • No old palette value remains in docs/ or tools/demosvg (except where the report intentionally keeps it).
  • Text, links and status colors meet WCAG AA in both color schemes.
  • make demo-check passes.

Related: #75

Getting started

  • Relevant files: docs/index.html, docs/404.html, docs/assets/, tools/demosvg/main.go, internal/report/html.go
  • How to run tests: make test (Unix) or .\make.ps1 test (Windows PowerShell); one package: go test ./internal/<pkg>
  • Related docs: .github/workflows/pages.yml (what is deployed)

Filed by repo-audit/full-audit at a7f6edc. Severity: medium. Effort: M. audit-key: enhancement|docs/index.html|palette

主要语言
Go
星标
0
派生
1
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TMHSDigital/Spackle 的其他 Issue

查看 TMHSDigital/Spackle 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。