Skip to main content

theme

function

Register a theme so it appears in the workbench theme picker. Purely declarative. There is no handler and nothing runs at author time. The token values themselves live in the module you point at, written with `defineModularTheme`; this constructor only gives them an id, a label, and a place in the picker.

function theme(input: ThemeInput): Theme

Import

import { theme } from '@modular/sdk';

Notes

category
Authoring