univer-customize-theme
Installation
SKILL.md
Univer Customize Theme
Build and apply a complete Univer theme without bypassing the public Facade or runtime theme service.
Source baseline: current Univer OSS and Pro source, whose manifests identify as
1.0.0-beta.0. Inspect the target application's installed declarations first: the npm release with the same version label can lag the current source API.
Workflow
- Decide whether the request concerns the application palette, dark mode, plugin styling, or a Pro Chart theme. These are separate contracts.
- Inspect the exact installed version and integration mode. Presets compose plugins and Facade extensions; Plugin Mode requires explicit plugin and
/facadeimports. - Derive a complete
Themefrom a built-in theme. Do not hand-write or cast a partial object. - Pass the initial theme to
createUniver. Use currentFUnivertheme methods only when they exist in the target declarations. - Read live colors through
ThemeServicein plugin/render code and through--univer-*variables in browser CSS. - Verify light and dark appearances in every enabled product host.
Build a complete brand palette
Import from the owning package and keep it on the target application's exact Univer version: