@nextcloud/vue
Version:
Nextcloud vue components
37 lines (36 loc) • 1.11 kB
TypeScript
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
export declare class Color {
readonly r: number;
readonly g: number;
readonly b: number;
readonly name?: string | undefined;
/**
* @param r - The red value
* @param g - The green value
* @param b - The blue value
* @param name - The name of the color
*/
constructor(r: number, g: number, b: number, name?: string | undefined);
/**
* The hexadecimal color string.
*/
get color(): string;
}
export declare const COLOR_BLACK: Color;
export declare const COLOR_WHITE: Color;
/**
* Like GenColor(4) but with labels
*/
export declare const defaultPalette: Color[];
/**
* Generate colors from the official nextcloud color
* You can provide how many colors you want (multiplied by 3).
*
* For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.
*
* @param steps - Number of steps to go from a color to another
*/
export declare function generatePalette(steps: number): Color[];