Skip to content

Theemo / @theemo/vue / Theemo

Class: Theemo

Defined in: packages/vue/src/index.ts:10

Theemo to manage themes and features

Accessors

activeTheme

Get Signature

ts
get activeTheme(): undefined | Theme;

Defined in: packages/vue/src/index.ts:46

The active theme

Returns

undefined | Theme


features

Get Signature

ts
get features(): FeatureWithValue[];

Defined in: packages/vue/src/index.ts:51

All features for the active theme

Returns

FeatureWithValue[]


themes

Get Signature

ts
get themes(): Theme[];

Defined in: packages/vue/src/index.ts:39

List of all available themes

Returns

Theme[]

Methods

setFeature()

ts
setFeature(featureName, value): void;

Defined in: packages/vue/src/index.ts:61

Set a feature to the given value

Parameters

ParameterTypeDescription
featureNamestringthe feature to change
valuestringthe value for that feature

Returns

void


switchTheme()

ts
switchTheme(name): Promise<void>;

Defined in: packages/vue/src/index.ts:79

Swithes to another theme

Parameters

ParameterTypeDescription
namestringthe name of the new theme

Returns

Promise<void>


unsetFeature()

ts
unsetFeature(featureName): void;

Defined in: packages/vue/src/index.ts:70

Unsets a feature. Reverts to its default.

Parameters

ParameterTypeDescription
featureNamestringthe feature to unset

Returns

void