API 참조

Theme

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Theme is the shape of defaultTheme, exported by @univerjs/themes and @univerjs/presets. Start with a complete theme and override the tokens you need:

TypeScript
import type { Theme } from '@univerjs/themes'import { Univer } from '@univerjs/core'import { defaultTheme } from '@univerjs/themes'const theme: Theme = {  ...defaultTheme,  primary: {    ...defaultTheme.primary,    600: '#2563eb',  },}const univer = new Univer({ theme })

The theme includes color scales, semantic tokens, and component-specific values. Preserve the other keys when changing one group. For runtime switching, use univerAPI.setTheme(); plugin implementations should read the active theme through ThemeService.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.