CP

coveo/plasma

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

73 stars 质量 81 趋势 34Apache-2.0

用 React! 实现的等离子体组件

概览

Plasma 是 Coveo 在 Coveo 云管理控制台中使用的设计系统。它提供了以 Mantine 为主题的组件库、设计标记、React 图标和文档。所有组件及其文档均可在演示页面中获取。 用Plasmantine供应商包裹你的应用——它把Plasma主题套用在Mantine之上,所以你不需要单独的MantineProvider: 即使参考资料是Mantine文档,也总是从@coveord/等离子-曼廷进口。 每个软件包在其 README 中详细说明其安装和使用情况: - — 需要 React 或更高版本(react 和 react-dom)。- — 为 Mantine 构建(@mantine/核心和 @mantine/hooks 是必需的对等依赖)。可选的 Mantine 包(@mantine/通知、@mantine/日期、@mantine/表单、@mantine/modals、@mantine/轮播、@mantine/code-highlight)也在 9.x 线上——安装你使用的包。- —— 自带类型声明;无需 @types 包。

概述(AI 翻译)

Plasma 是 Coveo 在 Coveo 云管理控制台中使用的设计系统。它提供了以 Mantine 为主题的组件库、设计标记、React 图标和文档。所有组件及其文档均可在演示页面中获取。

用途

用 Plasmantine 服务包包你的应用——它把等离子主题套用到 Mantine 之上,所以你不需要单独的 MantineProvider:

导入不变: 总是从 @coveord/plasma-mantine 导入,即使 Mantine 文档是参考来源。

每个软件包在其 README 中详细说明其安装和使用情况:

包裹 目的
@coveord/plasma-mantine 曼提恩主题组件库(主包)
@coveord/plasma-tokens 设计标记(颜色、排版、间距、图标等)
@coveord/plasma-react-icons 等离子体图标作为React组件
@coveord/plasma-llms 支持LLM的组件文档
@coveord/plasma-mcp-server MCP服务器将等离子文档暴露给AI代理

兼容性

  • React — 需要 React **19。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Plasma

Plasma is Coveo’s design system used in Coveo Cloud Administration Console. It provides a Mantine-themed component library, design tokens, React icons, and documentation. All components and their documentation are available in the demo page.

Usage

npm install @coveord/plasma-mantine @mantine/core @mantine/hooks react react-dom

Wrap your application with the Plasmantine provider — it applies the Plasma theme on top of Mantine, so you don’t need a separate MantineProvider:

import {Plasmantine} from '@coveord/plasma-mantine/plasmantine';
import '@mantine/core/styles.css';

function App() {
    return {/* your app */};
}

Import invariant: always import from @coveord/plasma-mantine, even when Mantine docs were the reference source.

Each package documents its own installation and usage in its README:

Package Purpose
@coveord/plasma-mantine Mantine-themed component library (main package)
@coveord/plasma-tokens Design tokens (colors, typography, spacing, icons, …)
@coveord/plasma-react-icons Plasma iconography as React components
@coveord/plasma-llms LLM-friendly component documentation
@coveord/plasma-mcp-server MCP server exposing Plasma docs to AI agents

Compatibility

  • React — requires React 19.2 or later (react and react-dom).
  • Mantine — built for Mantine 9 (@mantine/core and @mantine/hooks are required peer dependencies). Optional Mantine packages (@mantine/notifications, @mantine/dates, @mantine/form, @mantine/modals, @mantine/carousel, @mantine/code-highlight) are also on the 9.x line — install the ones you use.
  • TypeScript — ships its own type declarations; no @types package needed.
  • Modules — distributed as ES modules ("type": "module"); use a bundler or a Node.js version that supports ESM.

AI Coding Agents

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add coveo/plasma
新手?先看 mcpskill.org 教程 →