@cmk/fe_utils
Version:
frontend utility library
29 lines (28 loc) • 811 B
TypeScript
export type MatchingObjectKeys<O, MatchType> = {
[K in keyof O]-?: O[K] extends MatchType ? K : never;
}[keyof O];
export declare enum ThemeColorsEnum {
primary = "primary",
secondary = "secondary",
error = "error",
warning = "warning",
info = "info",
success = "success"
}
export declare enum ThemeTextColorsEnum {
primary = "text.primary",
secondary = "text.secondary",
disabled = "text.disabled"
}
export declare enum ThemeBackgroundColorsEnum {
default = "background.default",
paper = "background.paper"
}
export declare enum ThemeActionColorsEnum {
active = "action.active",
disabled = "action.disabled",
disabledBackground = "action.disabledBackground",
focus = "action.focus",
hover = "action.hover",
selected = "action.selected"
}