Skip to content

fix(theme): 104 raw blue-ramp theme ternaries become semantic tokens — accentRamp 515 → 331 (#1028) - #1068

Merged
thinkclay merged 1 commit into
mainfrom
fix/accent-ramps-1
Oct 7, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/accent-ramps-1

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Refs #1028 (first pass; the issue stays open). The accentRamp ratchet goes from 515 to 331.

What changed

Two theme ternaries account for most of the raw colors.blue[…] uses. Both now map to the theme's own tokens, indexed by the same condition, so each theme still gets its own colour:

Before After Used for
dark ? blue[300] : blue[600 or 700] colors.text[t].emphasis link and icon accents (60 sites)
dark ? blue[900] : blue[50 or 100] colors.bg[t].selected tinted grounds behind callouts and selected items (30 sites)

That's 104 replacements in 44 files, all made by a codemod that matches only those exact two-sided shapes. The visible effect is that these accents become the product's teal instead of an off-palette blue.

  • Where the condition was t === 'dark' and t is already the theme key, the index is simply [t]. tsc passes, so t is 'light' | 'dark' at all 88 such sites.
  • One manual fix: the background-check status 'info' tone now uses the info tokens (fg/border[t].info), because an info state is not the accent.
  • The remaining 331 are single shades or mixed pairs, for example a blue[700]/blue[300] border or a one-off blue[500]. Each needs a look rather than a codemod.

Reviewing: pre-commit's formatter reflowed the touched files, so the line diff is noisy. git diff --word-diff or GitHub's "hide whitespace" shows the real change.

Captures

I swept /office/api-keys, /office/ats, /office/developer, /profile, /dashboard, /communities, /assessments and /jobs in light and dark at 1440 and 390: 196 captures. Every page was ready, matched its theme, and had no page errors.

The one clip, "Export CSV" on /communities/connections at 390, is in a file this PR doesn't touch. It already happens on main and gets its own PR.

API keys, dark
API keys, light
Background checks, dark
Profile, 390 dark

Checks

  • tsc passes on scf-core and the app.
  • pnpm prepush passes, with 176/176 gated API tests.
  • The literal ratchet is lowered.

🤖 Generated with Claude Code

…1028)

Two patterns made up most of the raw colors.blue[...] uses: a link/icon
accent written as `dark ? blue[300] : blue[600|700]` and a tinted ground
written as `dark ? blue[900] : blue[50|100]`. Both are now the theme's
tokens, indexed by the same condition so behaviour in each theme is
unchanged in kind: colors.text[t].emphasis and colors.bg[t].selected
(teal, the product accent, instead of an off-palette blue). Where the
condition was `t === 'dark'` and t is already the theme key, the index
is just [t]; tsc confirms t is 'light' | 'dark' at every such site.

The background-check status 'info' tone uses the info tokens instead;
an info state is not the accent.

accentRamp ratchet 515 -> 331. The rest are single-shade or mixed uses
that need a look each, not a codemod.

Refs #1028

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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