Skip to content

PinZheng(frontend): tokenize hero CTA effect colors - #262

Merged
Ducksss merged 1 commit into
devfrom
PinZheng/fix-cta-color-tokens
Jul 13, 2026
Merged

Ducksss merged 1 commit into
devfrom
PinZheng/fix-cta-color-tokens

Conversation

@Ducksss

@Ducksss Ducksss commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • move the hero shine and twinkle palette into named --brand-shine-* tokens
  • preserve every existing OKLCH channel and per-use alpha through relative colors
  • add a visual-standards regression that rejects absolute CTA color channels

Why

The final dev to main promotion review found one-off color literals in the new GitHub CTA effect. Centralizing those values keeps the brand palette maintainable and clears the promotion blocker without changing the rendered design.

Validation

  • pnpm test:release
    • 114 integration tests passed, 1 skipped
    • 99 Playwright tests passed
    • production build generated 275 pages
  • targeted landing desktop/mobile visual contract passed
  • CodeRabbit reviewed the two-file diff and raised 0 issues
  • git diff --check

Summary:
- Move hero shine and twinkle colors into named brand tokens.
- Add a visual-standards regression for absolute CTA color channels.

Rationale:
- Keep the brand palette centralized while preserving the rendered effect.
- Prevent one-off color literals from returning in future CTA changes.

Tests:
- pnpm test:release
- coderabbit review --agent -t uncommitted -c AGENTS.md (0 issues)
Copilot AI review requested due to automatic review settings July 13, 2026 11:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vercel

vercel Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview, Comment Jul 13, 2026 11:49am
payload-components-97bf Ready Ready Preview, Comment Jul 13, 2026 11:49am

@Ducksss
Ducksss merged commit abc64e8 into dev Jul 13, 2026
11 checks passed
imgbot Bot pushed a commit that referenced this pull request Jul 20, 2026
Summary:
- Centralize the hero CTA shine and twinkle colors in brand tokens.
- Guard the effect against future absolute color-channel drift.

Rationale:
- Clear the final promotion review issue without visual changes.

Tests:
- pnpm test:release
- CodeRabbit CLI review: 0 issues
- GitHub pr-gate and four fresh-smoke shards
Ducksss added a commit that referenced this pull request Jul 23, 2026