@univerjs/design
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

@univerjs/design

npm version license CSS Included i18n

Introduction

To ensure better consistency in the UI of Univer plugins and to reduce the effort required for custom development, we provide some fundamental design guidelines and components.

The components are developed using React and less, and you can find out more information by visiting the component library website.

:::note If you only need to extend the toolbar, context menu, and so on, you can directly use the extension interfaces provided by @univerjs/ui without implementing the UI yourself. For more information, please refer to Extending UI. :::

Usage

Installation

# Using npm
npm install @univerjs/design

# Using pnpm
pnpm add @univerjs/design

This package contains CSS and has the highest priority. Please import it before importing any other Univer style files.

Built-in themes

The package provides two built-in themes: defaultTheme and greenTheme. You can import them directly and use them in your application.

import { defaultTheme } from '@univerjs/design';
// import { greenTheme } from '@univerjs/design';

// Use the default theme
new Univer({
    theme: defaultTheme,
    // theme: greenTheme,
});

Readme

Keywords

Package Sidebar

Install

npm i @univerjs/design

Homepage

univer.ai

Weekly Downloads

790

Version

0.1.8

License

Apache-2.0

Unpacked Size

1.63 MB

Total Files

127

Last publish

Collaborators

  • yuhongz
  • wbfsa
  • jikkai
  • wendellhu95
  • mengshukeji