import{_ as t,a,b as h,ag as r}from"./chunks/framework.BcrMLAmg.js";const p=JSON.parse('{"title":"BaseElement","description":"","frontmatter":{},"headers":[],"relativePath":"references/plugins/theme.md","filePath":"references/plugins/theme.md","lastUpdated":1757844696000}'),l={name:"references/plugins/theme.md"};function o(s,e,n,m,i,d){return h(),a("div",null,e[0]||(e[0]=[r('

BaseElement

This is the theme plugin. It provides a theming system that allows for consistent styling across elementswith support for inheritance, named styles, and dynamic theme switching.

Functions

MethodReturnsDescription
BaseElement:applyThemeBaseElementApplies theme styles to the element
BaseElement:getThemetableGets theme properties for the element

BaseElement:applyTheme(self, applyToChildren)

Applies the current theme to this element

Parameters

Returns

BaseElement:getTheme(self)

Gets the theme properties for this element

Parameters

Returns

ThemeAPI

The Theme API provides methods for managing themes globally

Functions

MethodReturnsDescription
ThemeAPI.setTheme-Sets a new theme
ThemeAPI.getThemetableGets the current theme
ThemeAPI.loadTheme-Loads theme from JSON file

ThemeAPI.setTheme(newTheme)

Sets the current theme

Parameters

ThemeAPI.getTheme()

Gets the current theme configuration

Returns

ThemeAPI.loadTheme(path)

Loads a theme from a JSON file

Parameters

',32)]))}const u=t(l,[["render",o]]);export{p as __pageData,u as default};