@appsemble/utils
Version:
Utility functions used in Appsemble internally
16 lines (15 loc) • 554 B
TypeScript
import { type Theme } from '@appsemble/lang-sdk';
/**
* Merge multiple partial themes and the base theme into one resulting theme.
*
* @param themes The themes to merge. The later a theme is specified, the higher its priority.
* @returns A combination of all themes.
*/
export declare function mergeThemes(...themes: Partial<Theme>[]): Theme;
/**
* Create a Bulma URL for an Appsemble theme.
*
* @param theme The theme to create a URL for.
* @returns The URL to the Bulma theme.
*/
export declare function createThemeURL(theme: Theme): string;