Skip to content

frontend: replace hardcoded gold hex with brand tokens (#1717)#1721

Merged
sohni-tagirisa merged 1 commit into
epic/frontend-ui-polishfrom
fix/1717-color-tokens
Jun 23, 2026
Merged

frontend: replace hardcoded gold hex with brand tokens (#1717)#1721
sohni-tagirisa merged 1 commit into
epic/frontend-ui-polishfrom
fix/1717-color-tokens

Conversation

@sohni-tagirisa

Copy link
Copy Markdown
Collaborator

What

Replace 41 hardcoded gold hex literals (#FDCE49 / #DFA84A / #FFD966) with the existing brand tokens pdd.gold / pdd.goldActive / pdd.goldHover already defined in pdd/frontend/index.html.

Sub-PR of EPIC #1720. Targets epic/frontend-ui-polish, not main.

Why

The brand gold was copy-pasted as raw hex across 6 files. Centralizing on the named tokens means the upcoming Sizzle palette swap (epic/1560) becomes a one-line theme edit instead of a 41-site find-and-replace.

Scope

File Swaps
App.tsx 22
components/JobDashboard.tsx 10
components/BatchFilterDropdown.tsx 4
components/SyncOptionsModal.tsx 4
components/PromptSelector.tsx 1
components/ModuleNode.tsx 1

Mechanical class swap only — e.g. border-[#FDCE49]/60border-pdd-gold/60, bg-[#DFA84A]bg-pdd-goldActive, hover:from-[#FFD966]hover:from-pdd-goldHover. Opacity (/20, /60), gradient (from-/to-) and hover: variants preserved.

Verification

  • 0 [#FDCE49]/[#DFA84A]/[#FFD966] literals remain in pdd/frontend/
  • 41 token-class usages present; only hex left is the canonical token defs in index.html
  • No visual change (string-for-string utility swap)
  • npm test (vitest) — 54 passed / 12 files

Closes #1717

🤖 Generated with Claude Code

Swap 41 bracket-literal Tailwind utilities (#FDCE49/#DFA84A/#FFD966)
for the existing pdd.gold / pdd.goldActive / pdd.goldHover theme tokens
across App.tsx and 5 components. Opacity (/20, /60), gradient (from-/to-)
and hover: variants preserved. No visual change; brand color now lives
solely in index.html, unblocking the epic/1560 palette swap.

Closes #1717

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@sohni-tagirisa sohni-tagirisa self-assigned this Jun 23, 2026
@sohni-tagirisa sohni-tagirisa merged commit c275490 into epic/frontend-ui-polish Jun 23, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant