@fuzdev/fuz_ui

中文文档
0.227.0发布于 2026/11/090BSDTypeScriptES Module零依赖近 30 天下载 4263

Svelte component library and frontend helpers

原始使用文档
文档目录4 节
  1. Usage
  2. Contributing
  3. Develop
  4. License 🐦

fuz_ui

a friendly brown spider facing you

friendly user zystem 🧶 fuz.dev

fuz_ui is a Svelte component library with frontend helpers for making zippy websites. It's built on fuz_css and provides a documentation system built on svelte-docinfo. fuz_ui emphasizes capability and efficiency and tries to be simple for those goals, while following idiomatic Svelte patterns.

This library has no AI features by design, for that see zzz.

To learn more see the docs and contributing.md. Feel free to take the ideas and code for your own purposes.

The Svelte components and helpers:

  • builds on fuz_css
  • plain CSS and minimal abstraction
  • near-zero dependencies except for Svelte, SvelteKit, fuz_css, and my utility library @fuzdev/fuz_util (not all components require SvelteKit but some do import its modules, needs more consideration)
  • not a fully-featured enterprise-ready set of components, it's being developed for the needs of specific projects, though eventually it will fill out
  • should be easy to copy/paste into your projects when you need full control like shadcn-svelte, I'll look into smoothing this pattern out in the future

Usage

⚠️ Expect breaking changes. If you want to help stabilize the API, please see contributing.md and thank you.

npm i -D @fuzdev/fuz_ui

Fuz uses fuz_css, a semantic-first CSS framework and design system. Import modules at their full paths:

// fuz_css has one main plain CSS stylesheet:
import '@fuzdev/fuz_css/style.css';

// and import a fuz_css theme:
import '@fuzdev/fuz_css/theme.css'; // or bring your own

// the fuz_css Vite plugin exposes the generated utility classes as a virtual module:
import 'virtual:fuz.css';

// then import Fuz Svelte components:
import ThemeRoot from '@fuzdev/fuz_ui/ThemeRoot.svelte';

// and Fuz TypeScript modules:
import { type Theme, theme_state_context } from '@fuzdev/fuz_ui/theme_state.svelte.ts';

See the library for more.

Contributing

fuz.dev/contributing

Develop

npm i # node >=20.10

# development
npm run dev

# production
npm run build
npm start

Fuz uses Gro, my CLI and toolkit that I use to run tasks in all of my projects. If you're not allergic it's handy to install globally.

License 🐦

0BSD

版本与发布记录

@fuzdev/fuz_ui 共发布 97 个版本,首次发布于 2025/12/07;过去 12 个月发布了 97 个版本。

版本发布日期距今
0.227.0latest2026/11/096 天前
0.226.02026/11/087 天前
0.225.02026/11/087 天前
0.224.02026/11/088 天前
0.223.02026/11/088 天前
0.222.12026/11/0511 天前

关于 @fuzdev/fuz_ui 的常见问题

@fuzdev/fuz_ui 是什么?

Svelte component library and frontend helpers

如何安装 @fuzdev/fuz_ui?

在项目目录运行 npm install @fuzdev/fuz_ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:svelte(^5)、@sveltejs/kit(^3)、@fuzdev/fuz_css(>=0.81.0)、@fuzdev/fuz_util(>=0.81.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@fuzdev/fuz_ui 支持 TypeScript 吗?

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

@fuzdev/fuz_ui 支持 ESM 还是 CommonJS?

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

@fuzdev/fuz_ui 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@fuzdev/fuz_ui 可以商用吗?

@fuzdev/fuz_ui 使用 0BSD 许可。几乎没有限制:可自由使用、修改和分发,连保留版权声明也不要求。以上为概括,不构成法律意见,请以许可原文为准。

@fuzdev/fuz_ui 的下载量有多少?

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

@fuzdev/fuz_ui 还在维护吗?

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