@bilions/search-js
Version:
Instance search UI component
37 lines (36 loc) • 835 B
TypeScript
import { SearchJSConfig, SearchJSTheme } from '../types';
export declare class Theme {
/**
* create global css variables base on provided theme
*
* @param {SearchJSConfig} config
*/
createGlobalCssVariable(config: SearchJSConfig): void;
/**
* get list of read made themes
*
* @returns {Array<SearchJSTheme>}
*/
getReadyMadeThemes(): Array<SearchJSTheme>;
/**
* get theme css string from config
*
* @param {SearchJSConfig} config
* @returns {string}
*/
private getTheme;
/**
* get theme css variable values
*
* @param {string} theme
* @returns {object}
*/
private getThemeValues;
/**
* get theme css string
*
* @param {object} obj
* @returns {string}
*/
private getCssVariables;
}