WORK-198
ID:WORK-198Status:done

Migrate Lumina and plugin tint configs

Apply the SPEC-053 field renames to every concrete tint definition that ships with refrakt. Primary scope: Lumina's five tints (base, subtle, warm, cool, dark). Secondary scope: any plugin under plugins/ that defines its own tints. End state: every shipped tint uses the new vocabulary; everything renders identically to before.

Priority:highComplexity:smallMilestone:v0.14.0Source:SPEC-053
claude/v0.14.0-spec-053-tint-vocab View source

Criteria completion

Criteria completion: 5 of 5 (100%) checked; tracking started on May 18, no incremental history yet0%25%50%75%100%May 18Jun 15

Tracking started May 18 — check back for trends.

Branches 2
claude/v0.14.0-spec-053-tint-vocab current done
main doneclaude/spec-053-tint-authoring-notes ready
History 1
  1. 7c7dd33
    Created (done)by bjornolofandersson

Acceptance Criteria

  • packages/lumina/src/config.ts tint configs migrated: background → bg, primary → text, secondary → muted, accent → primary, mode: 'dark' → lockMode: 'dark'
  • All five Lumina tints (base, subtle, warm, cool, dark) updated. The dark tint specifically is now { lockMode: 'dark', dark: { bg, text, primary } }
  • Plugin audit: grep -rln "tints:" plugins/ finds no plugin shipping tint definitions today, so the migration is contained to Lumina
  • Full test suite passes (2429 + 10 new tint-extends tests) — the existing tint rune tests are token-driven, so they migrate transparently
  • No grep hits for old field names inside tints: { … } blocks: searched for background:, secondary:, accent:, and mode: followed by quoted-string values — clean

Approach

This is the work item that depends on the previous three in the SPEC-053 chain (WORK-195, WORK-196, WORK-197) being merged. Once the types, merge, and CSS bridge speak the new vocabulary, the actual config files migrate.

For Lumina's config.ts, the migration is a careful find-and-replace within tints: { … } blocks — semantic, not regex-blind, because the same field names appear in other contexts (e.g., a CSS color token name might happen to contain "primary" too). Walk each tint definition explicitly.

Plugin audit: grep -rl "tints:" plugins/ to find candidates, then migrate each in the same way.

Dependencies

  • WORK-195 — types ready.
  • WORK-196 — merge logic ready.
  • WORK-197 — CSS bridge ready.

References

  • SPEC-053 — rename map and before/after examples
  • packages/lumina/src/config.ts — primary file to migrate
  • plugins/*/src/ — secondary audit scope