Flow UI
Flow ecosystem के लिए साझा React component library और design tokens।
@flow-industries/ui हर Flow frontend के पीछे का design system है — marketing साइट, यह docs, social platform, auth dialog, game client का वेब shell। एक package, एक tokens का set, 60+ components।
क्या मिलता है
- 60+ React components जो Base UI primitives पर बने हैं और Tailwind v4 से styled हैं.
- Design tokens — रंग (OKLch), typography, spacing, borders, motion —
styles/tokens.cssमें। - Fonts — Geist Sans और Geist Mono
styles/fonts.cssमें। - Branding — Logo, Logomark, Wordmark, social icons।
- Utilities — class merging के लिए
cn(),useIsMobile()hook। - Practice sessions —
@flow-industries/ui/focusमें एक opt-inFocusProvider,FocusPanelऔर study-subject picker।
Source raw भेजा जाता है — कोई build step नहीं — और आपके app की Vite + Tailwind pipeline द्वारा compile होता है. इससे package disk पर बहुत छोटा रहता है, component-level पर tree-shake होता है, और आप TSX को copy-paste करके किसी भी component को fork कर सकते हैं।
Foundations
- Base UI — Radix नहीं। API
renderprops use करता है,asChildनहीं; data attributes Base UI की vocabulary से match करते हैं (data-open,data-slot)। अगर आप Radix जानते हैं तो patterns परिचित लगेंगे, लेकिन imports और props अलग हैं। - Tailwind v4 —
@themedirective और native CSS custom properties use करता है। यह package Tailwind plugin ship नहीं करता; आप इसकी CSS files import करते हैं और@sourceके जरिए Tailwind को इसके source पर point करते हैं। - Motion —
motion/reactlibrary animated components को handle करती है। हर animated componentprefers-reduced-motionका सम्मान करता है।
शुरुआत कहाँ से करें
- Installation — bun add, CSS import order, Tailwind config।
- Tokens — design-token reference।
- Components — component catalog।
- Theming — light, dark, और custom palettes।