@kui-shell/core
Version:
An Electron-based shell for cloud-native development
30 lines (29 loc) • 922 B
TypeScript
/** the latest apiVersion */
export declare const apiVersion = "v2";
/** all known Theme apiVersions */
export type ThemeApiVersion = 'v1' | 'v2';
/** Properties that can be associated with <Kui/> component */
export interface ThemeProperties {
components: 'patternfly';
topTabNames: 'command' | 'fixed';
}
type Theme = ThemeProperties & {
apiVersion?: ThemeApiVersion;
name: string;
description?: string;
/** Source files */
css: string | string[];
/** Body attributes */
attrs?: string[];
/** Is this theme a light (e.g. black text on white background), or the inverse? */
style: 'light' | 'dark';
/** Present in a more terminal-like way (versus a more console-like way)? */
lightweight?: boolean;
};
export default Theme;
export interface ThemeSet {
/** import path prefix for all themes */
plugin: string;
/** theme definitions */
themes: Theme[];
}