altair-graphql-core
Version:
Several of the core logic for altair graphql client
104 lines • 2.6 kB
TypeScript
export declare const foundations: {
easing: string;
colors: {
black: string;
darkGray: string;
gray: string;
lightGray: string;
white: string;
green: string;
blue: string;
rose: string;
cerise: string;
red: string;
orange: string;
yellow: string;
lightRed: string;
darkPurple: string;
};
type: {
fontSize: {
base: number;
remBase: number;
body: number;
bodySmaller: number;
};
fontFamily: {
default: string;
};
};
};
export interface ITheme {
easing: string;
colors: {
black: string;
darkGray: string;
gray: string;
lightGray: string;
white: string;
green: string;
blue: string;
rose: string;
cerise: string;
red: string;
orange: string;
yellow: string;
lightRed: string;
darkPurple: string;
primary: string;
secondary: string;
tertiary: string;
bg: string;
offBg: string;
font: string;
offFont: string;
border: string;
offBorder: string;
headerBg: string;
};
type: {
fontSize: {
base: number;
remBase: number;
body: number;
bodySmaller: number;
};
fontFamily: {
default: string;
};
};
isSystem: boolean;
shadow: {
color: string;
opacity: number;
};
editor: {
fontFamily: {
default: string;
};
fontSize: number;
colors: {
comment: string;
string: string;
number: string;
variable: string;
keyword: string;
atom: string;
attribute: string;
property: string;
punctuation: string;
definition: string;
builtin: string;
cursor: string;
};
};
}
type RecursivePartial<T> = {
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
};
export type ICustomTheme = RecursivePartial<ITheme>;
export declare const hexToRgbStr: (hex: string) => string;
export declare const mergeThemes: (...customThemes: ICustomTheme[]) => ICustomTheme;
export declare const createTheme: (customTheme: ICustomTheme, ...extraThemes: ICustomTheme[]) => ITheme;
export {};
//# sourceMappingURL=theme.d.ts.map