Skip to content

feat: Add <ColorPlus> component with support for more color formats#38

Draft
kitschpatrol wants to merge 27 commits into
mainfrom
color-plus
Draft

feat: Add <ColorPlus> component with support for more color formats#38
kitschpatrol wants to merge 27 commits into
mainfrom
color-plus

Conversation

@kitschpatrol
Copy link
Copy Markdown
Owner

@kitschpatrol kitschpatrol commented Apr 8, 2026

Adds a new <ColorPlus> component with support for many more color formats like OKLCH via tweakpane-plugin-color-plus and Color.js.

For now, the UI remains effectively identical to the vanilla Tweakpane color widget.

This is a work in progress, but if anyone wants the new component right away, it's available as a preview release on NPM:

pnpm add svelte-tweakpane-ui@preview

I'm already using it in other projects like tweakpane-css.

I'm not 100% sure that adding another component alongside the existing <Color> component is worth it, but I'm also not sure that simply replacing the existing <Color> component with this one is a great idea given the risk of either new bugs or subtle behavior changes bubbling up from the complexity of the underlying implementation. It's also kind of heavy at ~30kB compressed. But... something to consider for the next major.

If anyone has thoughts on how best to integrate this from a DX perspective, please feel free to comment in this PR.

@kitschpatrol kitschpatrol self-assigned this Apr 8, 2026
@kitschpatrol kitschpatrol added the enhancement New feature or request label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant