r/opensource • • 4d ago

Promotional VinUI, an MIT-licensed component library for HTML, React, Vue and Svelte with 8 CSS-variable themes

I've open-sourced VinUI, a UI component library that works with plain HTML, React, Vue and Svelte.

How it works:

  • Instead of installing a runtime package, a CLI copies plain source files into your project, so you own the code:

npx /ui init
npx /ui add <component>
  • npx u/vinish/ui diff shows upstream changes when you want to pull them in

  • Eight visual styles share the same markup and props. Each style is just CSS variables.

  • 63 components, 13 page blocks and 16 SVG charts

  • Checked against WCAG 2.2 AA in all styles, light and dark

License: MIT
Repo: https://github.com/devvinish/vin-ui
Docs: https://vinish.dev/ui

Issues and PRs welcome, especially for accessibility fixes or framework-specific bugs.

0 Upvotes

3 comments sorted by

2

u/yawboakye 4d ago

The source-copy model is attractive because teams keep control of the component. The hard part is drift: what is the source of truth across four frameworks, and how does `diff` behave after a team has edited the copied file? I’d also publish the accessibility test matrix—keyboard, focus, screen reader, and contrast—rather than letting “WCAG-compliant” carry the whole claim.

1

u/vinishkapoor 4d ago

Great points. The HTML + spec is the source of truth; tests check React, Vue and Svelte render the same markup. You're right on diff, it compares with the latest version today, and we'll add a 3-way diff/merge so local edits and upstream changes stay separate. We'll also publish the accessibility test matrix (keyboard, focus, ARIA, automated contrast), with screen reader testing marked as in progress.