Some checks failed
📦 Build / build (push) Has been cancelled
🧪 CI Test / test shard (1/4) (push) Has been cancelled
🧪 CI Test / test shard (2/4) (push) Has been cancelled
🧪 CI Test / test shard (3/4) (push) Has been cancelled
🧪 CI Test / test shard (4/4) (push) Has been cancelled
🧪 CI Test / test (push) Has been cancelled
🧪 CI Test / eslint (push) Has been cancelled
🧪 CI Test / typecheck (push) Has been cancelled
🔫 Sync to Pro / dispatch-sync (push) Has been cancelled
🔮 Sync Mirror / sync (push) Has been cancelled
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
# @univerjs/design
|
|
|
|
[](https://npmjs.com/package/@univerjs/design)
|
|
[](https://npmjs.com/package/@univerjs/design)
|
|
[](https://npmjs.com/package/@univerjs/design)
|
|
|
|
`@univerjs/design` contains the shared React design components, tokens, styles, and locale resources used by Univer UI packages.
|
|
|
|
## Package Overview
|
|
|
|
| Package | UMD global | CSS | Locales | Facade entry |
|
|
| --- | --- | :---: | :---: | :---: |
|
|
| `@univerjs/design` | `UniverDesign` | Yes | Yes | No |
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
pnpm add @univerjs/design
|
|
# or
|
|
npm install @univerjs/design
|
|
```
|
|
|
|
Keep all `@univerjs/*` packages on the same version.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import '@univerjs/design/lib/index.css';
|
|
import DesignEnUS from '@univerjs/design/locale/en-US';
|
|
```
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://docs.univer.ai)
|
|
- [NPM package](https://npmjs.com/package/@univerjs/design)
|
|
- [GitHub repository](https://github.com/dream-num/univer)
|