@actovos-consulting-group/ui-core 中文文档教程

发布于 2 年前 浏览 9 项目主页 更新于 2 年前

ui-核心标志

二次元核心UI库。 我们的 ACG 工程团队用爱打造。 用于引导我们构建的大多数应用程序。

CircleCI样式更漂亮

Install

npm i @actovos-consulting-group/ui-core

Setup

这个库需要 styled-components。 这个库建立在 styled-system 之上。

使用包含的 Provider 包装您的应用程序。

为了覆盖主题,请在您的项目中包含 theme.jstheme.ts。 开箱即用的浅色主题和深色主题。 传递 isDarkMode 以使用开箱即用的深色模式。

import MyTheme from './theme.js';

<Provider isDarkMode theme={MyTheme}>
  </App>
</Provider>

Development

  • Build ui-core npm run build
  • Watch ui-core npm run build -- --watch - This should automatically cause your consumer project to rebuild on changes.
  • Link ui-core npm link in ui-core root
  • Link ui-core to consumer project with npm link @actovos-consulting-group/ui-core

Docs

查看我们的Storybook,其中包含组件文档和可供探索的实时游乐场。

ui-core Logo

ACG core UI library. Built with love from our ACG Engineering team. Used to bootstrap most applications we build.

CircleCIstyled with prettier

Install

npm i @actovos-consulting-group/ui-core

Setup

This library requires styled-components. This library is built on top of styled-system.

Wrap your application with the included Provider.

In order to override the theme include a theme.js or theme.ts in your project. There is both a light theme and dark theme out of the box. Pass isDarkMode to use Dark mode out of the box.

import MyTheme from './theme.js';

<Provider isDarkMode theme={MyTheme}>
  </App>
</Provider>

Development

  • Build ui-core npm run build
  • Watch ui-core npm run build -- --watch - This should automatically cause your consumer project to rebuild on changes.
  • Link ui-core npm link in ui-core root
  • Link ui-core to consumer project with npm link @actovos-consulting-group/ui-core

Docs

Checkout our Storybook which houses component documentation and a live playground to explore.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文