ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
24 lines (21 loc) • 1.13 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
declare const statusColors: readonly ["success", "processing", "error", "default", "warning"];
declare const presetColors: readonly ["pink", "red", "yellow", "orange", "cyan", "green", "blue", "purple", "geekblue", "magenta", "volcano", "gold", "lime"];
type NzPresetColor = (typeof presetColors)[number];
type NzStatusColor = (typeof statusColors)[number];
declare function isPresetColor(color: string): color is NzPresetColor;
declare function isStatusColor(color: string): color is NzPresetColor;
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
interface Opts {
theme?: 'dark' | 'default';
backgroundColor?: string;
}
declare function generate(color: string, opts?: Opts): string[];
export { generate, isPresetColor, isStatusColor, presetColors, statusColors };
export type { NzPresetColor, NzStatusColor };