buttonStyle()
Defines or overrides a button variant style.
buttonStyle(variant: string, overrides: WebTheme.StyleDefinition): this;
Notes
- Deep-merges overrides with the existing variant definition.
Parameters
- variant — The variant name (e.g., “default”, “accent”, “ghost”).
- overrides — Style properties to set or override.
Return value
The theme itself, for method chaining.
Examples
theme.buttonStyle("default", { borderRadius: 20 });
Related
class WebTheme
A class that represents a complete visual theme configuration.
