@codeandfunction/callaloo

中文文档
5.26.0发布于 2026/10/23MITTypeScriptES Module近 30 天下载 2680

Callaloo is a Vue UI library. It is easy to integrate into any Vue3+ project, has a small footprint, can be easily themed, and provides commonly used components.

原始使用文档
文档目录7 节
  1. Installation
  2. Example
  3. Customizing typography and sizing
  4. Usage via CDN
  5. Available components
  6. Documentation
  7. License

Callaloo

Callaloo is a Vue UI library. It is easy to integrate into any Vue3+ project, has a small footprint, can be easily themed, and provides commonly used components.


npm npm Bundle Size Bundle Size


Installation

pnpm add @codeandfunction/callaloo

or

npm install @codeandfunction/callaloo

or

yarn add @codeandfunction/callaloo

Example

The following example demonstrates how to use a Callaloo component in your Vue project.

<script setup lang="ts">
import CLThemeProvider from '@codeandfunction/callaloo/CLThemeProvider';
import CLButton from '@codeandfunction/callaloo/CLButton';
import { CLSizes } from '@codeandfunction/callaloo';

const onClickHandler = (evt?: Event) => {
  alert('Hello World!');
};
</script>

<template>
  <div class="my-awesome-app">
    <CLThemeProvider>
      <CLButton :on-click="onClickHandler" :size="CLSizes.Medium">Hello world</CLButton>
    </CLThemeProvider>
  </div>
</template>

Customizing typography and sizing

Fonts, letter-spacing and the base size are CSS variables, so you can override them from your own stylesheet without any JavaScript configuration.

:root {
  --clll-base-size: 16px; /* all spacing, font sizes and control heights derive from this */
  --clll-font-family: 'Inter', sans-serif;
  --clll-font-family-heading: 'Playfair Display', serif;
  --clll-font-family-label: 'Inter', sans-serif;
  --clll-font-family-mono: 'JetBrains Mono', monospace;
  --clll-letter-spacing: normal;
  --clll-letter-spacing-heading: -0.02em;
  --clll-letter-spacing-label: 0.04em;
  --clll-letter-spacing-mono: 0;
}

See the theming docs for every variable and which components use it.

Usage via CDN

If you want to try Callaloo without a build step, you can load it directly from a CDN a detailed example is available in the docs.

Available components

Callaloo ships a growing set of production-ready Vue 3 components and composables. Core building blocks include:

For detailed usage, props, and examples for each component, see https://callaloo.dev/docs/components/.

Documentation

To learn more about how to theme components, and more detailed documentation and examples, please visit the official documentation site.

License

MIT

版本与发布记录

@codeandfunction/callaloo 共发布 232 个版本,首次发布于 2024/08/15;过去 12 个月发布了 79 个版本。

版本发布日期距今
5.26.0latest2026/10/2318 天前
5.25.12026/10/1328 天前
5.25.02026/10/1328 天前
5.24.62026/10/1129 天前
5.24.52026/10/1130 天前
5.24.42026/10/1130 天前

关于 @codeandfunction/callaloo 的常见问题

@codeandfunction/callaloo 是什么?

Callaloo is a Vue UI library. It is easy to integrate into any Vue3+ project, has a small footprint, can be easily themed, and provides commonly used components.

如何安装 @codeandfunction/callaloo?

在项目目录运行 npm install @codeandfunction/callaloo,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3.5.26)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@codeandfunction/callaloo 支持 TypeScript 吗?

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

@codeandfunction/callaloo 支持 ESM 还是 CommonJS?

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

@codeandfunction/callaloo 可以商用吗?

@codeandfunction/callaloo 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@codeandfunction/callaloo 的下载量有多少?

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

@codeandfunction/callaloo 还在维护吗?

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