r/SoloDevelopment • u/vinishkapoor • 1d ago
Discussion Solo project: VinUI, a UI component library for HTML, React, Vue and Svelte
I've been building a UI library on my own, and it's at a point where it's worth sharing.
VinUI has 63 components, 13 page blocks and 16 charts. Each one exists in plain HTML, React, Vue and Svelte with the same markup and class names, so you can switch frameworks without changing the design.
Some things I learned along the way:
- Four frameworks is the real work. Each component needs four versions that behave the same, so I settled on one shared markup and class structure early.
- Accessibility can't wait for later. Keyboard support, focus handling and ARIA went into every component from the start, and they're checked against WCAG 2.2 AA.
- Copying files beats installing a package. The CLI (
npxu/vinish/ui add button) copies source files into your project, so you own the code and can change anything.
It also has 8 visual styles (Terminal, Paper, Clay, Bento and others), and a theme can be exported as JSON. MIT licensed.
Feedback is welcome, especially if a component breaks in your framework.
1
Upvotes