You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.0 KiB

import type { PaletteOptions } from '../spec/element/palette';
import type { Theme } from './types';
type ThemeTokens = {
bgColor: string;
textColor: string;
nodeColor: string;
nodeColorDisabled: string;
nodeStroke: string;
nodeBadgePalette?: string[];
nodePaletteOptions?: PaletteOptions;
nodeHaloStrokeOpacityActive?: number;
nodeHaloStrokeOpacitySelected?: number;
nodeOpacityDisabled?: number;
nodeOpacityInactive?: number;
nodeIconOpacityInactive?: number;
donutPaletteOptions?: PaletteOptions;
edgeColor: string;
edgeColorDisabled: string;
edgeColorInactive: string;
edgePaletteOptions?: PaletteOptions;
comboColor: string;
comboColorDisabled: string;
comboStroke: string;
comboStrokeDisabled: string;
};
/**
* <zh/> 创建主题
*
* <en/> Create a theme based on the given tokens
* @param tokens - <zh/> 主题配置项 <en/> Theme tokens
* @returns <zh/> 主题 <en/> Theme
*/
export declare function create(tokens: ThemeTokens): Theme;
export {};