@factorialco/f0-react

中文文档
14.13.1发布于 2026/11/13TypeScriptES Module近 30 天下载 29.5万

F0 represents a transformative reboot of the visual language for the Factorial platform. Its core mission is to enhance consistency and coherence across Factorial's user interface, while ensuring a quick, efficient, and delightful user and developer exper

原始使用文档
文档目录4 节
  1. Why F0?
  2. Why Reboot Our Design System?
  3. Principles
  4. Technical Choices

F0 represents a transformative reboot of the visual language for the Factorial platform. Its core mission is to enhance consistency and coherence across Factorial's user interface, while ensuring a quick, efficient, and delightful user and developer experience.

Why F0?

As Factorial has evolved, it has expanded into a complex suite of features and functionalities, resulting in a fragmented user experience. Various sections of the platform display inconsistent visual styles and interactions.

This fragmentation complicates maintenance and scalability of both our user experience and codebase. We often find ourselves dedicating excessive time to reinventing the wheel and resolving bugs and inconsistencies instead of enhancing our product, and our users are left with a confusing, disjointed experience.

Why Reboot Our Design System?

Our existing design system, known as "Gamma," was established on informal constraints that have not withstood the test of time. Despite adding new components and styles, the underlying foundations have weakened to the point they have mostly become useless.

After thorough evaluation, we've decided that a fresh start is essential. We need to distinctly separate our old design rules from the new, establishing a foundation that supports future growth.

Here are several benefits of rebooting our design system:

  • Clear Vision: A design system thrives on constraints. Previously, as we added components and styles without a clear direction, complexity grew, leading to a system that was difficult to use effectively.
  • Fully Responsive: We aim to provide abstractions that facilitate the creation of responsive interfaces across all devices, complementing our mobile application and ensuring consistency.
  • Usability for External Developers: With well-documented and easy-to-use components, external developers can potentially seamlessly integrate with our look and feel and build upon the Factorial ecosystem.
  • Accessibility: Ensuring that our platform is accessible to everyone, regardless of their abilities, is a priority. This means focusing on the accessibility of our components.
  • Robustness: Our goal is to make every interaction with F0 exceptional. This includes comprehensive testing of components to maintain consistency and coherence.

Principles

  • Consistency: With Factorial's vast features, a consistent visual language is key to helping users navigate and leverage their experiences across the platform.
  • Efficiency: Designed for efficiency, F0 aids users in completing tasks swiftly and seamlessly.
  • Enjoyability: We aim for users to enjoy their interaction with Factorial. A visually appealing and coherent experience is central to F0.

Technical Choices

F0 is crafted using leading technologies:

  • React: This design system is built on React, the leading JavaScript library for building user interfaces.
  • TypeScript: Utilized for robust, maintainable code and enhanced developer experience with amazing developer tooling.
  • Tailwind: Our choice for a utility-first CSS framework, promoting quick, consistent UI development.
  • Shadcn and Radix for a powerful and accessible baseline for our components.

How to Use F0?

To integrate F0, install it as a dependency:

$ pnpm install @factorialco/f0-react

Import its styles in your application (typically in main.tsx or similar):

import "@factorialco/f0-react/dist/styles.css"

F0 is designed with Inter. If your app does not serve Inter already, import F0's copy too:

import "@factorialco/f0-react/assets/fonts/style.css"

You can then utilize any of its components:

import { Button } from "@factorialco/f0-react"

版本与发布记录

@factorialco/f0-react 共发布 1,267 个版本,首次发布于 2025/09/11;过去 12 个月发布了 1103 个版本。

版本发布日期距今
14.13.1latest2026/11/13今天
14.13.02026/11/13今天
14.12.12026/11/13今天
14.12.02026/11/13今天
14.11.12026/11/13今天
14.11.02026/11/13今天

关于 @factorialco/f0-react 的常见问题

@factorialco/f0-react 是什么?

F0 represents a transformative reboot of the visual language for the Factorial platform. Its core mission is to enhance consistency and coherence across Factorial's user interface, while ensuring a quick, efficient, and delightful user and developer exper

如何安装 @factorialco/f0-react?

在项目目录运行 npm install @factorialco/f0-react,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:zod(^3.23.8)、clsx(^2.1.1)、ress(^5.0.2)、react(18.3.1)、motion(^12.34.5)、nanoid(^5.0.7)、date-fns(^3.6.0)、recharts(^2.12.7)、react-dom(18.3.1)、react-pdf(^9.2.1)、pdfjs-dist(4.8.69)、typescript(^5.7.2 || ^6.0.0 || ^7.0.0)、tailwindcss(^3.4.3)、usehooks-ts(^3.1.1)、lucide-react(^0.383.0)、@xyflow/react(^12)、react-masonry(^1.0.7)、livekit-client(^2.17.0)、tailwind-merge(^2.3.0)、twemoji-parser(^14.0.0)、canvas-confetti(^1.9.3)、react-hook-form(^7.52.1)、react-day-picker(^8.10.1)、@number-flow/react(^0.5.10)、@hookform/resolvers(^3.9.0)、tailwindcss-animate(^1.0.7)、@radix-ui/react-slot(^1.1.0)、@radix-ui/react-tabs(^1.0.4)、@radix-ui/react-label(^2.1.0)、@radix-ui/react-avatar(^1.0.4)、@radix-ui/react-dialog(^1.1.4)、@radix-ui/react-select(^2.0.0)、@radix-ui/react-toggle(^1.1.0)、@radix-ui/react-popover(^1.0.7)、@radix-ui/react-checkbox(^1.0.4)、@radix-ui/react-progress(^1.1.0)、@livekit/components-react(^2.9.19)、@radix-ui/react-accordion(^1.1.2)、@radix-ui/react-collapsible(^1.1.2)、@radix-ui/react-scroll-area(^1.0.5)、@radix-ui/react-toggle-group(^1.1.0)、@radix-ui/react-dropdown-menu(^2.0.6)、@tailwindcss/container-queries(^0.1.1)、@radix-ui/react-navigation-menu(^1.2.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@factorialco/f0-react 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@factorialco/f0-react 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@factorialco/f0-react 可以商用吗?

@factorialco/f0-react 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@factorialco/f0-react 的下载量有多少?

根据 npm 官方下载统计,@factorialco/f0-react 在 2026/10/14 – 2026/11/12 这 30 天内被下载 295,250 次,日均约 9,842 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@factorialco/f0-react 还在维护吗?

最新版本 14.13.1 发布于 2026/11/13(今天);至今共发布 1267 个版本,其中过去 12 个月发布了 1103 个;首次发布于 2025/09/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。