Skip to content

feat: partial color overrides - #29

Merged
eumaninho54 merged 2 commits into
release/v0.3.0from
feat/partial-color-overrides
May 6, 2026
Merged

feat: partial color overrides#29
eumaninho54 merged 2 commits into
release/v0.3.0from
feat/partial-color-overrides

Conversation

@eumaninho54

Copy link
Copy Markdown
Member

Pull Request

Description

Allow consumers to override only specific color tokens via the colors prop on RubberDuckUIProvider (and RubberDuckUI.configure()). Previously, passing a partial object would replace the entire palette — now missing keys fall back to the active theme defaults (light or dark).

Type of change

  • 🐛 Bug fix
  • ✨ New component
  • 🎨 Token / style change
  • 📄 Documentation
  • 🔨 Configuration / tooling
  • ♻️ Refactor
  • 💥 Breaking change

Storybook

  • Story created or updated in example/stories
  • All variants and states are covered

Breaking changes

None. The change is fully backwards-compatible — passing a full IColors object still works exactly as before.

References

  • Closes #

eumaninho54 and others added 2 commits May 6, 2026 04:33
Merge user-provided colors with theme defaults instead of replacing entirely.
Changed colors prop type to Partial<IColors> to indicate only a subset is needed.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Align test expectations with font size token remapping where button
font sizes are one tier down from button size names.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@eumaninho54
eumaninho54 merged commit 9da6029 into release/v0.3.0 May 6, 2026
2 checks passed
@eumaninho54
eumaninho54 deleted the feat/partial-color-overrides branch May 6, 2026 07:40
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