r/reactjs • • 29d ago

Show /r/reactjs Built a zero-Tailwind, Zod-validated UI kit for fintech apps (7 components, soon open source)

https://www.npmjs.com/package/capital-ui-kit?activeTab=versions

Working on some fintech components. Current npm package has 7 components , if you want me to add some , comment down and mark some star on the project

've been working on some fintech-specific components and wanted to share the approach. The goal was to create highly scalable components that don't rely on Tailwind, using plain CSS with CSS variables for theming.

The package currently has 7 components, including:

  • A HoldToConfirmButton with pointer events for safety interactions.
  • A FinancialCalculator engine that separates the math logic from the UI.
  • An OmniInput that handles locale formatting for fiat, crypto, and stocks.

I've open-sourced everything here: [link to GitHub/npm]

I'd love to hear your thoughts on the architecture, especially how I've handled things like auto-contrast for themes and the pure helper functions. What would you add next?

0 Upvotes

2 comments sorted by

1

u/nameupp 28d ago

zero-tailwind with plain css variables is super clean for embeddable component kits since consumer build setups won't fight utility class collisions. the biggest subtle trap with hold-to-confirm on mobile is pointercancel; if someone's thumb shifts a millimeter while holding, mobile safari fires pointercancel and aborts the transfer unless you've explicitly pinned touch-action: none on the button. also for omniinput, preserving caret position when intl.numberformat dynamically injects grouping separators as you type is such a brutal rite of passage, curious if you're calculating raw selection offsets or formatting purely on blur imo

1

u/I_am_your_Devthaa 27d ago

Massive thanks for calling out these specific edge cases—you saved me hours of mobile debugging.

Just pushed the fixes and improved both:

Really appreciate the senior-level eye. If you spot any other traps, let me know!