r/reactjs • u/I_am_your_Devthaa • 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=versionsWorking 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
HoldToConfirmButtonwith pointer events for safety interactions. - A
FinancialCalculatorengine that separates the math logic from the UI. - An
OmniInputthat 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?
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