@epignosis_llc/gnosis

中文文档
6.12.0发布于 2026/11/12MITTypeScriptESM + CJS近 30 天下载 2419

Epignosis official react design system.

原始使用文档
文档目录7 节
  1. 📦 Installation
  2. 🔨 Usage
  3. ✨ Theme
  4. 🌍 Globals
  5. 🛠 Theme config
  6. ✨ Icons
  7. Upcoming components

Gnosis

Epignosis official react design system.

An internal, opinionated UI library. Primary focus is to provide a consisted and unified UI, UX and accessibility across our products.

📦 Installation

$ npm i @epignosis_llc/gnosis
$ yarn add @epignosis_llc/gnosis

The recomended font family is the "Mulish", Arial, sans-serif so please don't forget to include it (of course you can change the default font family by customizing the theme - more information below).

Please note that react >= 16.0.0 and react-dom >= 16.0.0 are peer dependencies. Also that emotion 11 is being used and that will not work in older emotion projects.

🔨 Usage

Start by wrapping your App with ThemeProvider component (see example below). All the other components MUST be into the ThemeProvider in order to get the appropriate theme context.

import { ThemeProvider, Button } from "@epignosis_llc/gnosis";

function App() {
  return (
    <ThemeProvider>
      <Button>My Button</Button>
    </ThemeProvider>
  );
}

To view all the available props of each component clone the current repo and run npm install to install all the dependencies and then npm start to view all the components in Storybook with all their available props.

✨ Theme

You can either use gnosis theme default theme (colors, fonts, etc.) or customize it to fit your project needs. This section describes the various options you can use to modify it.

🌍 Globals

You can add global styles by providing serialized styles like the example below:

const globalStyles = {
  "html, body": {
    background: "red",
  },
  h1: {
    fontSize: "5rem",
    textAlign: "center",
  },
  "#my-id": {
    color: "green",
  },
  ".my-css-class": {
    color: "blue",
  },
};

<ThemeProvider globalStyles={globalStyles}></ThemeProvider>;

🛠 Theme config

You can also apply your own brand and colors simply by providing a new color theme. Just locate the component's theme configuration you need to change - the example below is for changing the success button colors - and create an object with your new values. The new theme configuration will be merged with the default theme, and the final merged theme will apply all the new values to the success button (or any other component). The default theme's configuration files are located in ./src/theme/default/config/ directory - for example the Button component's default theme is the ./src/theme/default/config/button.ts. Have a look at the default theme's configuration and create / configure your new custom theme.

const myCustomTheme = {
  button: {
    success: {
      default: {
        background: "pink",
        borderColor: "red",
        color: "white",
      },
      hover: {
        background: "red",
        borderColor: "pink",
        color: "white",
      },
      active: {
        background: "red",
        borderColor: "pink",
        color: "white",
      },
    },
  },
};

<ThemeProvider theme={myCustomTheme}></ThemeProvider>;

✨ Icons

You can use epignosis custom Svg icons like this:

import { HomeSVG, CalendarSVG, CircleQuestionSVG } from "@epignosis_llc/gnosis/icons";

<HomeSVG height={32} />
<CalendarSVG height={32} />
<CircleQuestionSVG height={32} />

You can view all the available icon names at gnosis/src/icons/index.ts or by checking the appropriate storybook page.

Upcoming components

  • MultiSelect
  • Table
  • DateInput
  • FileInput

版本与发布记录

@epignosis_llc/gnosis 共发布 509 个版本,首次发布于 2021/09/24;过去 12 个月发布了 56 个版本。

版本发布日期距今
6.12.0latest2026/11/121 天前
6.11.12026/10/1925 天前
6.11.02026/10/1628 天前
6.10.02026/09/221 个月前
6.9.02026/09/171 个月前
6.8.22026/09/151 个月前

其他发布通道:next → 1.0.0-next.4,beta → 2.0.0-beta.1。

关于 @epignosis_llc/gnosis 的常见问题

@epignosis_llc/gnosis 是什么?

Epignosis official react design system.

如何安装 @epignosis_llc/gnosis?

在项目目录运行 npm install @epignosis_llc/gnosis,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=18.0.0)、react-dom(>=18.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@epignosis_llc/gnosis 支持 TypeScript 吗?

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

@epignosis_llc/gnosis 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@epignosis_llc/gnosis 需要什么版本的 Node.js?

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

@epignosis_llc/gnosis 可以商用吗?

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

@epignosis_llc/gnosis 的下载量有多少?

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

@epignosis_llc/gnosis 还在维护吗?

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