FLOWDocs

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-in FocusProvider, 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 render props use करता है, asChild नहीं; data attributes Base UI की vocabulary से match करते हैं (data-open, data-slot)। अगर आप Radix जानते हैं तो patterns परिचित लगेंगे, लेकिन imports और props अलग हैं।
  • Tailwind v4 — @theme directive और native CSS custom properties use करता है। यह package Tailwind plugin ship नहीं करता; आप इसकी CSS files import करते हैं और @source के जरिए Tailwind को इसके source पर point करते हैं।
  • Motion — motion/react library animated components को handle करती है। हर animated component prefers-reduced-motion का सम्मान करता है।

शुरुआत कहाँ से करें

  • Installation — bun add, CSS import order, Tailwind config।
  • Tokens — design-token reference।
  • Components — component catalog।
  • Theming — light, dark, और custom palettes।

On this page