Skip to content

refactor(staged): switch badge colors from HSL to OKLCH and centralize helpers#624

Merged
matt2e merged 1 commit intomainfrom
switch-to-oklan-or-oklch
Apr 14, 2026
Merged

refactor(staged): switch badge colors from HSL to OKLCH and centralize helpers#624
matt2e merged 1 commit intomainfrom
switch-to-oklan-or-oklch

Conversation

@matt2e
Copy link
Copy Markdown
Contributor

@matt2e matt2e commented Apr 14, 2026

Summary

  • Centralize all badge/chip color construction into a single badgeColors.ts module using OKLCH color space instead of HSL for more perceptually uniform colors
  • Extract duplicated inline HSL color expressions from ProjectsList.svelte, SuggestedRepos.svelte, and RepoBadge.svelte into shared helper functions
  • Revert @sveltejs/vite-plugin-svelte from v7 back to v6 to fix a compatibility issue

🤖 Generated with Claude Code

Replace all hsl() color construction in badge/chip components with
oklch() for perceptually uniform lightness across hues. Consolidate
duplicated color helpers from 3 files into a shared badgeColors.ts
utility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners April 14, 2026 05:58
@matt2e matt2e merged commit ac7cd79 into main Apr 14, 2026
5 checks passed
@matt2e matt2e deleted the switch-to-oklan-or-oklch branch April 14, 2026 06:34
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